Skip to content

Instantly share code, notes, and snippets.

View narze's full-sized avatar
🕺
You know the rules, and so do I

Manassarn "Noom" Manoonchai narze

🕺
You know the rules, and so do I
View GitHub Profile
@narze
narze / .laptop.local
Created October 27, 2014 04:02
Laptop customization file
#!/bin/sh
brew install caskroom/cask/brew-cask
brew tap caskroom/versions
brew cask install airmail-beta
brew cask install alfred
brew cask install arduino
brew cask install atom
brew cask install audacity
@narze
narze / karabiner_superduper.xml
Last active August 9, 2022 22:56
Super Duper mode for Karabiner
<?xml version="1.0"?>
<root>
<!--
Adapted from the built-in "Simultaneous Vi Mode" option:
https://github.com/tekezo/KeyRemap4MacBook/blob/6aa99ba/src/core/server/Resources/include/checkbox/simultaneouskeypresses_vi_mode.xml#L4
-->
<item>
<name>(S)uper (D)uper Mode</name>
<item>
<name>What's (S)uper (D)uper Mode?</name>
@narze
narze / private.xml
Created February 5, 2015 16:52
Including external file into karabiner settings
<?xml version="1.0"?>
<root>
// ... some other bindings
<include path="{{ ENV_HOME }}/Dropbox/Applications/karabiner_superduper.xml" />
</root>
. looking for programs needed by Minimal Kiosk Browser
found: lxterminal
found: xpdf for better PDF support (recommended: evince!)
found: omxplayer
for use with omxplayerGUI you should always get the latest version
from http://omxplayer.sconde.net/
youtube-dl not found. It is needed for web video support.
Raspbian version is broken, therefore install it with the following commands:
sudo wget https://yt-dl.org/latest/youtube-dl -O /usr/bin/youtube-dl
sudo chmod a+x /usr/bin/youtube-dl
@if (@This==@IsBatch) @then
@echo off
rem **** batch zone *********************************************************
setlocal enableextensions disabledelayedexpansion
rem Batch file will delegate all the work to the script engine
if not "%~1"=="" (
wscript //E:JScript "%~dpnx0" %1
)
http://arduino.esp8266.com/stable/package_esp8266com_index.json
@narze
narze / hotspot.php
Created September 7, 2015 11:33
Chillispot php auth
<?php
// TODO:
// - Refactor, but keeping original behaviour first
// - Use bootstrap.css
// - Use simple xView (create a git project from RestQL xView implementation)
// - one view per 'res' state
// - one window layout, one popup layout
// - separate js files
// - Keep debugging feature (keep it kiss)
// - one view for debug
#!upstart
#
# An example upstart script for running a Node.js process as a service
# using Forever as the process monitor. For more configuration options
# associated with Forever, see: https://github.com/nodejitsu/forever
#
# You will need to set the environment variables noted below to conform to
# your use case, and should change the description.
#
description "Example upstart script for a Node.js process"
@if (@X)==(@Y) @end /* JScript comment
@echo off
rem :: the first argument is the script name as it will be used for proper help message
cscript //E:JScript //nologo "%~f0" "%~nx0" %*
exit /b %errorlevel%
@if (@X)==(@Y) @end JScript comment */
@narze
narze / brew_cask_apps.sh
Created November 22, 2015 18:13
Large list of cask apps I'm currently using
brew cask install airmail-beta
brew cask install alfred
brew cask install android-file-transfer
brew cask install android-studio
brew cask install arduino
brew cask install atom
brew cask install audacity
brew cask install bartender
brew cask install bettertouchtool
brew cask install bittorrent-sync