Skip to content

Instantly share code, notes, and snippets.

@simongcc
simongcc / weinre-debug.bat
Created April 26, 2019 11:27
weinre debug batch file (Windows)
rem ref: https://www.broken-links.com/2013/06/28/remote-debugging-with-weinre/
weinre --boundHost -all-
@simongcc
simongcc / dabblet.css
Created April 6, 2019 07:40
CSS States
/* CSS States */
body {
background: url(http://dabblet.com/img/noise.png);
background-color: #F5F2F0;
font-family: Georgia, serif;
font-size: 18px;
line-height: 1.6em;
text-shadow: 0 2px 0 white;
color: #222;
}
@simongcc
simongcc / dabblet.css
Created April 6, 2019 06:36 — forked from JoelBesada/dabblet.css
CSS States
/* CSS States */
body {
background: url(http://dabblet.com/img/noise.png);
background-color: #F5F2F0;
font-family: Georgia, serif;
font-size: 18px;
line-height: 1.6em;
text-shadow: 0 2px 0 white;
color: #222;
}
@simongcc
simongcc / threejsBoilerplate.html
Created April 2, 2019 07:37 — forked from HalfdanJ/threejsBoilerplate.html
THREE.JS Boilerplate with controls
<!doctype html>
<html>
<head>
<title>Three.js Boilerplate</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
<script src="https://cdnjs.cloudflare.com/ajax/libs/three.js/r79/three.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/stats.js/r16/Stats.min.js"></script>
@simongcc
simongcc / notes-on-maya.txt
Last active April 2, 2019 04:32
Notes on using Maya
# Maya (tested on Maya 2018)
## import AI to Maya
1 Open your logo in Adobe Illustrator.
2 Export the file as (Illustrator 8) and press OK.
3 Open Maya and go to Create > then open the option box for > Adobe (R) Illustrator (R) Object.
## Maya Command
### Reverse normal
1 change to component mode
2 select face
@simongcc
simongcc / macOS-in-virtualbox.md
Created March 15, 2019 06:12 — forked from rob-smallshire/macOS-in-virtualbox.md
Notes on getting macOS Sierra running in Virtualbox on a Windows 10 host

On Mac

Download, but don't run, the Sierra installer from the Mac App Store. This places the installer at /Applications/Install\ macOS\ Sierra.app/.

Now run the following commands to build a suitable VM image from the installer:

git clone https://github.com/jonanh/osx-vm-templates
cd osx-vm-templates/packer

sudo ../prepare_iso/prepare_vdi.sh -D DISABLE_REMOTE_MANAGEMENT -o macOS_10.12.vdi /Applications/Install\ macOS\ Sierra.app/ .

@simongcc
simongcc / OSX-Notes.txt
Last active March 19, 2019 09:30
Notes on MacOS
# get cpu id
sysctl -n machdep.cpu.brand_string
sysctl -a | grep machdep.cpu
# set virtual box guest display ram size
vboxmanage modifyvm "macOS 10.12 Sierra" --vram 256MB
# set virtual box EFI data to macbook pro 2017 late
VBoxManage setextradata "macOS 10.12 Sierra" "VBoxInternal/Devices/efi/0/Config/DmiSystemProduct" "MacBookPro14,3"
@simongcc
simongcc / notes-on-teamviewer-removal@OSX.txt
Created February 25, 2019 07:55
Completely remove Teamviewer from Mac OSX
Credit goes to:
https://nektony.com/mac-app-cleaner/uninstall-teamviewer-from-mac
~Library/Application Support/TeamViewer
~Library/Caches/ com.teamviewer.TeamViewer
~Library/Preferences/com.teamviewer10.plist
~Library/Preferences/com.teamviewer.TeamViewer.plist
~Library/Logs/TeamViewer
@simongcc
simongcc / Gulp-with-Babel-notes.txt
Created February 18, 2019 13:48
Notes on dealing with Babel with Gulp
When using Gulp with Babel and encounter problem during upgrade modules, can check:
1. run npx babel-upgrade to check, with --write to actually modify
2. remove the node_modules, can use Ram drive to test without hurting the SSD/HD
3. check gulp-cli version by typing > gulp -v, the local version did affect the result
in my case, it was cli: 1.3, local: 4.0, the 1.3 did not support to run properly after upgrading to Babel 7.0 with gulp-babel etc also updated
@simongcc
simongcc / convert-bin-to-iso@MacOS.txt
Created January 22, 2019 04:50
Custom Search How to Convert .bin and .cue to ISO on Mac
Credit: osxdaily
Reference:
http://osxdaily.com/2018/08/05/how-convert-bin-cue-to-iso-mac/
brew install bchunk
bchunk Input.bin Input.cue Output.iso
* this method, the original bootable bin will not be bootable after conversion in iso format