Skip to content

Instantly share code, notes, and snippets.

@nissuk
nissuk / get-exif.ps1
Created November 12, 2011 14:33
PowerShell: PowerShell Image module Get-Exifの改変
<#
PowerShell Image module(http://archive.msdn.microsoft.com/PSImage/)のget-exif.ps1を改変して下記のプロパティを追加します。
- Latitude (緯度。度表記)
- Longitude (経度。度表記)
- Name (ファイル名)
使用例
dir "*.jpg" | get-exif | select name, latitude, longitude | export-csv out.csv
ライセンス
@theconektd
theconektd / github.css
Created April 30, 2012 02:11
Github Markdown CSS - for Markdown Editor Preview
body {
font-family: Helvetica, arial, sans-serif;
font-size: 14px;
line-height: 1.6;
padding-top: 10px;
padding-bottom: 10px;
background-color: white;
padding: 30px; }
body > *:first-child {
for i in `git branch -r|grep -v HEAD|grep -v master|sed 's:origin/::g'`
do
git checkout --track -b $i origin/$i
done
git checkout master
@wnoguchi
wnoguchi / README.md
Last active April 24, 2018 06:48
Preseed Recipe: Soft RAID1, LVM

Ubuntu Preseed Recipe: RAID1 + LVM

System Requirements

  • Ubuntu Server 16.04.4 LTS AMD64
  • Disk Size: 80GiB
  • Number of Disks: 2
  • LVM: YES
  • RAID: RAID1
  • Partition Table Format: MBR
@ftkro
ftkro / sftp.sh
Created December 26, 2013 08:36
Authy対応版SFTP。 sftp.shをsftpにリネームして/usr/local/sbinとかに入れておいてalias張っとけ。 alias sftp='/usr/local/sbin/sftp'
#!/bin/bash
#This is AN Correspondence Authy SSH Command.
if [ "$1" = vps ] ; then
#Enable Authy Token.
echo -n "Authy Token (not support SMS Token): "
read authytoken
AUTHY_TOKEN="$authytoken" sftp vps
else
#Disable Authy Token.
sftp $1
@doi-t
doi-t / Makefile
Last active February 3, 2022 05:22
GNU Make 第3版、第6章の非再帰makeのサンプルコードに対するメモ
### 非再帰的make(non-recursive make)
# ソースファイルツリーが常に整頓されている前提
# 使っていないソースファイルが紛れ込まないようにしなければならない、その辺はGitで管理する
# 内容的には "GNU Make 第3版、6章 大きなプロジェクトの管理" に載っているコードとほぼ同じ
#
### 参考
#論文: "Recursive Make Considered Harmful"
#http://miller.emu.id.au/pmiller/books/rmch/
#実際にnon-recursive makeを適用しているOSSプロダクト(OpenRADIUS)のMakefile解説(上記論文のサイトにもリンクが貼られている)
#http://evbergen.home.xs4all.nl/nonrecursive-make.html
@10long
10long / geeknote.el
Created February 17, 2014 03:39
geeknote call inside emacs
;; geeknote ==============================================================
(defun geeknote-mode ()
(interactive)
(eshell-command "python ~/geeknote/geeknote.py settings --editor /Applications/Emacs.app/Contents/MacOS/bin/emacsclient")
)
(defun geeknote-create (newnote)
(interactive "sname: ")
(eshell-command
(format "python ~/geeknote/geeknote.py create --content WRITE --title %s" newnote))
@yasushiyy
yasushiyy / vagrant_coreos_docker.md
Last active January 28, 2019 11:35
Vagrant + CoreOS + Dockerを利用した開発環境セットアップ

Vagrant + CoreOS + Dockerを利用した開発環境セットアップ

MacOSX + Vagrant + CoreOS + Docker + Ubuntuの環境。

2014年6月11日時点での情報。

  • Version: CoreOS 343.0.0
  • Kernel: 3.14.5
  • Docker: 1.0
@nsisodiya
nsisodiya / docker.sh
Created August 15, 2015 06:22
Upgrade to Docker 1.8 on ubuntu box
sudo su
echo deb https://apt.dockerproject.org/repo ubuntu-`cat /etc/lsb-release | grep DISTRIB_CODENAME | cut -d'=' -f2` main >> /etc/apt/sources.list.d/docker.list
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys F76221572C52609D
apt-get update
apt-get purge lxc-docker*
apt-get purge docker.io*
apt-get install docker-engine
exit
@t32k
t32k / make.md
Last active February 3, 2022 05:21

コマンド修飾子

  • @ コマンドを表示しない
  • - コマンドのエラーを無視する
  • + just printオプション指定時でも実行する

make変数

  • MAKE_VERSION GNU make のバージョン番号
  • CURDIR 現在実行しているmakeプロセスのカレントディレクトリ