Skip to content

Instantly share code, notes, and snippets.

View tairov's full-sized avatar

Aydyn Tairov tairov

  • London, UK
View GitHub Profile
ansible mongo_replics -i production -m raw -a 'apt-get -y install python' -u root
ansible-playbook mongo_replics.yml -i production -u root --check
PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]$(__git_ps1 "\[\033[01;32m\] [%s]\[\033[00m\]")\$ '
wget --no-check-certificate https://raw.github.com/FastVPSEestiOu/storage-system-monitoring/master/install.sh -O-|bash
tmpfs /home/сс/.chrome/ramdisk tmpfs noatime,nodiratime,nodev,nosuid,uid=1000,gid=100,mode=0700,size=300M 0 0
@tairov
tairov / gist:5e8f3b4ec1f402e62000
Created November 5, 2014 09:46
ssh jump-host tunnel
ssh -A -t -p PORT1 -l LOGIN1 HOST1 ssh -A -t -p PORT2 -l LOGIN2 HOST2_IP
@tairov
tairov / gist:3fc0f13b86885e12f790
Created November 5, 2014 09:16
fastvps, smartscheck
wget https://raw.githubusercontent.com/nett00n/scripts/master/smartscheck.sh -O - --no-check-certificate|bash
@tairov
tairov / gist:a2a9ebb1fbe22e8480f3
Last active August 29, 2015 14:07
memcached init script (init.d/memcached)
#! /bin/bash
### BEGIN INIT INFO
# Provides: memcached
# Required-Start: $remote_fs $syslog
# Required-Stop: $remote_fs $syslog
# Should-Start: $local_fs
# Should-Stop: $local_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start memcached daemon
@tairov
tairov / gist:874491d348dca03b0d6e
Last active August 29, 2015 14:07
subtitle links, coursera
1. chrome console > txt = ""; var fnc = function(i,e) {txt += "\n" + e.href}; $('a[title="Subtitles (text)"]').each(fnc); console.log(txt);
2. save links to file listsub.txt
3. wget -O- -i listsub.txt > text_sub.txt
#
# Hetzner Online AG - installimage
#
# This file contains the configuration used to install this
# system via installimage script. Comments have been removed.
#
# More information about the installimage script and
# automatic installations can be found in our wiki:
#
# http://wiki.hetzner.de/index.php/Betriebssystem_Images_installieren
curl -Ss https://raw.githubusercontent.com/pixelb/ps_mem/master/ps_mem.py | sudo python