Skip to content

Instantly share code, notes, and snippets.

View civ2boss's full-sized avatar
⌨️
Codin' some code

Robin Ting civ2boss

⌨️
Codin' some code
View GitHub Profile
@civ2boss
civ2boss / smart-caps-lock.md
Created March 19, 2024 14:18 — forked from tanyuan/smart-caps-lock.md
Smart Caps Lock: Remap Caps Lock to Control AND Escape

Smart Caps Lock: Remap to Control AND Escape (Linux, Mac, Windows)

Caps Lock 變成智慧的 Control 以及 Escape

  • 單獨輕按一下就是 Escape
  • 若按下時同時按著其他鍵,就會是 Control

這應該是 Vim 和 Emacs 的最佳解了!(Emacs? Bash 的快捷鍵就是 Emacs 系列的)

  • Send Escape if you tap Caps Lock alone.
@civ2boss
civ2boss / gist:b9a89b3dbd527ceddc221dd1be1d8ca5
Created April 30, 2018 16:22 — forked from wrburgess/gist:5528649
Backup Heroku Postgres database and restore to local database

Grab new backup of database

Command: heroku pgbackups:capture --remote production

Response: >>> HEROKU_POSTGRESQL_COLOR_URL (DATABASE_URL) ----backup---> a712

Get url of backup download

Command: heroku pgbackups:url [db_key] --remote production

# Your init script
#
# Atom will evaluate this file each time a new window is opened. It is run
# after packages are loaded/activated and after the previous editor state
# has been restored.
#
# An example hack to log to the console when each text editor is saved.
#
# atom.workspace.observeTextEditors (editor) ->
# editor.onDidSave ->

Keybase proof

I hereby claim:

  • I am civ2boss on github.
  • I am civ2boss (https://keybase.io/civ2boss) on keybase.
  • I have a public key whose fingerprint is DD3A 6535 2C45 6A2C BBD6 DFAF D252 98C4 78CE 64B9

To claim this, I am signing this object:

@civ2boss
civ2boss / gulpfile.js
Last active August 29, 2015 14:19
Gulp LESS compiler & live reload watcher
var gulp = require('gulp'); // Gulp itself
var less = require('gulp-less'); // Compiling LESS
var watch = require('gulp-watch'); // Watch for files that changed
var filter = require('gulp-filter'); // Filters the pipeline
var plumber = require('gulp-plumber'); // Handles errors without breaking pipeline
var minifyCss = require('gulp-minify-css'); // Minify CSS
var sourcemaps = require('gulp-sourcemaps'); // Generates source maps
var autoprefixer = require('gulp-autoprefixer'); // Post process CSS
var browserSync = require('browser-sync').create(); // Live reload server
@civ2boss
civ2boss / designer.html
Created February 4, 2015 16:06
designer
<link rel="import" href="../core-scaffold/core-scaffold.html">
<link rel="import" href="../core-header-panel/core-header-panel.html">
<link rel="import" href="../core-menu/core-menu.html">
<link rel="import" href="../core-item/core-item.html">
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<link rel="import" href="../core-menu/core-submenu.html">
<link rel="import" href="../google-map/google-map.html">
<polymer-element name="my-element">
@civ2boss
civ2boss / designer.html
Last active August 29, 2015 14:14
designer
<link rel="import" href="../core-scaffold/core-scaffold.html">
<link rel="import" href="../core-header-panel/core-header-panel.html">
<link rel="import" href="../core-menu/core-menu.html">
<link rel="import" href="../core-item/core-item.html">
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<link rel="import" href="../core-field/core-field.html">
<link rel="import" href="../core-icon/core-icon.html">
<link rel="import" href="../core-input/core-input.html">
<link rel="import" href="../core-icons/core-icons.html">