Skip to content

Instantly share code, notes, and snippets.

@charlespeach
charlespeach / hack-mini.md
Last active May 26, 2017 18:06
Hack-mini part list

Parts list for the Hack-Mini

The following parts are what I used for mine. If you want to build your own, please message me and I can help with the hackintosh setup!

  • 1x ASRock Deskmini 110 (Case/Mobo/DC Powerbrick combo!)
  • 1x Intel Skylake Core i3 (You could swap this out for any Skylake processor, just be mindful the board that comes in the Deskmini has a intel H110 chipset and does not support overclocking)
  • 2x Kingston ValueRAM SO-DIMM DDR4 PC17000/2133MHz CL15 8GB (You could increase this to 2x 16GB as the system supports 32GB)
  • Lastly: What ever storage you want. There is a m.2 slot for a PCI-e x4 SSD (think intel 600p, samsung 950/960 PRO, cannot be sata) and also 2x SATA 3 headers for 2.5mm SATA SSD's. Pick your poison!

If you want wifi/bluetooth, I suggest buying this: [Broadcom WIFI Wireless AC BCM94352Z](https://www.aliexpress.com/item/NEW-Broadcom-Or

@christopheranderton
christopheranderton / shutdown-restart-sleep-macosx.sh
Created October 19, 2017 18:39
CLI OS X/macOS: Shutdown, Restart and Sleep Commands
# Classic BSD Style
#---------------------------------------------------------------
# Shutdown hardcore style
sudo shutdown -h now
# Shutdown at once hardcore style
sudo shutdown -r now
# Shutdown hardcore style in 30 minutes
@lordn-n
lordn-n / js_contextMenu_textSelec
Last active January 14, 2018 10:59
Enable/Disable context menu and text selection
/*
* Deshabilita click derecho (menu contextual)
*/
window.oncontextmenu = function(){
return false;
};
/*
* Habilita click derecho (menu contextual)
*/
#!/bin/bash
# +----------------------------------------------------------------------+
# | |
# | Set up Mac OS X to store temporary files in RAM rather than on disk.|
# | Updated for Yosemite, 16 GB of RAM |
# | |
# | By James Newell <jrnewell@github> |
# | |
# | Originally by Ricardo Gameiro <http://blogs.nullvision.com/?p=357> |
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>keys</key>
<dict>
<key>*</key>
<dict>
<key>'!'</key>
<dict>
@mrmt
mrmt / KeySetting_Default.plist
Last active February 2, 2018 10:11
Yosemite:/System/Library/Input Methods/JapaneseIM.app/Contents/Resources/KeySetting_Default.plist
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>version</key>
<integer>1</integer>
<key>keys</key>
<dict>
<key>before_typing</key>
<dict>
@suneo3476
suneo3476 / html_dic.txt
Created April 25, 2013 19:40
Google日本語入力用のHTMLタグ辞書のエクスポートデータです。 This is the exported data of HTML tag dictionary for Google Japnaese IME.
へてむる <html></html> 記号
へっど <head></head> 記号
ぼでぃ <body></body> 記号
みだし <h1></h1> 記号
みだし <h2></h2> 記号
みだし <h3></h3> 記号
みだし <h4></h4> 記号
みだし <h5></h5> 記号
みだし <h6></h6> 記号
だんらく <p></p> 記号
@ypresto
ypresto / init.lua
Last active March 1, 2018 14:22
英数キーとかかなキーとかを同時押しの時だけAltキーにするHammerspoonの設定
local pressedKeyTable = {}
-- TODO: Consider about consumed per keys is necessary or not.
local consumed = false
local keyCodeTable = {}
keyCodeTable[0x66] = true -- EISUU
keyCodeTable[0x68] = true -- KANA
eventtap = hs.eventtap.new({ hs.eventtap.event.types.keyDown, hs.eventtap.event.types.keyUp }, function(event)
local keyCode = event:getKeyCode()
if keyCodeTable[keyCode] == true then
//@target "indesign"
$.writeln(app.version);
var doc = app.documents.add();
app.scriptPreferences.measurementUnit = MeasurementUnits.POINTS;
var tf = doc.textFrames.add({geometricBounds:[10,10,50,100]});
var tbl = tf.tables.add({bodyRowCount:4, columnCount:4});
var c = tbl.columns[0];
var i = 4;
while (i-=0.0001) {
@hetima
hetima / cmd.sh
Created May 25, 2017 09:58
マウスホイールのスクロール加速度を調節
/usr/bin/hidutil property --filter '{"ProductID":0xc246,"VendorID":0x46d,}' --set '{"HIDMouseScrollAcceleration":75000}'