Skip to content

Instantly share code, notes, and snippets.

View Luavis's full-sized avatar
🐈
meow~

Luavis Luavis

🐈
meow~
View GitHub Profile
@Luavis
Luavis / install-arch.sh
Created May 2, 2019 02:42 — forked from akhenakh/install-arch.sh
Install Arch Linux on OSX with xhyve
#!/bin/bash
#
# Usage
# install-arch.sh ./archlinux-2018.11.01-x86_64.iso
# first you neeed to patch xhyve with this
# index 61aeebb..39a9c4b 100644
# --- a/src/firmware/kexec.c
# +++ b/src/firmware/kexec.c
# @@ -185,6 +185,7 @@ kexec_load_ramdisk(char *path) {

tmux cheatsheet

As configured in my dotfiles.

start new:

tmux

start new with session name:

hg clone http://code.nsnam.org/bake bake
export BAKE_HOME=`pwd`/bake
export PATH=$PATH:$BAKE_HOME
export PYTHONPATH=$PYTHONPATH:$BAKE_HOME
mkdir dce
cd dce
sudo apt-get -y install python g++ mercurial cvs git bzr tar unzip unrar p7zip-full xz-utils make cmake patch dh-autoreconf bison flex g++ libc6:i386 libc6 libc6-dbg libdb-dev libexpat1-dev libpcap-dev libssl-dev python-pygoocanvas python-pygraphviz python-dev qt4-dev-tools
bake.py configure -e dce-linux-1.6
ACAccountStore *accountStore = [[ACAccountStore alloc] init];
ACAccountType *facebookAccountType = [accountStore accountTypeWithAccountTypeIdentifier:ACAccountTypeIdentifierFacebook];
id options = @{
ACFacebookAppIdKey: @"403376439767549",
ACFacebookPermissionsKey: @[ @"email", @"read_friendlists"],
ACFacebookAudienceKey: ACFacebookAudienceFriends
};
[accountStore requestAccessToAccountsWithType:facebookAccountType
options:options
completion:^(BOOL granted, NSError *error) {
@Luavis
Luavis / ds_store_remove.sh
Last active August 29, 2015 14:03 — forked from randyjhunt/gist:43184
ds_store_remove.sh
find . -name .DS_Store -print0 | xargs -0 git rm --ignore-unmatch
git config --global core.excludesfile ~/.gitignore
echo .DS_Store >> ~/.gitignore
#import <Foundation/Foundation.h>
@interface Communicator : NSObject <NSStreamDelegate> {
@public
NSString *host;
int port;
}
- (void)setup;