Skip to content

Instantly share code, notes, and snippets.

harupong / gist:46fb8b4d8dd5825d7aa653a719087d1f
Created Sep 11, 2018
Quick and dirty PowerShell script to dedupe Google photos using rclone
View gist:46fb8b4d8dd5825d7aa653a719087d1f
$paths = @(
"google-drive:Google Photos\path1",
"google-drive:Google Photos\path2",
"google-drive:Google Photos\path3",
$paths | ForEach-Object -Process {
echo $_ ; .\rclone lsf $_ | Measure-Object –Line ; if($?) {.\rclone dedupe --dedupe-mode largest $_}
harupong / five_minutes.yml
Created Feb 26, 2016 — forked from ryane/five_minutes.yml
View five_minutes.yml
- hosts: all
ubuntu_common_deploy_user_name: deploy
- ~/.ssh/
harupong / gist:2340e3d6fd380fc4d3a5
Last active Jan 5, 2016
crude one-liner to dowload latest GitBucket war file from GitHub
View gist:2340e3d6fd380fc4d3a5
wget$(curl -s | grep -Po '(?<="tag_name": ")[^"]*')/gitbucket.war -O gitbucket.war
harupong /
Last active Aug 29, 2015
Ansible で遊ぼう


linode-cli 用の apt-repo 追加で失敗する

2014-04-13 17:30 くらいの ansible.log を確認してみよう

ansible-playbook の GATHERING FACTS で SSH エラーが出た場合の検知と対応方法を探す

2014-04-13 00:31:21,448 p=2608 u=ubuntu |  PLAY [all] ********************************************************************
harupong / error.log
Created Feb 10, 2014
progit/makepdfs ja error log
View error.log
$ /bin/bash makepdfs ja
Will generate pdf for the following languages:
The generation process will start now.
Parsing markdown... done
Creating main.tex for ja... Exception `Errno::EEXIST' at /usr/lib/ruby/1 .9.1/fileutils.rb:247 - File exists - /home/vagrant/projects/progit-ja/latex/ja
Running XeTeX:
harupong / box_file_sender.rb
Last active Aug 29, 2015
Linux サーバー上で1日1つ生成されるファイルを Box に自動アップロードする
View box_file_sender.rb
# coding: utf-8
# based on
require 'mail'
attachment = ARGV.shift
Mail.defaults do
delivery_method :smtp, {
:address => "<Server-Address>",
View -
tmux and mouse mode - Dan Lowe
tmux - Line wrap problems in Mac OS X terminal?
-> git log -p した画面で ←→
View -
pandoc 1.11.1
Compiled with citeproc-hs 0.3.8, texmath, highlighting-kate
Syntax highlighting is supported for the following languages:
actionscript, ada, apache, asn1, asp, awk, bash, bibtex, boo, c, changelog,
clojure, cmake, coffee, coldfusion, commonlisp, cpp, cs, css, curry, d,
diff, djangotemplate, doxygen, doxygenlua, dtd, eiffel, email, erlang,
fortran, fsharp, gnuassembler, go, haskell, haxe, html, ini, java, javadoc,
javascript, json, jsp, julia, latex, lex, literatecurry, literatehaskell,
lua, makefile, mandoc, matlab, maxima, metafont, mips, modula2, modula3,
monobasic, nasm, noweb, objectivec, objectivecpp, ocaml, octave, pascal,


An introduction to curl using GitHub's API

The Basics

Makes a basic GET request to the specifed URI