Skip to content

Instantly share code, notes, and snippets.

@gddabe
gddabe / .slate.js
Last active December 29, 2016 15:15
fix name
// GLOBAL CONFIGURATIONS
// -------------------------------------------------------------------
S.cfga({
"defaultToCurrentScreen": true,
"secondsBetweenRepeat": 0.1,
"checkDefaultsOnLoad": true,
"focusCheckWidthMax": 3000,
"orderScreensLeftToRight": true
});
#
# Original version by Grant Parnell is offline (http://digitaldj.net/2011/07/21/trim-enabler-for-lion/)
#
# Looks for "Apple" string in HD kext, changes it to a wildcard match for anything
#
# Alternative to http://www.groths.org/trim-enabler-3-0-released/
# Method behind this madness described: http://forums.macrumors.com/showthread.php?t=1409151&page=4
# See discussion in comments here: https://www.macupdate.com/app/mac/39654/lion-tweaks
# And here: http://forums.macrumors.com/showthread.php?t=1410459
# And here: http://forums.macrumors.com/showthread.php?t=1480302
@gddabe
gddabe / eclipse_solarized_dark_tuned.xml
Last active December 14, 2015 04:32
updated indicator colors
<?xml version="1.0" encoding="utf-8"?>
<colorTheme id="1115" name="Solarized Dark (Tuned)" modified="2015-12-14 11:50:00" author="gddabe">
<searchResultIndication color="#586E75" />
<filteredSearchResultIndication color="#586E75" />
<occurrenceIndication color="#586E75" />
<writeOccurrenceIndication color="#586E75" />
<findScope color="#E0E2E4" />
<deletionIndication color="#E0E2E4" />
<sourceHoverBackground color="#FFFFFF" />
<singleLineComment color="#586E75" bold="false" italic="true" />
@gddabe
gddabe / Brewfile
Created January 19, 2016 09:13
init setup
tap 'caskroom/cask'
tap 'homebrew/bundle'
brew 'ack'
brew 'coreutils'
brew 'node'
brew 'wget'
brew 'youtube-dl'
cask '1password'
@gddabe
gddabe / PC.dat
Created January 25, 2016 10:01
Logitech G700 setup
<?xml version="1.0" encoding="utf-8"?>
<obprofiles xmlns="http://www.logitech.com/Cassandra/2013.1/OnboardProfile">
<profile name="PC">
<device buttoncount="13" anglesnapping="0" powermode="1" model="Logitech.Gaming.Mouse.G700" reportrate="125">
<dpitable defaultindex="0">
<dpi x="2500" y="2500"/>
<dpi x="3500" y="3500"/>
<dpi x="4500" y="4500"/>
<dpi x="5000" y="5000"/>
<dpi x="5500" y="5500"/>
@gddabe
gddabe / Mac.dat
Created January 25, 2016 10:37
Logitech G700 setup
<?xml version="1.0" encoding="utf-8"?>
<obprofiles xmlns="http://www.logitech.com/Cassandra/2013.1/OnboardProfile">
<profile name="Mac">
<device buttoncount="13" model="Logitech.Gaming.Mouse.G700" powermode="1" anglesnapping="0" reportrate="125">
<dpitable defaultindex="0" currentindex="0">
<dpi x="2500" y="2500"/>
<dpi x="3500" y="3500"/>
<dpi x="4500" y="4500"/>
<dpi x="5000" y="5000"/>
<dpi x="5500" y="5500"/>
{"nv":0,"uid":"c6f4c765-3589-43d3-ad9a-5205c2e6d077","ver":"6.8.9.6","mwvc":true,"color":"white","mwvct":0,"mwvci":2,"gap":10,"hq":true,"hqi":"hd1080","pause":false,"plist":false,"buf":false,"buf1":false,"loop":false,"hide":true,"ha":true,"anns":true,"cin":true,"cina":false,"cini":2,"cinf":false,"cinc":1,"cins":"","pt":false,"pti":0,"ww":true,"wide":true,"h0":false,"h1":false,"h2":false,"h3":false,"h4":false,"h5":false,"h6":false,"h7":false,"h8":false,"a0":true,"a1":false,"a2":true,"a3":true,"a4":true,"a5":false,"ui":0,"c0":false,"c1":false,"c2":false,"c3":false,"c4":false,"f0":true,"mrl":true}
@gddabe
gddabe / osx.sh
Last active February 16, 2016 17:16
added new general settings
#!/bin/bash
# General
# ------------------------------------------------------------------------------
echo "Disable .DS_Store files on network and usb volumes"
defaults write com.apple.desktopservices DSDontWriteNetworkStores -boolean true
defaults write com.apple.desktopservices DSDontWriteUSBStores -boolean true
echo "Enable dark mode and reduce transparency"
defaults write .GlobalPreferences AppleInterfaceStyle -string "Dark"
@gddabe
gddabe / pki_setup.md
Created March 21, 2017 15:10 — forked from cbusbey/pki_setup.md
PKI Setup for QuickFIX/Go TLS Example config

The below was guided by the Eric Urban's excellent tutorial at http://www.hydrogen18.com/blog/your-own-pki-tls-golang.html

git clone https://github.com/OpenVPN/easy-rsa.git example-ca
cd example-ca/easyrsa3
./easyrsa init-pki
...
./easyrsa build-ca
...
./easyrsa build-server-full localhost nopass
@gddabe
gddabe / dsm installation cmd
Last active November 30, 2018 13:36
dsm3617
diskutil list
#usually disk2s2, s1 is EFI partition
diskutil unmount /dev/disk2s2
sudo dd if=/Users/xxx/Downloads/DSM3617JUN102B/synoboot.img of=/dev/disk2 bs=1M
edit grub.cfg on usb root, set correct vid & pid, sn mac1 is optional
set vid=0x0781
set pid=0x5571
set sn=A8ODN02468
set mac1=0011322CA603