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
" Updated: 2022-06-25 | |
" Author: zhlinh | |
" Gist: https://gist.github.com/zhlinh/d82bdb0be5990a43ae24 | |
" ----------------------------------------- Base Settings ------------------------------------------- | |
let mapleader=',' | |
set nosmoothscroll | |
" autofocus: allows websites to automatically focus an input box when they are first loaded | |
set noautofocus | |
" typelinkhints: (numerichints required) type text in the link to narrow down numeric hints | |
set typelinkhints |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<title>Imaage Gallery</title> | |
<link rel="stylesheet" href="/s/layout.css" type="text/css" media="screen" title="no title" charset="utf-8" /> | |
</head> | |
<body> | |
<h1>Snapshots</h1> | |
<ul id="imageGallery"> |
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
body { | |
font-family: Helvetica, arial, sans-serif; | |
font-size: 14px; | |
line-height: 1.6; | |
padding-top: 10px; | |
padding-bottom: 10px; | |
background-color: white; | |
padding: 30px; } | |
body > *:first-child { |
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
// file: scripts/addLoadEvent.js | |
function addLoadEvent(func){ | |
var oldonload = window.onload; | |
if(typeof window.onload != "function"){ | |
window.onload = func; | |
}else { | |
window.onload = function(){ | |
oldonload(); | |
func(); | |
} |
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
#!/bin/sh | |
set -e | |
# Probe for UEFI entries in EFI system partition | |
prefix="/usr" | |
exec_prefix="${prefix}" | |
datarootdir="${prefix}/share" | |
export TEXTDOMAIN=grub | |
export TEXTDOMAINDIR="${datarootdir}/locale" |
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
; ======================================== | |
; PTPDv2 version 2.3.0 default configuration | |
; ======================================== | |
; NOTE: the following settings are affected by ptpengine:preset selection: | |
; ptpengine:slave_only | |
; clock:no_adjust | |
; ptpengine:clock_class - allowed range and default value | |
; To see all preset settings, run ptpd2 -H (--long-help) |
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
function git_prompt_info() { | |
ref=$(git symbolic-ref HEAD 2> /dev/null) || return | |
echo "$ZSH_THEME_GIT_PROMPT_PREFIX${ref#refs/heads/}$ZSH_THEME_GIT_PROMPT_SUFFIX" | |
} | |
## other functions ... ## |
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
;=====================================================================o | |
; AHK Script | | |
; CapsLock Enhancement | | |
;---------------------------------------------------------------------o | |
;Updated: March 09, 2019 | | |
;Gist: https://gist.github.com/9493402e337e03b8a80c4afdfbdf008c.git | | |
;-----------------------o---------------------------------------------o | |
;Description: | | |
; This AHK script provides an enhancement towards the CapsLock, and | | |
; turns CapsLock into an useful function Key just like Ctrl and Alt | |
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
[Configuration] | |
Vim=1 | |
Toggle= | |
GlobalTogg=0 | |
Suspend=<alt>` | |
GlobalSusp=0 | |
TrayIcon=1 | |
Service=1 | |
Startup=1 | |
GroupWarn=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
#!/bin/sh | |
# | |
# Modified from http://qiita.com/janus_wel/items/cfc6914d6b7b8bf185b6 | |
# | |
# An example hook script to verify what is about to be committed. | |
# Called by "git commit" with no arguments. The hook should | |
# exit with non-zero status after issuing an appropriate message if | |
# it wants to stop the commit. | |
# | |
# To enable this hook, rename this file to "pre-commit". |
OlderNewer