View spam_decode.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def decode(msg): | |
text = [] | |
for i in range(0, len(msg), 2): | |
text.append(unrot(msg[i: i + 2])) | |
return str.join('', text) | |
def unrot(pair, key=ord('x')): | |
offset = 0 | |
for c in 'cdefgh': |
View fractal.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo -i | |
cat > fractal.sh << EOF | |
apt install -y flatpak flatpak-builder git tmux | |
flatpak remote-add --user --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo | |
flatpak remote-add --user --if-not-exists gnome-nightly https://nightly.gnome.org/gnome-nightly.flatpakrepo | |
flatpak install --assumeyes --user gnome-nightly org.gnome.Sdk org.gnome.Platform | |
flatpak install --assumeyes --user flathub org.freedesktop.Sdk.Extension.rust-stable//20.08 | |
git clone https://gitlab.gnome.org/GNOME/fractal.git |
View newclient.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
clientname=$1 | |
serverconf="wg0.conf" | |
subnet24="172.20.1." | |
dns1=176.103.130.130 | |
dns2=176.103.130.131 | |
View reinstall_VPS_from_inside.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# should works on any cloud-init enabled hypervisor (openstack.. ) | |
# start from a ubuntu minimal install | |
# we need to shrink down the used space to move it in a tmpfs of 700MB | |
# make sure we are on the highest kernel, so we can delete all the others ... | |
sudo apt update && sudo apt upgrade -y && reboot | |
# ... reconnect | |
sudo apt install lsof |
View simple_openLDAP_CentOS.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
exit | |
## !!! ne pas executer comme un script !!! ## | |
### j'ai mis "exit" en haut pour eviter ça. | |
# il faut copier /coller chaque bloc de texte ci dessous dans un shell après avoir bien lu et compris | |
# il est préférable d'afficher ce document en RAW ( cf bouton sur la droite ) et de copier coller les here-documents en un bloc. | |
# un here-document c'est ce genre de chose : | |
#cat > truc << EOF | |
#blabla | |
#EOF |
View gist:7e647e2f4fec06d085a6902ea0f0a4cb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
download Zorin Lite and use etcher.io or dd to create a liveUSB | |
boot the liveUSB | |
hit the "e" key to modify the kernel parameters in Grub | |
add "pwm-lpss pwm-lpss-platform" to the line : "linux ......" | |
cat > paysage.sh << EOF |
View CM5
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cd | |
sudo su -c 'for i in $(lxc-ls) ; do lxc-stop --name $i ; lxc-destroy --name $i ;done' | |
mkdir cloudera-manager-cluster | |
cd cloudera-manager-cluster | |
## restart here with this command if any problem ## sudo su -c 'for i in $(lxc-ls) ; do lxc-stop --name $i ; lxc-destroy --name $i ;done' ; rm Vagrantfile |
View CDH5.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# works from ubuntu 16.04.3 LTS | |
sudo apt-get update | |
sudo apt-get install -y lxc bridge-utils vim | |
url="https://releases.hashicorp.com" | |
latest=$(wget -qO- ${url}/vagrant/ | grep -o -P '/vagrant/[^"]*' | head -n 1) |