Skip to content

Instantly share code, notes, and snippets.

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

Benjamin Nolmans Xarkam

🏠
Working from home
View GitHub Profile
@Xarkam
Xarkam / httpd.conf
Created August 19, 2019 21:47
Weblate apache 2 proxy reverse
<VirtualHost *:443>
ServerAdmin <ADMIN EMAIL HERE>
ServerName <SITE DNS NAME HERE>
<IfModule mod_disk_cache.c>
# "/s" is where Confluence serves "static" stuff. Instruct Apache to cache it:
CacheEnable disk /s
CacheIgnoreHeaders Set-Cookie
CacheRoot "/var/cache/apache2/mod_cache_disk"
CacheDirLevels 5
@Xarkam
Xarkam / .imwheelrc
Created August 19, 2019 09:03
imwheel configuration with JetBrains IntelliJ Exclude
".*-chrome*"
None, Up, Button4, 2
None, Down, Button5, 2
Control_L, Up, Control_L|Button4
Control_L, Down, Control_L|Button5
Shift_L, Up, Shift_L|Button4
Shift_L, Down, Shift_L|Button5
"^Firefox-bin$"
None, Up, Button4, 2
@Xarkam
Xarkam / gist:4c809b5df09cce9ebf01a4de13c4b6b8
Created October 12, 2016 07:16
Changer les droits sur des dossiers ou fichiers uniquement
# Change les droits des répertoires et sous répertoires du dossiers courant
# Changer la directive -type d par -type f pour ne changer que les droits des fichiers
find -type d -exec chmod 770 {} \;
@Xarkam
Xarkam / add_vmware_screen_resolution.sh
Created October 12, 2016 07:13
VMWare Screen Resolution Linux 1920x1080
#!/bin/bash
xrandr --newmode "1920x1080_60.00" 173.00 1920 2048 2248 2576 1080 1083 1088 1120 -hsync +vsync
xrandr --addmode Virtual1 1920x1080_60.00
xrandr --output Virtual1 --mode 1920x1080_60.00
@Xarkam
Xarkam / test.sh
Created November 5, 2013 18:42
Check folder and sub folder to adapt permissions
#!/bin/bash
for file in `find . `
do
permissions=`stat -c %a $file`
if [ $permissions = "660" ]
then
permissions=664
echo "Permission 660 trouvée"
else
permissions=775