Skip to content

Instantly share code, notes, and snippets.

View Snger's full-sized avatar

Sim Jiason Snger

View GitHub Profile
@Snger
Snger / article-style.css
Last active October 9, 2019 05:55 — forked from bangedorrunt/article-style.css
GoldenDict Dark Theme
/* filename: article-style.css
mkdir ~/.goldendict/styles/sim-dark-theme/
then put this stylesheet there */
body {
margin-top: 1px;
margin-right: 3px;
margin-left: 2px;
margin-bottom: 3px;
background: #dbd4d4;
color: white;
@Snger
Snger / sync-projects
Created July 13, 2019 12:09 — forked from JonasGroeger/sync-projects
Gitlab: Clone / Pull all projects in a group
#!/usr/bin/env bash
# Documentation
# https://docs.gitlab.com/ce/api/projects.html#list-projects
NAMESPACE="YOUR_NAMESPACE"
BASE_PATH="https://gitlab.example.com/"
PROJECT_SEARCH_PARAM=""
PROJECT_SELECTION="select(.namespace.name == \"$NAMESPACE\")"
PROJECT_PROJECTION="{ "path": .path, "git": .ssh_url_to_repo }"
@Snger
Snger / emacs_cheatsheet.md
Last active December 19, 2017 09:09 — forked from kiasaki/emacs_cheatsheet.md
emacs_cheatsheet

Learning of emacs in progres...

  • M-x eval-buffer : Self-explanatory

  • M-x replace-string : Self-explanatory

  • C-x C-c : Quit emacs

  • C-g : Cancel current command (keyboard-quit)

Buffers

@Snger
Snger / .svimrc
Last active November 12, 2017 12:17
.svimrc gist id: ff62150eb7118c75c1d2424138246524
" Settings
" set nosmoothscroll
let homeurl = "https://duckduckgo.com";
" let mapleader = ","
let newtaburl = "https://duckduckgo.com"
let blacklists = ["*://feedly.com/*", "*://devdocs.io/*", "*://www.shortcutfoo.com/*", "*://sourcegraph.com/*", "*://wasm-cn.org/*"]
" Shortcuts
map "down" scrollDown
map "up" scrollUp
@Snger
Snger / boxstarter-config-script.txt
Last active October 13, 2017 01:19
Boxstarter config script
# Boxstarter config script
# https://gist.github.com/Snger/5ebcff7365d50521b928867b048004c5
Set-WindowsExplorerOptions -EnableShowHiddenFilesFoldersDrives -EnableShowProtectedOSFiles -EnableShowFileExtensions
Enable-RemoteDesktop
# chocolatey
# cinst chocolatey
# cinst chocolateygui
@-webkit-keyframes fadein {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
#sVim-command {
" Settings
let blacklists = ["https://feedly.com/*","http://devdocs.io/*","https://www.shortcutfoo.com/*","https://sourcegraph.com/*","https://wasm-cn.org/*","https://yun.kujiale.com/*","http://erp.16888.hk/*","http://192.168.20.232/*"]
let searchengine baidu = "https://baidu.com/s?wd="
let searchengine zhihu = "https://zhihu.com/search?type=content&q="
let searchengine github = "https://github.com/search?q="
let searchengine stackoverflow = "https://stackoverflow.com/search?q="
let completionengines = ["duckduckgo", "github", "stackoverflow", "baidu", "zhihu", "wikipedia", "google-maps"]
let defaultengine = "duckduckgo"
let searchalias g = "github"
let searchalias d = "duckduckgo"
@Snger
Snger / tmux-cheatsheet.markdown
Last active May 4, 2017 04:48 — forked from MohamedAlaa/tmux-cheatsheet.markdown
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@Snger
Snger / DISS.conf
Last active October 7, 2015 05:28 — forked from janlay/README.md
config for Surge.app
# config for Surge.app
[General]
# warning, notify, info, verbose
loglevel = notify
# bypass HTTP persistent connections
# bypass = e.crashlytics.com
[Proxy]
# http, https, socks5