Skip to content

Instantly share code, notes, and snippets.

View takungsk's full-sized avatar
🏠
Working from home

Takuya Nagasaka takungsk

🏠
Working from home
View GitHub Profile
@hatsusato
hatsusato / kmc-advent-2017.md
Last active November 25, 2023 05:46
gpg のはなし

gpg のはなし

この記事は [KMC Advent Calendar 2017][advent] の 10 日目の記事です。 昨日の記事は tron 君 ([id:tron_kmc][tron-id]) の[今年の活動を振り返る - tron-Factory 業務日誌][tron]でした。 はたち:tada:めでたい:congratulations:

はじめに

KMC 6 回生の hatsusato です。 修士 2 回生ともなると研究にかまけて KMC 活動がおろそかになっているので、この場を借りて申し訳程度に KMC 活動をしようと思います。

#!/usr/bin/env bash
# Usage
# estimator.sh | awk -F"\t" '($2 < 400) {print $0}'
# $ curl -IL https://store.nintendo.co.jp/client_info/CX24DMSJKX/view/userweb/images/Nstore_banner_NX_0601_13.jpg?timestamp=1496291405000
# HTTP/1.1 200 OK
# Accept-Ranges: bytes
# Cache-Control: private
# Content-Length: 844784
@L422Y
L422Y / osx_automount_nfs.md
Last active May 10, 2024 09:06
Automounting NFS share in OS X into /Volumes

I have spent quite a bit of time figuring out automounts of NFS shares in OS X...

Somewhere along the line, Apple decided allowing mounts directly into /Volumes should not be possible:

/etc/auto_master (see last line):

#
# Automounter master map
#

+auto_master # Use directory service

trait Magma[A] {
def append(x: A, y: A): A
}
object Magma {
implicit def Monoid[A](implicit m: Monoid[A]) = new Magma[A] {
def append(x: A, y: A) = m.append(x, y)
}
}
@shokuto
shokuto / ox10.8.3_jekyll_install.md
Created March 31, 2013 05:21
osx10.8.3_jekyll_install

MacOS X 環境でjekyllを試してみる

MacOS X 10.8.3 環境にjekyllを使うための環境構築メモです。jekyllを入れることより、その手前の方が僕には難しかったので、これはそっちメインで書いてます。

注意

Rubyのインストールあたりが今もよくわかってません。なので参考程度にしてください。間違ってるよ!とかあったら教えてください。あと、環境としては僕の他のgistを見てください。

やったこと

@mochiz
mochiz / gist:4736183
Last active April 16, 2023 03:56
rbenvとruby-buildでRuby環境を最新に保つ

rbenvとruby-buildでRuby環境を最新に保つ

更新日:2014/11/19

rbenv, ruby-buildを更新

$ cd ~/.rbenv
$ git pull origin master
$ cd ~/.rbenv/plugins/ruby-build
$ git pull origin master
@THemming
THemming / gist:2173037
Created March 23, 2012 17:31
init.d script to launch Play framework under CentOS/RedHat
#!/bin/bash
# chkconfig: 345 20 80
# description: Play start/shutdown script
# processname: play
#
# Instalation:
# copy file to /etc/init.d
# chmod +x /etc/init.d/play
# chkconfig --add /etc/init.d/play
# chkconfig play on