Skip to content

Instantly share code, notes, and snippets.

@hoyin258
hoyin258 / synology-mount-photo-station-to-moment-folder.md.md
Last active April 17, 2021 08:06
synology-mount-photo-station-to-moment-folder.md
  1. SSH into your Synology
  2. Find the corresponding folders in the filesystem.

=> Private Photo Station folder: /volume1/homes/USER/photo => Moments folder: /volume1/homes/USER/Drive/Moments

  1. Mount Photo Station folder into Moments using

Command

@hoyin258
hoyin258 / install-ios-development-build-to-simulator.sh
Last active April 7, 2020 15:36
Step for create iOS build and get the iOS build from simulator, and fetch the app and install it in another simulator
# open project and Run project and create the iOS App
# Get the simulator ID
instruments -s devices
# Go to folder of simulator
open ~/Library/Developer/CoreSimulator/Devices/[Simulator UDID]
# Get the app
cd data/Containers/Bundle/Application
# Install Required Software
brew cask install caskroom/versions/java8
brew cask install android-sdk
brew cask install intel-haxm
# Set path
export ANDROID_SDK_ROOT="/usr/local/share/android-sdk"
# List out existing playstore image
# sdkmanager --list | grep "playstore"
# Installation Jenkins:
brew update && brew install jenkins
# Java Runtime Environment:
brew cask install java
# Config Launch:
ln -sfv /usr/local/opt/jenkins/*.plist ~/Library/LaunchAgents
sudo cp -fv /usr/local/opt/jenkins/*.plist /Library/LaunchDaemons
sudo chown `whoami` /Library/LaunchDaemons/homebrew.mxcl.jenkins.plist
@hoyin258
hoyin258 / self-software-development-flow.md
Last active December 19, 2019 14:05
Flow Char Mark down

Open->In Progress: Start development
In Progress->Blocked: Blocked by external
Blocked-->In Progress: Dependency resolved
In Progress->Development Done: Pending to release a build/\ndeploy to testable server
Development Done-->In Progress: Code review/ \n Marge failed
Development Done->QA Ready: Ready to testing
QA Ready-->Reopen: Failed
Reopen-->In Progress: Restart the development
@hoyin258
hoyin258 / introrx.md
Created August 10, 2016 18:07 — forked from staltz/introrx.md
The introduction to Reactive Programming you've been missing
@hoyin258
hoyin258 / gist:dd86cb4fd89a853296be
Created January 18, 2016 09:59
adb connect (Wifi)
adb tcpip 5555
adb connect <DEVICE_IP_ADDRESS>:5555
@hoyin258
hoyin258 / Android export debug cert
Last active August 29, 2015 14:09
Get Android Debug Keystore command
Google Play:
keytool -exportcert -alias androiddebugkey -keystore ~/.android/debug.keystore -list -v
Facebook:
keytool -exportcert -alias androiddebugkey -keystore ~/.android/debug.keystore | openssl sha1 -binary | openssl base64

#Nginx => Unicorn > Rails

##Nginx Setting

vim /etc/nginx/conf.d/default.conf
upstream app {
    # Path to Unicorn SOCK file, as defined previously
    server unix:/tmp/unicorn.myapp.sock fail_timeout=0;
ps aux | grep 'unicorn' | awk '{print $2}' | xargs sudo kill -9