View gist:d0ccd634629fdcf2b51c
#!/bin/bash
# clone from https://github.com/opengers/vminfo
# edit by wangzezhi
vm_info_file="/tmp/vminfo"
#get vm name
function get_vmnames() {
View backup_script.py
#!/usr/bin/python
import gzip
import subprocess
import os
import datetime
# Directories to Backup
dir_to_backup = '/var/www/'
View number_hack.py
import sys
import ctypes
pyint_p = ctypes.POINTER(ctypes.c_byte*sys.getsizeof(5))
five = ctypes.cast(id(5), pyint_p)
print(2 + 2 == 5) # False
five.contents[five.contents[:].index(5)] = 4
print(2 + 2 == 5) # True (must be sufficiently large values of 2 there...)
View LICENSE.txt
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2011 Attila Incze <http://atimb.me>
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE