This file contains hidden or 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
| 20170204 | |
| -------- | |
| 19min.bg | |
| 1kam1.eu | |
| 30dumi.eu | |
| afera.bg | |
| alterinformation.wordpress.com | |
| anonybulgaria.wordpress.com | |
| bez-cenzura.com | |
| bezpartien.com |
This file contains hidden or 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
| ipmitool -H 10.10.10.10 -U user -P pass -I lanplus -L user sdr get Inlet\ Temp | grep Sensor\ Reading | sed -r 's/([^0-9]*([0-9]*)){1}.*/\2/' |
This file contains hidden or 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 | |
| # | |
| # Copy group membership from one account to another | |
| function yes_no() { | |
| read -p "$1 ([y]es or [N]o): " | |
| case $(echo $REPLY | tr '[A-Z]' '[a-z]') in | |
| y|yes) echo "yes" ;; | |
| *) echo "no" ;; | |
| esac |
This file contains hidden or 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
| # /etc/ssh/ldap.conf | |
| # See ldap.conf(5) for details | |
| # This file should be world readable but not world writable. | |
| BASE ou=People,dc=example,dc=org | |
| URI ldap://localhost |
This file contains hidden or 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 - | |
| #=============================================================================== | |
| # | |
| # FILE: vhostadd | |
| # | |
| # USAGE: ./vhostadd -n UserName -p Password -d FQDN | |
| # | |
| # DESCRIPTION: | |
| # | |
| # OPTIONS: --- |
This file contains hidden or 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
| # Backup filesystem perms: | |
| getfacl -R / > /tmp/perms.txt | |
| # Restore filesystem perms: | |
| setfacl --restore=/tmp/perms.txt |
This file contains hidden or 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
| startup_message off | |
| screen -t bash1 0 | |
| screen -t bash2 1 | |
| select 0 | |
| altscreen on | |
| term screen-256color | |
| bind ',' prev | |
| bind '.' next | |
| vbell off | |
| defscrollback 5000 |
This file contains hidden or 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
| // 1. Go to https://twitter.com/i/likes | |
| // 2. Keep scrolling to the bottom repeatedly until all your favs are loaded. | |
| // 3. Run this in your console (open in chrome by View > Developer > JavaScript Console) | |
| // Notes: this may take a while if you have a lot of favs/likes | |
| // you can only access your most recent ~2000 likes. | |
| // inspired by https://gist.github.com/JamieMason/7580315 | |
| $('.ProfileTweet-actionButtonUndo').click() |
This file contains hidden or 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 | |
| readonly HOSTSFILE='/etc/hosts' | |
| readonly COMMENTCHR='#' | |
| readonly URLS=( \ | |
| '0.0.0.0 facebook.com' \ | |
| '0.0.0.0 twitter.com' \ | |
| '0.0.0.0 www.facebook.com' \ | |
| '0.0.0.0 www.twitter.com' \ | |
| ) |
This file contains hidden or 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 | |
| readonly UCONF='/etc/unbound/unbound.conf' | |
| # toggle block on/off, kill chromium, restart unbound | |
| awk -v commentId='#' -v word='include: /etc/unbound/block.conf' ' | |
| $0 ~ "(^|[[:punct:][:space:]])" word "($|[[:punct:][:space:]])" { | |
| if (match($0, "^[[:space:]]*" commentId)) { | |
| $0 = substr($0, RSTART + RLENGTH); | |
| system("pkill --oldest chromium") |