This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
worker_processes 1; | |
events { | |
worker_connections 1024; | |
} | |
http { | |
map $http_user_agent $outdated { | |
default 0; | |
"~MSIE [1-10]\." 1; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
''' | |
Shorten URL v1.5 | |
Github: https://github.com/hzlzh/Alfred-Workflows | |
Author: hzlzh (hzlzh.dev@gmail.com) | |
Twitter: @hzlzh | |
Blog: https://zlz.im/Alfred-Workflows/ | |
''' | |
# encoding: utf-8 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.part.titlebar { | |
display: none !important; | |
} | |
.monaco-workbench { | |
background-color: rgba(0, 0, 0, 0); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mkdir -p ~/Library/KeyBindings && | |
echo '{ "₩" = ("insertText:", "`"); }' >> ~/Library/KeyBindings/DefaultkeyBinding.dict |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"version": "0.2.0", | |
"configurations": [ | |
{ | |
"type": "node", | |
"request": "launch", | |
"name": "Electron: Main", | |
"protocol": "inspector", | |
"runtimeExecutable": "${workspaceRoot}/node_modules/.bin/electron", | |
"runtimeArgs": [ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const m = require('module') | |
const res = vm.runInThisContext(m.wrap(code))( | |
exports, | |
require, | |
module, | |
__filename, | |
__dirname | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const log = console.log | |
console.log = function logIt() { | |
var stack = new Error().stack, | |
callee = stack.split('\n')[3].slice(7), | |
tag = '[LOG]'; | |
if (arguments.length > 0) { | |
tag = Array.prototype.slice.call(arguments, 0)[0] | |
} | |
log.call(this, tag, callee) | |
arguments.length > 1 && log.apply(this, arguments) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# find directories in the path | |
find . -maxdepth 10 -type d |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "tiddlywiki", | |
"version": "1.0.0", | |
"main": "index.js", | |
"license": "MIT", | |
"dependencies": { | |
"tiddlywiki": "^5.1.14" | |
}, | |
"scripts": { | |
"build": "tiddlywiki wiki --init server", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let searchalias b = "bookmark" | |
let searchalias g = "google" |