Skip to content

Instantly share code, notes, and snippets.

# A guide to prevent pain and suffering while upgrading to OS X Mavericks
# This will vary greatly depending on system set up, so read the instructions carefully
# Back up Virtulenvs
####################
# Very important!
# For each virtualenv you have, run "pip freeze > requirements.txt" while in the activated virtualenv
# in order to prevent loss of dependencies during the upgrade.

在 OS X 上製做 Ubuntu USB 安裝碟

  1. 下載 Ubuntu Desktop
  1. .iso 檔轉換成 .dmg
hdiutil convert -format UDRW -o ~/path/to/ubuntu.dmg ~/path/to/ubuntu.iso
@hdyen
hdyen / Linux_Setup.md
Last active August 29, 2015 14:08
Linux Development Enviroment Setting Up

Linux Development Enviroment Setting Up

Everytime after reinstall the system, there are lots of settings to do. I try to log down some todos reminding me these setting up.

JDK

  1. Download Java SE.
@hdyen
hdyen / ubuntu_user_settings.md
Created October 25, 2014 03:44
Ubuntu User Enviroment Setting Up

Ubuntu User Enviroment Setting Up

Unity Tweaking

sudo apt-get install unity-tweak-tool
@hdyen
hdyen / mac_dev_settings.md
Created October 25, 2014 03:47
Mac Development Enviroment Setting Up

Mac Development Enviroment Setting Up

#!/bin/sh
# Alot of these configs have been taken from the various places
# on the web, most from here
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
# Set the colours you can use
black='\033[0;30m'
white='\033[0;37m'
red='\033[0;31m'
@hdyen
hdyen / README.md
Last active August 29, 2015 14:11 — forked from jimothyGator/README.md
nginx conf on OS X with brew
mkdir -p /usr/local/etc/nginx/sites-{enabled,available}

File locations:

  • nginx.conf to /usr/local/etc/nginx/
  • default and default-ssl to /usr/local/etc/nginx/sites-available
  • homebrew.mxcl.nginx.plist to /Library/LaunchDaemons/
apply plugin: 'android-library'
repositories {
mavenCentral()
}
android {
compileSdkVersion 17
buildToolsVersion '19.1.0'
  UPDATE `NEXUS 5` 
     SET `VERSION`='5.0.1', `BUILD`='LRX22C', `RECOVERY`='CUSTOM', `ROOTED`=1 
   WHERE `VERSION`='5.0' && `BUILD`='LRX21O' && `RECOVERY`='CUSTOM' && `ROOTED`=1 
         && `WANNA_KEEP_USERDATA`=1;

A manual OTA for rooted hammerheads, quasi.

@hdyen
hdyen / nginx+uWSGI.md
Last active October 26, 2015 03:16
Ubuntu 12.04.5 LTS nginx + uWSGI

Installing nginx using official repo

下載並新增 nginx_signing.key

wget http://nginx.org/keys/nginx_signing.key
sudo apt-key add nginx_signing.key

新增 /etc/apt/sources.list.d/nginx.list