Skip to content

Instantly share code, notes, and snippets.

View Surgo's full-sized avatar
🛰️
Generating...

Kosei Kitahara Surgo

🛰️
Generating...
View GitHub Profile
@Surgo
Surgo / layout.kbd.json
Last active June 27, 2023 09:43
Splitted HHKB + α
[
[
{
"a": 6
},
"Esc",
{
"a": 4
},
"!\n1",
[{a:6},"Esc",{a:4},"!\n1","@\n2","#\n3","$\n4","%\n5",{x:2},"^\n6","&\n7","*\n8","(\n9",")\n0","_\n-","+\n=","|\n\\","~\n`"],
[{a:6,w:1.5},"Tab","Q","W","E","R","T",{x:2},"Y","U","I","O","P",{a:4},"{\n[","}\n]",{a:6,w:1.5},"Delete"],
[{w:1.75},"Control","A","S","D","F","G",{x:2},"H","J","K","L",{a:4},":\n;","\"\n'",{a:6,w:2.25},"Return"],
[{w:2.25},"Shift","Z","X","C","V","B",{x:2},"N","M",{a:4},"<\n,",">\n.","?\n/",{a:6,w:1.75},"Shift","Fn"],
[{x:1.5,a:4},"\n\nOpt\n\n\n\nAlt",{w:1.5},"\n\n⌘\n\n\n\n◇",{w:2.75},"",{x:2},"",{w:2.25},"",{w:1.5},"\n\n⌘\n\n\n\n◇","\n\nOpt\n\n\n\nAlt"]
@Surgo
Surgo / continuous-integration.yml
Created October 31, 2019 16:39
Cache Python packages with virtual environments
# .github/workflows/continuous-integration.yml
---
name: Continuous Integration
on:
push:
schedule:
- cron: "0 */4 * * *" # At minute 0 past every 4th hour
jobs:
static_analysis_python:
@Surgo
Surgo / me.md
Last active September 4, 2023 10:18
About

自己紹介

テクノロジーとチームと山とポケモンとアルコールを愛しています。

@Surgo
Surgo / console.log
Created February 14, 2017 09:09
is this collect?
# Both of ap-south-1 and ap-northeast-2 are same prefix list id, but its have different cidrs.
# Is this collect???
$ aws ec2 describe-prefix-lists --region=ap-south-1
{
"PrefixLists": [
{
"PrefixListName": "com.amazonaws.ap-south-1.s3",
"Cidrs": [
"52.92.248.0/22",

Keybase proof

I hereby claim:

  • I am Surgo on github.
  • I am surgo (https://keybase.io/surgo) on keybase.
  • I have a public key whose fingerprint is F435 1067 89BD A98B 4BE6 7DC7 3B1D 9400 1486 499A

To claim this, I am signing this object:

@Surgo
Surgo / .cVimrc
Last active September 11, 2015 08:32
.cVimrc
" Settings
set noautofocus
set cncpcompletion
set nosmoothscroll
set nohud
set autohidecursor
set typelinkhints
let scrollduration = 10
let searchlimit = 40
@Surgo
Surgo / apache
Created February 9, 2012 10:40
Monitoring Apache2.x from zabbix etc.
#!/bin/bash
export HOME=/etc/zabbix/externalscripts/
result=0
if [ "$1" == "CPULoadUser" ] ; then
load=`/usr/sbin/apache2ctl status | /bin/grep "CPU load" | /usr/bin/awk '{print $3}'`
result=${load:1}
elif [ "$1" == "CPULoadSystem" ] ; then
load=`/usr/sbin/apache2ctl status | /bin/grep "CPU load" | /usr/bin/awk '{print $4}'`
@Surgo
Surgo / mon_mysql.py
Created December 13, 2011 07:49
Example of Zabbix script for MySQL
#!/usr/bin/env python
import sys
import argparse
import subprocess
try:
from lxml import etree
except ImportError:
try:
@Surgo
Surgo / gist:1047275
Created June 26, 2011 05:17
/proc/meminfo@dotcloud
MemTotal: 35031888 kB
MemFree: 4275668 kB
Buffers: 1725140 kB
Cached: 11862228 kB
SwapCached: 644 kB
Active: 16243416 kB
Inactive: 7513128 kB
Active(anon): 9654152 kB
Inactive(anon): 971044 kB
Active(file): 6589264 kB