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
#include <iostream> | |
#include <X11/Xlib.h> | |
#include <X11/extensions/xf86vmode.h> | |
/* How to compile: | |
g++ -o set_gamma_linux.o -c set_gamma_linux.cpp | |
g++ -o set_gamma_linux set_gamma_linux.o -L/usr/lib -L/usr/local/lib -lX11 -lXxf86vm | |
*/ | |
void log(const char* message); |
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
import ping | |
import subprocess | |
import time | |
import argparse | |
""" | |
Requirements: | |
python 2.7.9 + | |
pip | |
pip install ping |
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
# download ubuntu iso | |
The iso version should be lower/equal than/to the host version. | |
# install uck (ubuntu customization kit) | |
run: | |
sudo apt-get install uck | |
# setup chroot environment from iso |
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
import subprocess | |
import argparse | |
def log(msg): | |
print('# {msg}'.format(msg=msg)) | |
def loghr(msg): | |
print(72 * '#') | |
log(msg) |
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
import argparse | |
import subprocess | |
def main(): | |
argparser = argparse.ArgumentParser() | |
argparser.add_argument('name') | |
argparser.add_argument('pwd') | |
args = argparser.parse_args() |
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
# turnoff vim swapfile | |
echo "set noswapfile" >> ~/.vimrc | |
# install graphic manager | |
sudo apt-get update | |
sudo apt-get install xserver-xorg | |
# setup i3 ppa and install i3 | |
sudo sh -c 'echo "deb http://debian.sur5r.net/i3/ $(lsb_release -c -s) universe" >> /etc/apt/sources.list.d/i3.list' | |
sudo apt-get update |
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
<scheme name="Base16-Summerfruit-Light" version="142" parent_scheme="Default"> | |
<option name="LINE_SPACING" value="1.1" /> | |
<option name="EDITOR_FONT_SIZE" value="12" /> | |
<option name="CONSOLE_FONT_NAME" value="InputMonoCompressed Light" /> | |
<option name="CONSOLE_LINE_SPACING" value="1.0" /> | |
<option name="EDITOR_FONT_NAME" value="InputMonoCompressed Medium" /> | |
<colors> | |
<option name="ADDED_LINES_COLOR" value="c918" /> | |
<option name="ANNOTATIONS_COLOR" value="303030" /> | |
<option name="CARET_COLOR" value="3971ed" /> |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<!-- Generated by: TmTheme-Editor --> | |
<!-- ============================================ --> | |
<!-- app: http://tmtheme-editor.herokuapp.com --> | |
<!-- code: https://github.com/aziz/tmTheme-Editor --> | |
<plist version="1.0"> | |
<dict> | |
<key>name</key> | |
<string>Summerfruit</string> |
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
<ExtGrpBakV2><group><key>GRP-Development</key><val>{"name":"Development","id":"Development","type":"extGrp","enabled":false,"items":["dogkpdfcklifaemcdfbildhcofnopogp","acacmjcicejlmjcheoklfdchempahoag","fhbjgbiflinjbdggehcddcbncdddomop","aicmkgpgakddgnaphhhpliifpcfhicfo"]}</val></group><group><key>GRP-Design</key><val>{"name":"Design","id":"Design","type":"extGrp","enabled":false,"items":["mcbpblocgmgfnpjjppndjkmgjaogfceg","ohcpnigalekghcmgcdcenkpelffpdolg","fppjbihjmidhgfmacekmdmkgppfcipbl"]}</val></group><group><key>GRP-Essential</key><val>{"name":"Essential","id":"Essential","type":"extGrp","enabled":true,"items":["oeopbcgkkoapgobdbedcemjljbihmemj","kimodcegbhclamjcbifgfaldeengbgij","mfembjnmeainjncdflaoclcjadfhpoim","mclkkofklkfljcocdinagocijmpgbhab","aapbdbdomjkkjkaonfhkkikfgjllcleb","immpkjjlgappgfkkfieppnmlhakdmaab","jpjjclfccoocnckcbonckikbjlipjion"]}</val></group><group><key>GRP-Entertaiment</key><val>{"name":"Entertaiment","id":"Entertaiment","type":"extGrp","enabled":false,"items":["jjphmlaoffndcn |
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/sh | |
sj=$1 | |
to=$2 | |
in=$3 | |
on=$4 | |
echo "sj=$sj" | |
echo "to=$to" | |
echo "in=$in" |
OlderNewer