Skip to content

Instantly share code, notes, and snippets.

View drumsco's full-sized avatar

Munenori TAKEI drumsco

View GitHub Profile
@voluntas
voluntas / loadtest.rst
Last active June 10, 2025 13:47
負荷試験コトハジメ
@sidferreira
sidferreira / README.MD
Last active July 15, 2021 11:34
Device Size Table
Device Name Dev Size Ratio Real Size WxH Prop
iPhone5s 320x568 2 640x1136 0,56
iPhone6 375x667 2 750x1334 0,56
iPhone6 Plus 414x736 3 1242x2208 0,56
iPhone6s 375x667 2 750x1334 0,56
iPhone6s Plus 414x736 3 1242x2208 0,56
iPhone7 375x667 2 750x1334 0,56
iPhone7 Plus 414x736 3 1242x2208 0,56
@rudelm
rudelm / autofs.md
Last active October 10, 2025 03:01
Use autofs on Mac OS X to mount network shares automatically during access

Autofs on Mac OS X

With autofs you can easily mount network volumes upon first access to the folder where you want to mount the volume. Autofs is available for many OS and is preinstalled on Mac OS X so I show you how I mounted my iTunes library folder using this method.

Prepare autofs to use a separate configuration file

autofs needs to be configured so that it knows where to gets its configuration. Edit the file /etc/auto_master and add the last line:

#
# Automounter master map
#

+auto_master # Use directory service

# https://tomcat.apache.org/tomcat-7.0-doc/windows-auth-howto.html
# https://shieldmaster.wordpress.com/2013/06/01/installing-apache-tomcat-v7-x-silently-with-command-line-options/
$defaultTomcatVersion = "8.0.30"
function Get-TomcatFilename(
[string] $version = $defaultTomcatVersion
)
{
return "apache-tomcat-$version.exe"
@stefanprodan
stefanprodan / Backup-Postgres.ps1
Last active March 22, 2023 04:28
PostgreSQL cluster base backup automation made easy with PowerShell and Windows Task Scheduler or PgAgent. This script does the following: checks if there is enough free space to make a new backup (based on the last backup size), purges expired backups, creates a new folder for each backup, calls pb_basebackup to begin a tar gzip backup of every…
#############################################
##
## PostgreSQL base backup automation
## Author: Stefan Prodan
## Date : 20 Oct 2014
## Company: VeriTech.io
#############################################
# path settings
$BackupRoot = 'C:\Database\Backup';
@griffin-stewie
griffin-stewie / github.css
Last active April 27, 2021 00:46 — forked from theconektd/github.css
Pandoc で github 風 CSS を使った standalone な html を生成するための CSS(要 pandoc 1.12.3) http://griffin-stewie.hatenablog.com/entry/2014/03/28/125029
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 {
@miguelmota
miguelmota / README.md
Last active June 5, 2025 11:23
Multiple accounts with Mutt E-Mail Client (gmail example)

How to set up multiple accounts with Mutt E-mail Client

Thanks to this article by Christoph Berg

Instructions

Directories and files

~/
@voluntas
voluntas / erlang.rst
Last active October 12, 2021 22:34
Erlang/OTP コトハジメ
@voluntas
voluntas / erlang_maps.rst
Last active December 5, 2016 01:54
Erlang/OTP Map コトハジメ