Skip to content

Instantly share code, notes, and snippets.

View non7top's full-sized avatar

non7top non7top

  • Bakı
  • 17:44 (UTC +04:00)
View GitHub Profile
@non7top
non7top / settings.py
Last active August 29, 2015 14:04
Custom pillar module that reads data from simple ini file.
#!py
# no globbing or extended matching of minion names
# ini format:
#[DEFAULT]
#sshd_port=22
#
#[server1]
#sshd_port=10022
@non7top
non7top / bashup.sh
Last active August 29, 2015 14:07
Update bash ubuntu
# http://unix.stackexchange.com/a/157714
export MINOR=3
mkdir -p /usr/local/src/dist && cd /usr/local/src/dist
wget http://ftpmirror.gnu.org/bash/bash-4.${MINOR}.tar.gz.sig
wget http://ftpmirror.gnu.org/bash/bash-4.${MINOR}.tar.gz
wget http://tiswww.case.edu/php/chet/gpgkey.asc
gpg --import gpgkey.asc
gpg --verify bash-4.${MINOR}.tar.gz.sig
cd ..
@non7top
non7top / user.css
Last active August 29, 2015 14:07
Make firefox pinned tabs wider
@namespace url(http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul);
/* https://gist.github.com/non7top/9617943d02aa51d3377d */
/* wider and better looking pinned tabs */
.tabbrowser-tab[pinned] {
width: 50px;
}
/* wider and better looking pinned tabs */
.tab-throbber[pinned],
#!/bin/bash
# Get the latest kernel installed
NEW_VERSION=`ls -tA1 /lib/modules | head -n 1`
# Check if the module is already present, if not- continue
if [ ! -e /lib/modules/$NEW_VERSION/misc/pvscsi.ko ]; then
# Log output to show version we're fixing
echo "Fixing VMware Paravirtual Drivers for reboot. Kernel: $NEW_VERSION"
#!/bin/bash
# by non7top
LC_ALL=C
LANG=C
EMAIL=""
RETENTION=10
SOURCE=/backups/fusion
DEST=/mnt/backups
USB_LABEL="backups"
#!/bin/bash
# IMPORTANT:
# by default outputs physical memory
# - Linux only
# - User which is running the script should have
# same primary group as the one running oracle,
# otherwise ipcs will report 0 instead of
# actual shared memory. Being in the same
# groups may be not be enough
wget -O- http://cpanmin.us | perl - -l ~/perl5 App::cpanminus local::lib
eval `perl -I ~/perl5/lib/perl5 -Mlocal::lib`
echo 'eval `perl -I ~/perl5/lib/perl5 -Mlocal::lib`' >> ~/.bash_profile
echo 'export MANPATH=$HOME/perl5/man:$MANPATH' >> ~/.bash_profile
cpanm
@non7top
non7top / install_local.sh
Last active January 30, 2016 17:34
Install local version of openssl/curl/python2
#!/bin/bash
set -e
source $HOME/local.env
PKGS_FILE=$LOCAL_PATH/.packages
install_openssl() {
VERSION="${1:-1.0.2d}"
cd $TMP
@non7top
non7top / notaries
Last active January 17, 2017 11:58
https://non7top.tk/notary/
-----BEGIN PUBLIC KEY-----
MIHKMA0GCSqGSIb3DQEBAQUAA4G4ADCBtAKBrAHNEJQiiQdn5xTMJ3201H9wbR+Y
3VCFGGtrxmGQw5Os7zz+fpmtNxmVr68Yz7s3LfNgWiJDpTiCt+buFwcSY8RuUp7p
1Cv3RSHsivh7VJO+m2Wm/wfl7rXJELAyoP36WcK9SK/RLJqFxTYcTJPs+bSknot9
cP7MHZmsBJ8090Yy5WJqLnPTekhEIFbtIElbW6aHaXN6Obk9wtqDR69d3ztBLTsj
YmTxy9V/g2MCAwEAAQ==
-----END PUBLIC KEY-----
http://ec2-52-213-71-206.eu-west-1.compute.amazonaws.com:8080/
#palemoon
prompts.tab_modal.focusSwitch;false
gfx.downloadable_fonts.enabled;false