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 | |
curl --silent https://api.github.com/repos/aceberg/git-syr/releases/latest | sed '/tag_name/!d;s/.*: "//;s/".*//' |
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
bind-key C-b send-prefix | |
bind-key C-o rotate-window | |
bind-key C-q confirm-before kill-server | |
bind-key C-z suspend-client | |
bind-key Space next-layout | |
bind-key ! break-pane | |
bind-key # list-buffers | |
bind-key $ command-prompt -I #S "rename-session '%%'" | |
bind-key & confirm-before -p "kill-window #W? (y/n)" kill-window | |
# Commennt out caused by Gist syntax error |
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
#!/usr/bin/env python | |
# -*- coding: UTF-8 -*- | |
# created by x0x01 (aka.x0x01[AT]gmail[dot]com) | |
import urllib, urllib2, cookielib | |
import re | |
from string import strip | |
LOGIN = 'User' | |
PASS = 'password' | |
OUT_DIR = '/home/user/rutracker/' |
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 | |
dpkg --list | sed 's/^.. //;s/ .*$//;1,5d;/^lib/d' | awk 'ORS=NR%3?" ":"\n"' | column -t |
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 | |
### BEGIN INIT INFO | |
# Provides: vmshutdown | |
# Required-Start: | |
# Required-Stop: | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
# Short-Description: start/stop XCP VM-s | |
# Description: XCP Virtual Machines start/stop script |
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 | |
echo "" > zduplog.txt | |
a='zduplog.txt' | |
size_a=`stat -c %s $a` | |
for b in `ls` | |
do | |
size_b=`stat -c %s $b` | |
if [ $size_a -eq $size_b ]; | |
then |
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 | |
IPTABLES="/sbin/iptables" | |
GW_IP="X.X.X.X" | |
SERVER_IP="10.0.2.15" | |
GW_PORT=7080 | |
S_PORT=8080 | |
$IPTABLES -t nat -A PREROUTING -p tcp --dst $GW_IP --dport $GW_PORT -j DNAT --to-destination $SERVER_IP:$S_PORT | |
$IPTABLES -t nat -I POSTROUTING -p tcp --dst $SERVER_IP --dport $S_PORT -j SNAT --to $GW_IP | |
echo 1 > /proc/sys/net/ipv4/ip_forward |