Skip to content

Instantly share code, notes, and snippets.

View MehdiTAZI's full-sized avatar
🏠
Working from home

Mehdi TAZI MehdiTAZI

🏠
Working from home
View GitHub Profile
@MehdiTAZI
MehdiTAZI / configure_dock.sh
Created September 5, 2022 23:02
Mac Dock quick hide/show
defaults write com.apple.dock autohide-delay -float 0
defaults write com.apple.dock autohide-time-modifier -float 0.4; killall Dock
@MehdiTAZI
MehdiTAZI / README-2019.md
Created December 12, 2019 17:23 — forked from z0ph/README-2019.md
☁ AWS - re:Invent - Announcements Follow-up

Disclamer

This year, there is too much announcements to be completely exhaustive, I will only list the most major announcements.

Pre-re:Invent'19 Launches 🚀 (November 2019)

@MehdiTAZI
MehdiTAZI / README-2019.md
Created December 12, 2019 17:23 — forked from z0ph/README-2019.md
☁ AWS - re:Invent - Announcements Follow-up

Disclamer

This year, there is too much announcements to be completely exhaustive, I will only list the most major announcements.

Pre-re:Invent'19 Launches 🚀 (November 2019)

ll >> 00.txt
sort
files=$(echo 00.txt)
for f in files
do
cat $f >>full_files
done
head -n 100 original.csv > sample.csv
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Google\Chrome]
"RestrictSigninToPattern"="*"
"SyncDisabled"="0"
#!/bin/sh
exec scala "$0" "$@"
!#
object HelloWorld {
def main(args: Array[String]) {
println("Hello, world! " + args.toList)
}
}
HelloWorld.main(args)
pragma solidity ^0.4.2;
/************************************************************************/
/* Author : Mehdi TAZI */
/* Website : tazimehdi.com */
/* Source : https://github.com/MehdiTAZI/EthereumBlockchainToken */
/************************************************************************/
contract Ownable {
@MehdiTAZI
MehdiTAZI / raspbian create
Created December 8, 2017 11:14
create partition from freespace for raspberryPi raspbian based on Noobs
create partiton --> fdisk /dev/mmcblk0
--> print partition by typing p
--> print Free partition info by typing F
--> create new partition by typing n
--> choose the default value
--> chose another time the default value
--> entrer the start and end of new volume according to step 1.2 ( Free space information )
--> print again the partition information ( you should see a new partition created )
--> save the partition by pressing ( w )
reboot --> restart the machine
@MehdiTAZI
MehdiTAZI / haproxy.cfg
Last active May 31, 2017 14:49
Integration of a Mono Ticketing Instance ( JIRA ) With a Multi-Site Automation platfrom ( Rundeck )
# TODO
1 - install and start HAProxy
2 - define the revese proxy rules according to host pattern substring
3 - listen on the corresponding ports and hosts : nc -l 9654
4 - add the new hosts on /etc/hosts
5 - send request with the correct hostname using : nc localhost 10000
6 - sent a POST request to verify that the request POST content is still present after the forwarding
7 - add the correct tokens that matchs the final hosts using HAProxy set-header function
8 - verify that the correct token is sent in the server side hosts