Skip to content

Instantly share code, notes, and snippets.

View jimmyliao's full-sized avatar
💭
Let's build things together!!!

JimmyLiao jimmyliao

💭
Let's build things together!!!
View GitHub Profile
@jimmyliao
jimmyliao / Android_ROM_note.txt
Last active May 5, 2016 02:50
How to flash custom ROM on to Android device
Open GApps
- Should use pico package like http://opengapps.org/?api=4.4&variant=pico
- or https://wiki.cyanogenmod.org/w/Google_Apps
-
/sdcard # cat open_gapps_log.txt
--
1. Download and dd io to sd card
2. Add config.txt to /boot if you can use HDMI to VGA converter
--
# Force the monitor to HDMI mode so that sound will be sent over HDMI cable
hdmi_drive=2
# Set monitor mode to DMT
hdmi_group=2
@jimmyliao
jimmyliao / Swift_Tooling.txt
Created May 5, 2016 06:46
How to change swift runtime with xcrun
export TOOLCHAINS=swift
xcrun --find swift
/Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2016-03-24-a.xctoolchain/usr/bin/swift
export PATH=/Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2016-03-24-a.xctoolchain/usr/bin:"${PATH}"
--
export PATH=/Library/Developer/Toolchains/${swift-latest.xctoolchain}/usr/bin:"${PATH}"
應該是re-setup on new machine:
- Change to source branch
>>>> jimmyliao@JimmyMBPR $ sudo gem install bundler
Fetching: bundler-1.12.2.gem (100%)
Successfully installed bundler-1.12.2
Parsing documentation for bundler-1.12.2
Installing ri documentation for bundler-1.12.2
Done installing documentation for bundler after 5 seconds
@jimmyliao
jimmyliao / gist:031b73b7e15848b63f3196856b867a9b
Created May 8, 2019 15:16
dev env setup - fish / tmux / vim
curl -L https://get.oh-my.fish | fish
omf install bobthefish
brew tap caskroom/fonts
brew cask install font-hack-nerd-font
set -g theme_nerd_fonts yes
cat ~/.config/fish/conf.d/omf.fish
source ~/.config/fish/config.fish
omf reload
git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm
import openai
import os
import requests
from openai import OpenAI
client = OpenAI(
api_key=os.environ["OPENAI_API_KEY"],
)