View ash_profile
# vim: ft=sh | |
# docker run --rm -it -v =(curl -s https://gist.githubusercontent.com/waltarix/f1d2046dc93ec61721bcd2cacd7d48f8/raw/af8fd9cbfb40bf79d0113f3a436c9e57d01a0a4b/ash_profile):/etc/profile alpine:3.9 ash -l | |
# or | |
# docker run --rm -it -v =(curl -s https://git.io/fjity):/etc/profile alpine:3.9 ash -l | |
export CHARSET=UTF-8 | |
export PAGER=less | |
cat <<ZONE | base64 -d | gzip -d > /etc/localtime |
View wcwidth9.h
#ifndef WCWIDTH9_H | |
#define WCWIDTH9_H | |
#include <stdlib.h> | |
#include <stdbool.h> | |
struct wcwidth9_interval { | |
long first; | |
long last; | |
}; |
View migemo.c
/* | |
* Written by Alexey Tourbin <at@altlinux.org>. | |
* | |
* The author has dedicated the code to the public domain. Anyone is free | |
* to copy, modify, publish, use, compile, sell, or distribute the original | |
* code, either in source code form or as a compiled binary, for any purpose, | |
* commercial or non-commercial, and by any means. | |
*/ | |
#include <assert.h> | |
#include <stdlib.h> |
View pandoc-fix-textile-writer-for-redmine.patch
diff --git a/src/Text/Pandoc/Writers/Textile.hs b/src/Text/Pandoc/Writers/Textile.hs | |
index 98f9157..8e086e1 100644 | |
--- a/src/Text/Pandoc/Writers/Textile.hs | |
+++ b/src/Text/Pandoc/Writers/Textile.hs | |
@@ -40,13 +40,13 @@ import Text.Pandoc.Templates (renderTemplate') | |
import Text.Pandoc.XML ( escapeStringForXML ) | |
import Data.List ( intercalate ) | |
import Control.Monad.State | |
-import Data.Char ( isSpace ) | |
View peco_select_history
# vim:ft=zsh | |
whence peco &>/dev/null && function { | |
function peco_select_history { | |
emulate -L zsh | |
local delimiter=$'\0; \0' newline=$'\n' | |
BUFFER=${"$(print -rl ${history//$newline/$delimiter} | peco --query "$LBUFFER")"//$delimiter/$newline} | |
CURSOR=$#BUFFER |
View ssssss.txt
[0;39;42m [0m[0;39;42m [0m[0;39;42m [0m[0;39;42m [0m[0;39;42m [0m[0;39;42m [0m[0;39;42m [0m[0;39;42m [0m[0;39;42m [0m[0;39;42m [0m[0;39;42m [0m[0;39;42m [0m[0;39;42m [0m[0;39;42m [0m[0;39;42m [0m[0;39;42m [0m | |
[0;39;42m [0m[0;39;42m [0m[0;39;40m [0m[0;39;40m [0m[0;39;40m [0m[0;39;40m [0m[0;39;42m [0m[0;39;42m [0m[0;39;42m [0m[0;39;42m [0m[0;39;40m [0m[0;39;40m [0m[0;39;40m [0m[0;39;40m [0m[0;39;42m [0m[0;39;42m [0m | |
[0;39;42m [0m[0;39;42m [0m[0;39;40m [0m[0;39;40m [0m[0;39;40m [0m[0;39;40m [0m[0;39;42m [0m[0;39;42m [0m[0;39;42m [0m[0;39;42m [0m[0;39;40m [0m[0;39;40m [0m[0;39;40m [0m[0;39;40m [0m[0;39;42m [0m[0;39;42m [0m | |
[0;39;42m [0m[0;39;42m [0m[0;39;40m [0m[0;39;40m [0m[0;39;40m [0m[0;39;40m [0m[0;39;42m [0m[0;39;42m [0m[0;39;42m [0m[0;39;42m [0m[0;39;40m [0m[0;39;40m [0m[0;39;40m [0m[0;39;40m [0m[0;39;42m |
View runemacs.bat
@ECHO OFF | |
SET HOME=%~dp0 | |
START /B %HOME%/bin/runemacs.exe |
View nacci.php
<?php | |
const CALC_LIMIT = 1000; | |
// fibo | |
var_dump(implode(', ', nacci(CALC_LIMIT, [0, 1]))); | |
// tribo | |
var_dump(implode(', ', nacci(CALC_LIMIT, [0, 0, 1]))); |
View httpstatus.zsh
function httpstatus { | |
local -A statuscode | |
statuscode=( | |
100 'Continue' | |
101 'Switching Protocols' | |
102 'Processing' # RFC 2518 (WebDAV) | |
200 'OK' | |
201 'Created' | |
202 'Accepted' | |
203 'Non-Authoritative Information' |
NewerOlder