Skip to content

Instantly share code, notes, and snippets.

Avatar
🎯
Focusing

Armno P. armno

🎯
Focusing
View GitHub Profile
@armno
armno / .htaccess
Created Feb 15, 2013
Allowing Access-Control-Allow-Origin to multiple domains for Ajax requests
View .htaccess
# source: http://www.lowest-common-denominator.com/2010/01/http_access_control_to_multipl.php
# - replace `domain1.com` and `domain2.com`
# - add more domains by separating each domain with a pipe `|`
# - escape dot `.` with a backslash
<IfModule mod_headers.c>
SetEnvIf Origin "^http(s)?://(.+\.)?(domain1\.com|domain2\.com)$" origin_is=$0
Header always set Access-Control-Allow-Origin %{origin_is}e env=origin_is
</IfModule>
@armno
armno / custom-qmk.json
Created Dec 12, 2018
qmk_dz60_from_qmk_configrator
View custom-qmk.json
{"keyboard":"dz60","keymap":"armno","layout":"LAYOUT_60_ansi","layers":[["KC_ESC","KC_1","KC_2","KC_3","KC_4","KC_5","KC_6","KC_7","KC_8","KC_9","KC_0","KC_MINS","KC_EQL","KC_BSPC","KC_TAB","KC_Q","KC_W","KC_E","KC_R","KC_T","KC_Y","KC_U","KC_I","KC_O","KC_P","KC_LBRC","KC_RBRC","KC_BSLS","MO(1)","KC_A","KC_S","KC_D","KC_F","KC_G","KC_H","KC_J","KC_K","KC_L","KC_SCLN","KC_QUOT","KC_ENT","KC_LSFT","KC_Z","KC_X","KC_C","KC_V","KC_B","KC_N","KC_M","KC_COMM","KC_DOT","KC_SLSH","KC_LSFT","KC_LCTL","KC_LALT","KC_LGUI","KC_SPC","KC_LGUI","KC_LALT","MO(1)","KC_NO"],["KC_GRV","KC_NO","KC_NO","KC_NO","KC_NO","KC_NO","KC_NO","KC_MPRV","KC_MPLY","KC_MNXT","KC_MUTE","KC_VOLD","KC_VOLU","KC_NO","KC_TAB","RGB_TOG","KC_NO","KC_NO","KC_NO","KC_NO","KC_NO","KC_NO","KC_NO","KC_NO","KC_NO","KC_NO","KC_NO","RESET","KC_TRNS","KC_NO","KC_NO","KC_NO","KC_NO","KC_NO","KC_LEFT","KC_DOWN","KC_UP","KC_RGHT","KC_NO","KC_NO","KC_NO","KC_LSFT","KC_NO","KC_NO","KC_NO","KC_NO","KC_NO","KC_NO","KC_NO","KC_NO","KC_NO","KC_NO","KC_NO","KC_LCTL"
View GH60---Layer-0.kbd.json
[
{
"backcolor": "#000000",
"name": "GH60 - Layer 0",
"author": "Armno",
"switchMount": "cherry",
"switchBrand": "gateron",
"switchType": "KS-3-Tea",
"pcb": true,
"plate": true
View GH60---Layer-FN1.kbd.json
[
{
"backcolor": "#000000",
"name": "GH60 - Layer FN1",
"author": "Armno",
"switchMount": "cherry",
"switchBrand": "gateron",
"switchType": "KS-3-Tea",
"plate": true,
"pcb": true
View GH60---Layer-FN2.kbd.json
[
{
"backcolor": "#000000",
"name": "GH60 - Layer FN2",
"author": "Armno",
"switchMount": "cherry",
"switchBrand": "gateron",
"switchType": "KS-3-Tea"
},
[
View qmk_dz60_r1.json
{"version":1,"keyboard":{"keys":[{"id":0,"legend":"~\n`","state":{"x":0,"y":0,"r":0,"rx":0,"ry":0,"w":1,"h":1,"x2":0,"y2":0,"w2":0,"h2":0},"row":0,"col":0,"keycodes":[{"id":"KC_GESC","fields":[]},{"id":"KC_GRV","fields":[]},{"id":"KC_TRNS","fields":[]},{"id":"KC_TRNS","fields":[]},{"id":"KC_TRNS","fields":[]},{"id":"KC_TRNS","fields":[]},{"id":"KC_TRNS","fields":[]},{"id":"KC_TRNS","fields":[]},{"id":"KC_TRNS","fields":[]},{"id":"KC_TRNS","fields":[]},{"id":"KC_TRNS","fields":[]},{"id":"KC_TRNS","fields":[]},{"id":"KC_TRNS","fields":[]},{"id":"KC_TRNS","fields":[]},{"id":"KC_TRNS","fields":[]},{"id":"KC_TRNS","fields":[]}]},{"id":1,"legend":"!\n1","state":{"x":1,"y":0,"r":0,"rx":0,"ry":0,"w":1,"h":1,"x2":0,"y2":0,"w2":0,"h2":0},"row":0,"col":1,"keycodes":[{"id":"KC_1","fields":[]},{"id":"KC_NO","fields":[]},{"id":"M()","fields":[1]},{"id":"KC_TRNS","fields":[]},{"id":"KC_TRNS","fields":[]},{"id":"KC_TRNS","fields":[]},{"id":"KC_TRNS","fields":[]},{"id":"KC_TRNS","fields":[]},{"id":"KC_TRNS","fields":[]},{"id"
@armno
armno / dz60-split-spacebar-mark-1.json
Last active Jun 11, 2019
QMK firmware for DZ60 rev 2 with split spacebar and arrow keys
View dz60-split-spacebar-mark-1.json
{"keyboard":"dz60","keymap":"dz60_split_arrows","layout":"LAYOUT_all","layers":[["KC_ESC","KC_1","KC_2","KC_3","KC_4","KC_5","KC_6","KC_7","KC_8","KC_9","KC_0","KC_MINS","KC_EQL","KC_BSPC","KC_BSPC","KC_TAB","KC_Q","KC_W","KC_E","KC_R","KC_T","KC_Y","KC_U","KC_I","KC_O","KC_P","KC_LBRC","KC_RBRC","KC_BSLS","MO(1)","KC_A","KC_S","KC_D","KC_F","KC_G","KC_H","KC_J","KC_K","KC_L","KC_SCLN","KC_QUOT","KC_ENT","KC_LSFT","KC_LSFT","KC_Z","KC_X","KC_C","KC_V","KC_B","KC_N","KC_M","KC_COMM","KC_DOT","KC_SLSH","KC_RSFT","KC_UP","MO(1)","KC_LCTL","KC_LALT","KC_LGUI","KC_SPC","MO(2)","KC_SPC","KC_LGUI","MO(1)","KC_LEFT","KC_DOWN","KC_RGHT"],["KC_GRV","KC_NO","KC_NO","KC_NO","KC_NO","KC_NO","KC_NO","KC_MRWD","KC_MPLY","KC_MFFD","KC__MUTE","KC__VOLDOWN","KC__VOLUP","KC_BSPC","KC_BSPC","KC_TAB","RGB_TOG","RGB_MOD","RGB_RMOD","KC_NO","KC_NO","KC_NO","KC_NO","KC_NO","KC_NO","KC_NO","KC_NO","KC_NO","KC_NO","KC_TRNS","KC_NO","KC_NO","KC_NO","KC_NO","KC_NO","KC_LEFT","KC_DOWN","KC_UP","KC_RGHT","KC_NO","KC_NO","KC_ENT","KC_LSFT"
@armno
armno / dz60-with-arrows-for-nemo.json
Last active May 21, 2019
QMK firmware for DZ60 with Arrows for Nemo's keyboard
View dz60-with-arrows-for-nemo.json
{"keyboard":"dz60","keymap":"dz60_with_arrows_mk2","layout":"LAYOUT_60_b_ansi","layers":[["KC_ESC","KC_1","KC_2","KC_3","KC_4","KC_5","KC_6","KC_7","KC_8","KC_9","KC_0","KC_MINS","KC_EQL","KC_BSPC","KC_BSPC","KC_TAB","KC_Q","KC_W","KC_E","KC_R","KC_T","KC_Y","KC_U","KC_I","KC_O","KC_P","KC_LBRC","KC_RBRC","KC_BSLS","MO(1)","KC_A","KC_S","KC_D","KC_F","KC_G","KC_H","KC_J","KC_K","KC_L","KC_SCLN","KC_QUOT","KC_ENT","KC_LSFT","KC_Z","KC_X","KC_C","KC_V","KC_B","KC_N","KC_M","KC_COMM","KC_DOT","KC_SLSH","KC_UP","KC_GRV","KC_LCTL","KC_LGUI","KC_LALT","KC_SPC","KC_SPC","KC_SPC","KC_RALT","MO(1)","KC_LEFT","KC_DOWN","KC_RGHT"],["KC_NO","KC_F1","KC_F2","KC_F3","KC_F4","KC_F5","KC_F6","KC_F7","KC_F8","KC_F9","KC_F10","KC_F11","KC_F12","KC_NO","KC_DEL","KC_NO","RGB_TOG","RGB_MOD","RGB_RMOD","RGB_SPI","RGB_SPD","KC_NO","KC_NO","KC_NO","KC_NO","KC_NO","KC_NO","KC_NO","RESET","KC_TRNS","KC_NO","KC_NO","KC_NO","KC_NO","KC_NO","KC_NO","KC_NO","KC_NO","KC_NO","KC_NO","KC_NO","KC_NO","KC_NO","KC_NO","KC_NO","KC_NO","KC_NO","K
@armno
armno / app.scss
Created Nov 1, 2013
my css for phonegap projects
View app.scss
/* apply a natural box layout model to all elements */
*, *:before, *:after {
-webkit-box-sizing: border-box;
box-sizing: border-box;
}
/* from http://devgeeks.github.io/presentation--none-of-the-above/#5 */
body {
-webkit-tap-highlight-color: rgba(0,0,0,0);
-webkit-touch-callout: none;
-webkit-text-size-adjust: none;
@armno
armno / vim-plugins.md
Last active Dec 19, 2015
Vim plugins
View vim-plugins.md