Add to ~/.gnupg/gpg.conf:
cipher-algo AES256
Encrypt a file:
gpg -c ${FILE}
Decrypt a file:
| echo 1 > /sys/module/processor/parameters/ignore_ppc | |
| for x in /sys/devices/system/cpu/cpu[0-3]/cpufreq/;do | |
| echo 3601000 > $x/scaling_max_freq | |
| done | |
| #!/bin/bash | |
| # | |
| # Code found originally here on a post from t0n1 : | |
| # http://hacktracking.blogspot.fr/2013/07/download-mega-files-from-command-line.html | |
| # | |
| url=$1 | |
| enc_file=$2.enc | |
| out_file=$2 |
| subroutine cuthill_mckee(matrix,LDA,n,iorder) | |
| implicit none | |
| ! Uses the Cuthill-McKee algorithm to reorder the columns and rows of the matrix | |
| integer, intent(in) :: n,LDA | |
| integer, intent(out) :: iorder(n) | |
| double precision, intent(in) :: matrix(LDA,n) | |
| integer :: i,j,k |
| setterm -blank 0 | |
| xset -q | |
| xset s off | |
| xset -dpms |
| #!/bin/bash | |
| declare -A new_layout | |
| new_layout["us"]="us_intl" | |
| new_layout["us_intl"]="us" | |
| cur_layout=$(setxkbmap -query | grep layout | cut -c13-) | |
| setxkbmap -layout ${new_layout[$cur_layout]} |
Add to ~/.gnupg/gpg.conf:
cipher-algo AES256
Encrypt a file:
gpg -c ${FILE}
Decrypt a file:
Set the setuid bit on the executable
$ sudo chmod u+s /usr/bin/screen
$ ls -l /usr/bin/screen
-rwsr-xr-x 1 root screen 360952 Jan 18 2038 /usr/bin/screenUpdate your .screenrc
| ifconfig eth0 down | |
| ifconfig eth0 hw ether 00:90:27:3b:ef:ce | |
| ifconfig eth0 up |
| user@home $ ssh -R 10000:localhost:22 target.machine.org | |
| [email protected] $ ssh -p 10000 localhost # ssh to the home machine |
| Host target.host.domain target | |
| User username_on_target | |
| HostName target.host.domain | |
| ProxyCommand ssh [email protected] nc %h %p |