Skip to content

Instantly share code, notes, and snippets.

"Settings
"set nohud
"set autohidecursor
"set noinsertmappings
set smoothscroll
set autoupdategist
set noautofocus
"let scrollstep = 30
let fullpagescrollpercent = 90
@rcmdnk
rcmdnk / install.vbs
Last active July 17, 2023 07:03
Program install script for Windows. Useful for programs which don't have installer. If the program has a zip file and zip includes folder, just download it and extract in Download folder. Otherwise, make new folder in Download folder, and put all necessary files. Then run install.vbs (download this script and save as "install.vbs", and double cl…
' Set basic objects
Set wssh = WScript.CreateObject("WScript.Shell")
Set fs = WScript.CreateObject("Scripting.FileSystemObject")
Set nw = WScript.CreateObject("WScript.Network")
Set sh = CreateObject("Shell.Application")
' Basic Values
progFiles = "C:\Program Files"
startMenu = wssh.SpecialFolders("AllUsersPrograms")
defRoot = "C:\Users\" & nw.UserName & "\Downloads"
#!/usr/bin/env bash
# mycmd: command wrapper for functions and executables
PREFIX="$(basename "$0")-"
get_commands () {
local array
local cmd_cand=()
@rcmdnk
rcmdnk / rm_wrapper.sh
Last active December 23, 2022 16:44
rm wrapper to protect HOME and / directory. To use, put this gist in your .bashrc or .bash_profile.
#alias rm="rm -i"
#function rm={ rm $@ -i; }
function rm {
for f in "$@";do
if [[ "$f" =~ ^- ]];then
continue
fi
if [ "$f" = "$HOME" ] || [ "$f" = "$HOME/" ];then
echo -n 'Are you sure to remove your HOME? '
#!/usr/bin/env bash
#####################################################
# Install stow
#####################################################
p=stow
targz=$(curl "http://ftp.gnu.org/gnu/$p/?C=M;O=A" 2>/dev/null|
grep ".tar.gz<"|grep "$p"|grep -v "\-doc\-"|tail -n1|
awk '{split($0, tmp, "</a>")}{n=split(tmp[1], tmp2, ">")}{print tmp2[n]}')
cd ~/tmp
見出し部分。ここをクリック。**見出し部分のMarkdown太文字は不可**
*divの下に行を空けないで書くとMarkdownは変換されない*

ここが隠れてる部分。

中身には色々書ける。

@rcmdnk
rcmdnk / vim_ime.ahk
Last active February 19, 2020 02:10
Automatic IME off for Vim by AutoHotkey. IME.ahk is needed to be placed in the same directory with this setting script (http://www6.atwiki.jp/eamat/pages/17.html).
; Auto execute section is the region before any return/hotkey
; For Terminal/Vim
GroupAdd Terminal, ahk_class PuTTY
GroupAdd Terminal, ahk_class mintty ; cygwin
GroupAdd TerminalVim, ahk_group Terminal
GroupAdd TerminalVim, ahk_class Vim
; Include IME.hak
; http://www6.atwiki.jp/eamat/pages/17.html
--- a/src/ansi.c
+++ b/src/ansi.c
@@ -1508,8 +1508,24 @@
{
if (curr->w_stringp >= curr->w_string + MAXSTR - 1)
curr->w_state = LIT;
+# ifdef UTF8
+ else if (c < 0x80)
+ *(curr->w_stringp)++ = c;
+ else if (c < 0x800)
--- a/src/ansi.c
+++ b/src/ansi.c
@@ -728,6 +728,10 @@
LPutChar(&curr->w_layer, &omc, ox, oy);
LGotoPos(&curr->w_layer, curr->w_x, curr->w_y);
}
+ if (curr->w_mbcs)
+ {
+ curr->w_rend.mbcs = curr->w_mbcs = 0;
+ }
見出し部分。ここをクリック。**見出し部分のMarkdown太文字は不可**
Name|Description|Default Value|Mandatory| :---|:----------|:------------|:--------| config_dir | Directory for some gcpm related files.|**~/.config/gcpm/** (user)
**/var/cache/gcpm** (service)|No oatuh_file | Path to OAuth information file for GCE/GCS usage.|**/oauth**|No service_account_file | Service account JSON file for GCE/GCS usage.If not specified, OAuth connection is tried.|-|No