Skip to content

Instantly share code, notes, and snippets.

View PACordonnier's full-sized avatar

Paul-Adrien Cordonnier PACordonnier

View GitHub Profile
#!/bin/bash
# Vérifie si le dossier contient des fichiers .pem
if ls *.pem 1> /dev/null 2>&1; then
# Boucle sur chaque fichier .pem dans le dossier
for pem_file in *.pem
do
# Extrait le shortname du nom du fichier
shortname=$(echo "$pem_file" | cut -d '.' -f 1)
[/]
foreground-color='rgb(255,238,252)'
visible-name='LOG'
palette=['rgb(79,72,88)', 'rgb(192,92,71)', 'rgb(66,142,142)', 'rgb(228,178,38)', 'rgb(68,87,163)', 'rgb(144,58,98)', 'rgb(122,161,220)', 'rgb(196,183,197)', 'rgb(84,93,103)', 'rgb(193,103,114)', 'rgb(175,218,110)', 'rgb(235,207,26)', 'rgb(72,128,165)', 'rgb(149,104,161)', 'rgb(171,188,218)', 'rgb(255,238,252)']
default-size-columns=90
cursor-background-color='rgb(193,103,114)'
scroll-on-output=false
cursor-colors-set=true
use-custom-command=false
use-system-font=false

Keybase proof

I hereby claim:

  • I am PACordonnier on github.
  • I am pacordonnier (https://keybase.io/pacordonnier) on keybase.
  • I have a public key whose fingerprint is A698 4B71 F437 9F2B 70CA 946D A91C 935B 2BBD 1F9D

To claim this, I am signing this object:

#!/bin/bash
# https://github.com/Eimji/gnome-shell-extension-scriptproxies
#System-wide proxy
echo 'export http_proxy="http://85.115.60.201:80"' >> ~/.zshrc
echo 'export https_proxy="http://85.115.60.201:80"' >> ~/.zshrc
echo 'export no_proxy="localhost,hdfacnn, 127.0.0.1,10.{1..255}.{1..255}.{1..255},192.168.{1..255}.{1..255}"' >> ~/.zshrc
#Gnome
gsettings set org.gnome.system.proxy mode 'manual'
#!/bin/bash
# All credits to https://github.com/guimeira/i3lock-fancy-multimonitor
DISPLAY_RE="([0-9]+)x([0-9]+)\\+([0-9]+)\\+([0-9]+)"
IMAGE_RE="([0-9]+)x([0-9]+)"
FOLDER=`dirname "$BASH_SOURCE"`
LOCK="$FOLDER/lock.png"
PARAMS=""
OUTPUT_IMAGE="/tmp/i3lock.png"