Skip to content

Instantly share code, notes, and snippets.

View dotsh's full-sized avatar

Mathieu V dotsh

  • ZQA
View GitHub Profile
dotsh /
Created January 17, 2022 10:38 — forked from lkraider/
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':
dotsh /
Created June 24, 2021 13:07
install fractal from source with flatpak
sudo -i
cat > << EOF
apt install -y flatpak flatpak-builder git tmux
flatpak remote-add --user --if-not-exists flathub
flatpak remote-add --user --if-not-exists gnome-nightly
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
dotsh /
Created April 15, 2021 16:01
Wireguard - script to add new client
#! /bin/bash
dotsh /
Last active September 6, 2023 18:52
DIY install debian on Oracle Cloud Infrastructure ( Free Tier )
# 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
dotsh /
Last active October 3, 2018 15:37
openldap simple install on CentOS
## !!! 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
dotsh / gist:7e647e2f4fec06d085a6902ea0f0a4cb
Last active March 28, 2021 12:03
Zorin Linux Lite install on Lenovo Miix 310
View gist:7e647e2f4fec06d085a6902ea0f0a4cb
download Zorin Lite and use 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 > << EOF
dotsh / CM5
Last active October 6, 2017 15:06
View CM5
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
dotsh /
Last active November 3, 2017 15:16
# works from ubuntu 16.04.3 LTS
sudo apt-get update
sudo apt-get install -y lxc bridge-utils vim
latest=$(wget -qO- ${url}/vagrant/ | grep -o -P '/vagrant/[^"]*' | head -n 1)