most of these require logout/restart to take effect
# Enable character repeat on keydown
defaults write -g ApplePressAndHoldEnabled -bool false
# Set a shorter Delay until key repeat
/* Sets the transparency of the toplevel window. | |
* An alpha value of 1 draws the window opaque a value of 0 makes | |
* it totally translucent. | |
* If alpha is set to a value outside of [0..1] EINVAL is returned. */ | |
static int settransparency_helper(Display * display, Window win, double alpha) | |
{ | |
int err ; | |
if ( alpha < 0 | |
|| alpha > 1) { |
/* | |
____ _____ | |
/\__ \ /\ ___\ | |
\/__/\ \ \ \ \__/_ | |
\ \ \ \ \____ \ | |
_\_\ \ \/__/_\ \ | |
/\ _____\ /\ _____\ | |
\/______/ \/______/ | |
Copyright (C) 2011 Joerg Seebohn |
#include <lua.h> | |
#include <lauxlib.h> | |
#include <lualib.h> | |
#include <stdlib.h> | |
int map_create(lua_State *lua); | |
int map_slice(lua_State *lua); | |
int main(int argc, char **argv){ | |
lua_State *lua = lua_open(); |
From: http://snipt.net/yonishin/about-xcode-4-project-template | |
XCode 4 Projects and Files Template Folder: /Developer/Library/Xcode/Templates | |
Examples: | |
/Developer/Library/Xcode/Templates/Project Templates/Base/Other/Empty.xctemplate | |
/Developer/Library/Xcode/Templates/Project Templates/Base/Base.xctemplate | |
/Developer/Library/Xcode/Templates/Project Templates/Mac/Mac Base.xctemplate | |
/Developer/Library/Xcode/Templates/Project Templates/Mac/Application/Command Line Tool.xctemplate | |
/Developer/Library/Xcode/Templates/Project Templates/Mac/Application/Cocoa Application.xctemplate |
#!/bin/bash | |
mkdir toolchain | |
cd toolchain | |
wget ftp://sources.redhat.com/pub/newlib/newlib-1.19.0.tar.gz | |
wget http://ftp.gnu.org/gnu/gdb/gdb-7.2.tar.gz | |
wget http://ftp.gnu.org/gnu/binutils/binutils-2.21.tar.bz2 | |
wget http://ftp.gnu.org/gnu/gcc/gcc-4.6.0/gcc-core-4.6.0.tar.bz2 |
#!/usr/bin/perl | |
###################################################################### | |
# | |
# File : split_bootimg.pl | |
# Author(s) : William Enck <enck@cse.psu.edu> | |
# Description : Split appart an Android boot image created | |
# with mkbootimg. The format can be found in | |
# android-src/system/core/mkbootimg/bootimg.h | |
# | |
# Thanks to alansj on xda-developers.com for |
#ifdef _WIN32 | |
#include <malloc.h> | |
#endif | |
#include <cstdint> | |
#include <vector> | |
#include <iostream> | |
/** | |
* Allocator for aligned data. |
#!/usr/bin/env python | |
# -*- coding: UTF-8 -*- | |
__author__ = 'Tzury Bar Yochay' | |
__version__ = '0.1' | |
__license__ = 'GPLv3' | |
import logging | |
from logging import handlers |