This file contains 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
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 | |
-- |
This file contains 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
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 |
This file contains 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
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}" |
This file contains 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
應該是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 |
This file contains 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
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 |
This file contains 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 openai | |
import os | |
import requests | |
from openai import OpenAI | |
client = OpenAI( | |
api_key=os.environ["OPENAI_API_KEY"], | |
) |