Skip to content

Instantly share code, notes, and snippets.

View d6rkaiz's full-sized avatar

Isao Sugimoto d6rkaiz

View GitHub Profile
@d6rkaiz
d6rkaiz / delegates.xml.diff
Created April 28, 2017 09:58
delegates.xml.diff
--- delegates.xml.bak 2017-04-28 09:53:38.042426862 +0000
+++ delegates.xml 2017-04-28 09:55:54.043880544 +0000
@@ -81,8 +81,6 @@
<delegate decode="dvi" command="&quot;dvips&quot; -q -o &quot;%o&quot; &quot;%i&quot;"/>
<delegate decode="dxf" command="&quot;uniconvertor&quot; &quot;%i&quot; &quot;%o.svg&quot;; mv &quot;%o.svg&quot; &quot;%o&quot;"/>
<delegate decode="edit" stealth="True" command="&quot;/etc/alternatives/x-terminal-emulator&quot; -title &quot;Edit Image Comment&quot; -e vi &quot;%o&quot;"/>
- <delegate decode="eps" encode="pdf" mode="bi" command="&quot;gs&quot; -q -dQUIET -dSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 &quot;-sDEVICE=pdfwrite&quot; &quot;-sOutputFile=%o&quot; &quot;-f%i&quot;"/>
- <delegate decode="eps" encode="ps" mode="bi" command="&quot;gs&quot; -q -dQUIET -dSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dAlignToPixels=0 -dGridFitTT=2 &quot;-sDEVICE=ps2write&quot; &quot;-sOutputFile=%o&quot; &quot;-f%i&quot;"/>
<delegate decode="fi
@d6rkaiz
d6rkaiz / custom.scss
Created April 22, 2017 18:01
Mastodon custom.scss for https://mstdn.club default theme
@import 'application';
/*
* Mastodon custom.scss for https://mstdn.club default theme
* by d6rkaiz
*
* original css created by 生駒菜々(やっきゅん)
* ref: https://userstyles.org/styles/141389/lite-masudon-kun-lite,
* https://userstyles.org/styles/141517/theme
*/
@d6rkaiz
d6rkaiz / cpuinfo.txt
Last active December 12, 2016 02:05
cpuinfo ConoHa 1GB plan
processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 63
model name : Intel(R) Xeon(R) CPU E5-2660 v3 @ 2.60GHz
stepping : 2
microcode : 0x1
cpu MHz : 2599.996
cache size : 4096 KB
physical id : 0
@d6rkaiz
d6rkaiz / cpuinfo.txt
Created December 12, 2016 00:40
cpuinfo DigitalOcean 1GB plan
processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 63
model name : Intel(R) Xeon(R) CPU E5-2650L v3 @ 1.80GHz
stepping : 2
microcode : 0x1
cpu MHz : 1799.998
cache size : 30720 KB
physical id : 0
@d6rkaiz
d6rkaiz / cpuinfo.txt
Created December 12, 2016 00:37
cpuinfo linode 2048 plan
processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 79
model name : Intel(R) Xeon(R) CPU E5-2697 v4 @ 2.30GHz
stepping : 1
microcode : 0x1
cpu MHz : 2299.968
cache size : 4096 KB
physical id : 0
@d6rkaiz
d6rkaiz / hook.rb
Created May 1, 2016 09:44 — forked from asimihsan/hook.rb
Hook for letsencrypt.sh to do DNS challenges
#!/usr/bin/env ruby
require 'aws-sdk'
require 'pry'
require 'awesome_print'
require 'domain_name'
# ------------------------------------------------------------------------------
# Credentials
# ------------------------------------------------------------------------------
echo "Asia/Tokyo" > /etc/timezone
dpkg-reconfigure -f noninteractive tzdata
@d6rkaiz
d6rkaiz / file0.txt
Created September 4, 2013 10:33
tmuxでセッションの有無を判別して起動するスクリプト ref: http://qiita.com/d6rkaiz/items/993ef586aa39f2ddb588
#!/bin/bash
tmux ls > /dev/null
if [ $? -eq 1 -a -z "$TMUX" ]; then
exec tmux
elif [ -z "$TMUX" ] ; then
exec tmux attach
else
echo "sessions should be nested with care."
fi
@d6rkaiz
d6rkaiz / file0.txt
Created July 22, 2013 09:27
gitでリモートブランチをすべて取得するシェルスクリプト ref: http://qiita.com/d6rkaiz/items/e14aaf63ecd8aa9f715b
#!/bin/bash
for remote_branch in `git branch -a | grep remotes | grep -v HEAD | grep -v master`; do
remote_name="$(echo -n "$remote_branch" | cut -d/ -f2)"
branch_name="$(echo -n "$remote_branch" | cut -d/ -f3)"
git checkout -b $branch_name $remote_name/$branch_name
done
git checkout master
@d6rkaiz
d6rkaiz / gist:5520721
Created May 5, 2013 12:34
squeeze to wheezy upgrade. with mysql@dotdeb
root@squeeze64:# apt-get update
Get:1 http://security.debian.org wheezy/updates Release.gpg [836 B]
Get:2 http://security.debian.org/ wheezy/updates/contrib Translation-en [14 B]
Ign http://security.debian.org/ wheezy/updates/contrib Translation-en_US
Get:3 http://security.debian.org/ wheezy/updates/main Translation-en [5,645 B]
Ign http://security.debian.org/ wheezy/updates/main Translation-en_US
Get:4 http://security.debian.org wheezy/updates Release [102 kB]
Get:5 http://ftp.jp.debian.org wheezy Release.gpg [1,672 B]
Get:6 http://ftp.jp.debian.org/debian/ wheezy/main Translation-en [3,851 kB]
Get:7 http://packages.dotdeb.org wheezy Release.gpg [836 B]