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 | |
for file in `find . ` | |
do | |
permissions=`stat -c %a $file` | |
if [ $permissions = "660" ] | |
then | |
permissions=664 | |
echo "Permission 660 trouvée" | |
else | |
permissions=775 |
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
# | |
# apk_gen.ps1 | |
# To execute script run in cmd : %windir%\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -ExecutionPolicy unrestricted -Command "./apk_gen.ps1" | |
# Chargement des assemblies | |
[void][System.Reflection.Assembly]::LoadWithPartialName("System.Windows.Forms") | |
[void][System.Reflection.Assembly]::LoadWithPartialName("System.Drawing") | |
### Function ### | |
function Get-ScriptDirectory { | |
<# |
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
module.exports = [ | |
{ | |
type: 'spacer' | |
}, | |
{ | |
type: 'button', | |
tooltip: 'Git Add All', | |
dependency: 'git-plus', | |
callback: 'git-plus:add-all', | |
icon: 'git', |
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 | |
# /!\ Install Nvidia Driver by Software & Updates in Ubuntu Settings /!\ | |
# For JetBrains IDE, add export IBUS_ENABLE_SYNC_MODE=1 to ~/.profile file | |
sudo add-apt-repository ppa:webupd8team/java | |
sudo add-apt-repository ppa:graphics-drivers/ppa | |
sudo add-apt-repository ppa:obsproject/obs-studio | |
# Hipchat | |
echo "deb http://downloads.hipchat.com/linux/apt stable main" > /etc/apt/sources.list.d/atlassian-hipchat.list | |
wget -O - https://www.hipchat.com/keys/hipchat-linux.key | apt-key add - | |
# Google Chrome /!\ appear disabled on Google.com |
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/sh | |
# How to block a scanner on your server for example “w00tw00t.at.ISC.SANS” using $ipt? | |
# $ipt -I INPUT -p tcp --dport 80 -m string --algo bm --string 'GET /w00tw00t.at.ISC.SANS.' -j DROP | |
# Check if ran with root permissions | |
if [ `id -u` -ne 0 ]; then | |
echo "The script must be run as root! (you can use sudo)" | |
exit 1 | |
fi |
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
Steps: | |
1. uninstall Postgres 9.4 | |
2. install 9.3 | |
3. backup the database using pg_dumpall > backup.sql | |
4. uninstall Postgres 9.3 | |
5. install Postgres 9.4 | |
6. restore the databases using psql -d postgres -f backup.sql |
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 | |
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 |
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
apt-get remove --purge $(aptitude -F '%p' search '~i -dev$') |
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
regedit /e "%userprofile%desktopputty-sessions.reg" HKEY_CURRENT_USERSoftwareSimonTathamPuTTYSessions |
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 | |
cat /var/run/reboot-required.pkgs | |
xargs aptitude changelog < /var/run/reboot-required.pkgs | grep urgency=high |
OlderNewer