Skip to content

Instantly share code, notes, and snippets.

@thameera
thameera / surfingkeys.txt
Last active March 22, 2023 21:59
SurfingKeys config
// an example to create a new mapping `ctrl-y`
mapkey('<Ctrl-y>', 'Show me the money', function() {
Normal.showPopup('a well-known phrase uttered by characters in the 1996 film Jerry Maguire (Escape to close).');
});
// Map disabling surfing keys hotkey
map('<Ctrl-i>', '<Alt-s>');
// Free up Alt-s for jetzt's use
unmap('<Alt-s>');
@ChJJin
ChJJin / Surfingkeys.setting.js
Last active April 1, 2022 17:29
Surfingkeys setting
// scroll setting
unmaps('u, e');
mapkey('u', '#2Scroll a page up', 'Normal.scroll("pageUp")', {repeatIgnore: true});
unmaps('E, R');
mapkey('J', '#3Go one tab left', 'RUNTIME("previousTab")');
mapkey('K', '#3Go one tab right', 'RUNTIME("nextTab")');
unmaps('B, F, S, D, H, L');
mapkey('H', '#4Go back in history', 'history.go(-1)');
# Image (Lightroom online) tools #
https://v3.polarr.co/
# Vector image editor #
http://editor.method.ac/
# Compression/Optimisation Image #
https://tinyjpg.com/ or https://tinypng.com/
# Lorem ipsum (alternative) #
@jbondeson
jbondeson / WhiteFox-TrueFoxBlank-Custom.json
Created June 4, 2016 21:42
Custom WhiteFox-TrueFox Layout
{
"header": {
"Name": "WhiteFox",
"Layout": "TrueFoxBlank",
"Base": "AllBlank",
"Version": "0.2",
"Author": "HaaTa (Jacob Alexander) 2015",
"KLL": "0.3c",
"Date": "2016-05-30",
"Generator": "KIICONF 0.2"
@vampy
vampy / awesome-pdf.md
Last active May 9, 2017 19:50
A curated list of amazingly awesome PDF programs, resources and shiny things.

Awesome PDF

PDFCrop is a Perl script that crops the white margins of PDF pages and rescales them to fit a standard size sheet of paper. It makes the printed pages far more attractive to read!

Usage

This project aims to offer a simple cross-platform application for cropping PDF files. A simple user interface lets you define exactly the crop-region by fitting a rectangle on the visually overlaid pages.

@prenagha
prenagha / arq-check.sh
Created May 23, 2016 14:03
Arq Backup Check
#!/bin/bash
#
# Use with Arq Backup www.arqbackup.com
# To check backup complete marker files in Amazon AWS S3
# See related script that writes these files arq-complete.sh:
# https://gist.github.com/prenagha/f11e0b800d7f1a5733dab1289febad51
#
set -e
trap 'notify' INT TERM ERR
@prenagha
prenagha / arq-complete.sh
Last active February 16, 2018 21:27
Arq Backup Complete Marker
#!/bin/bash
#
# Use with Arq Backup www.arqbackup.com
# To write a backup complete marker file to Amazon AWS S3
# Set as backup complete script in Arq settings for the backup destination
# See related script that checks these files arq-check.sh:
# https://gist.github.com/prenagha/c5d6c2ebf3de0a4f61afdf3610e57363
#
arg=$1
if [ -z "${arg}" ]
@kepi
kepi / mySurfingKeys.js
Created May 21, 2016 16:11
my Surfingkeys Settings
// an example to create a new mapping `ctrl-y`
mapkey('<Ctrl-y>', 'Show me the money', function() {
});
// an example to replace `u` with `?`, click `Default mappings` to see how `u` works.
map('?', 'u');
// an example to remove mapkey `Ctrl-i`
unmap('<Ctrl-i>');
@pcarrier
pcarrier / $profile .ps1
Last active April 2, 2021 19:30
Windows setup
function safe { Set-Variable WhatIfPreference $true -Scope Global };
function unsafe { Set-Variable WhatIfPreference $false -Scope Global -WhatIf:$false };
function isAdmin {
$user = [Security.Principal.WindowsIdentity]::GetCurrent();
(New-Object Security.Principal.WindowsPrincipal $user).IsInRole([Security.Principal.WindowsBuiltinRole]::Administrator);
}
function shell { Start-Process powershell -WorkingDirectory $PWD -ArgumentList "-NoLogo" };
function admin { Start-Process powershell -ArgumentList "-NoLogo" -Verb RunAs };
@tkan
tkan / index.php
Last active August 17, 2016 17:52
Remember The Milk - Show work progress
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>Doing</title>
<!--
uncomment if you'd like an favicon
<link rel="shortcut icon" href="//i.imgur.com/MLB8ZWH.png">
-->
<link rel="stylesheet" type="text/css" href="//cdnjs.cloudflare.com/ajax/libs/pure/0.6.0/pure.css">