Skip to content

Instantly share code, notes, and snippets.

@simongcc
simongcc / weinre-debug.bat
Created Apr 26, 2019
weinre debug batch file (Windows)
View weinre-debug.bat
rem ref: https://www.broken-links.com/2013/06/28/remote-debugging-with-weinre/
weinre --boundHost -all-
View wp_custom_admin_dashboard.php
/*
Custom admin dashboard
remove unnecessary admin dashboard panel
remove welcome panel
remove help tab
remove screen optons tab
remove color scheme picker
redirect after login
add custom widgets
with capabilities check example
View dabblet.css
/* 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;
}
View dabblet.css
/* 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 Apr 2, 2019 — forked from HalfdanJ/threejsBoilerplate.html
THREE.JS Boilerplate with controls
View threejsBoilerplate.html
<!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 Apr 2, 2019
Notes on using Maya
View notes-on-maya.txt
# 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 / .gitconfig
Last active Mar 20, 2019
Setup OS X git to handle crlf by Windows collaborators correctly
View .gitconfig
[core]
autocrlf = true
symlinks = true
@simongcc
simongcc / macOS-in-virtualbox.md
Created Mar 15, 2019 — forked from rob-smallshire/macOS-in-virtualbox.md
Notes on getting macOS Sierra running in Virtualbox on a Windows 10 host
View macOS-in-virtualbox.md

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 Mar 19, 2019
Notes on MacOS
View OSX-Notes.txt
# 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 Feb 25, 2019
Completely remove Teamviewer from Mac OSX
View notes-on-teamviewer-removal@OSX.txt
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