Skip to content

Instantly share code, notes, and snippets.

@tknv
tknv / darkenize picture for backgournd
Created September 1, 2017 06:14
darkenize picture for backgournd
convert wave-2880x1800.jpg -define convolve:scale=50%\! -morphology Convolve '3x3: 0,1,0 1,2,1 0,1,0' wave-d.jpg
URxvt.scrollBar: on
URxvt.borderWidth: 0
URxvt.internalBorder: 0
URxvt.externalBorder: 0
URxvt.hideButtons: true
URxvt.linespace: 0
URxvt.inputMethod: ibus
URxvt.preeditType: OnTheSpot,None
! fonts
@tknv
tknv / LikeADailyToKindle.gs
Created March 1, 2017 06:54
AMAZON Kindle - daily news! send to kindle
var subjectToSend = "LikeADailyToKindle";
// kindleに飛ばしたモノは、Fileラベルに入れてINBOXから移動
// 気になる件名
var targetSubject = new Array();
targetSubject[1] = "ニュースBug";
targetSubject[2] = 'Burning debug fire';
targetSubject[3] = 'Kernel太郎';
// もっと気になる場合
// targetSubject[i++] = 'ひたひたFXニュース';
// 宛先のkindle
@tknv
tknv / gpg-agent.conf
Created November 17, 2016 17:28
~/.gnupg/gpg-agent.conf
default-cache-ttl 28800
# 8 hours
pinentry-program /usr/bin/pinentry-curses
allow-loopback-pinentry
#!/usr/bin/env perl
#
# notmuch-mutt - notmuch (of a) helper for Mutt
#
# Copyright: © 2011-2015 Stefano Zacchiroli <zack@upsilon.cc>
# License: GNU General Public License (GPL), version 3 or above
#
# See the bottom of this file for more documentation.
# A manpage can be obtained by running "pod2man notmuch-mutt > notmuch-mutt.1"
@tknv
tknv / .mbsyncrc
Last active June 16, 2022 20:17
isync office365
IMAPAccount work
Host outlook.office365.com
User me@me.com
PassCmd "pass mail/work-gpg"
UseIMAPS yes
CertificateFile /etc/ssl/certs/ca-certificates.crt
IMAPStore work-remote
Account work

Keybase proof

I hereby claim:

  • I am tknv on github.
  • I am tknv (https://keybase.io/tknv) on keybase.
  • I have a public key whose fingerprint is 5881 67CB A0D4 2844 8A56 E42A EF45 39D6 276B 2BFB

To claim this, I am signing this object:

@tknv
tknv / ore-setEnv.bat
Created October 13, 2016 01:10
set path
@ECHO OFF
REM Add GRADLE_BIN to the PATH
SET GRADLE_BIN=C:\gradle-3.1\bin
SET PATH=%GRADLE_BIN%;%PATH%
ECHO %GRADLE_BIN%
REM Add NODE_BIN to the PATH
SET NODE_BIN=C:\node-v6.7.0-win-x64
SET PATH=%NODE_BIN%;%PATH%
ECHO %NODE_BIN%
@tknv
tknv / debian-init.sh
Created January 4, 2016 04:05 — forked from andsens/debian-init.sh
This is a generic init-script, easily modifiable to suit your needs. It uses quite a lot of lsb init-functions and adheres to the lsb standards.
#!/bin/sh
### BEGIN INIT INFO
# Provides: generic-prog
# Required-Start: $local_fs $remote_fs $network
# Required-Stop: $local_fs $remote_fs $network
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Generic Program
# Description: Generic Program is a generic program to do generic things with
### END INIT INFO
--- install_fusionpbx.sh.1 2015-01-11 02:58:46.000000000 +0700
+++ install_fusionpbx-trusty.sh 2015-03-04 13:03:13.508700565 +0700
@@ -31,7 +31,7 @@
#Variables are for the auto installation option.
#for apache set to a, for nginx/php-fpm set to n -> for an auto install, user mode will prompt
-APACHENGINX=n
+APACHENGINX=a
# for mysql set m. for sqlite set s. for postgresql set p