Skip to content

Instantly share code, notes, and snippets.

Avatar
😉
Nanchatte

Yasuhiro Yamada greymd

😉
Nanchatte
  • Dublin, Ireland
View GitHub Profile
@GINK03
GINK03 / 食べログEDA.md
Last active Oct 22, 2019
食べログEDA
View 食べログEDA.md

食べログEDA

3.6点の壁は本当にあるのか

スクレイピングのコード

import os
import sys
@maprangzth
maprangzth / iptables
Created Nov 28, 2017 — forked from m4ce/iptables
Transparent proxy with Squid and IPTables
View iptables
# Rules for transparent proxying
iptables -N NO_PROXY -t nat
iptables -A NO_PROXY -t nat -d 0.0.0.0/8 -j ACCEPT
iptables -A NO_PROXY -t nat -d 10.0.0.0/8 -j ACCEPT
iptables -A NO_PROXY -t nat -d 127.0.0.0/8 -j ACCEPT
iptables -A NO_PROXY -t nat -d 169.254.0.0/16 -j ACCEPT
iptables -A NO_PROXY -t nat -d 172.16.0.0/12 -j ACCEPT
iptables -A NO_PROXY -t nat -d 192.168.0.0/16 -j ACCEPT
iptables -A NO_PROXY -t nat -d 224.0.0.0/4 -j ACCEPT
iptables -A NO_PROXY -t nat -d 240.0.0.0/4 -j ACCEPT
@mikkun
mikkun / BannerGei.txt
Created Jul 1, 2017
「第29回シェル芸勉強会 大阪サテライト LT」で使用したスライドのような何か("history -r BannerGei.txt"で読み込んで下さい)
View BannerGei.txt
center(){ printf "%*s\n" $(((${#1}+$(tput cols))/2)) "$1"; };tput reset;printf "<?xml?><svg><text font-size='20'>帰ってきたバナー芸"|convert - pbm:-|pbmtoascii;printf "<?xml?><svg><text font-size='20'> +手書きSVG"|convert - pbm:-|pbmtoascii;center 'KUSANAGI Mitsuhisa(@mikkun_jp) 2017年7月1日';center '第29回シェル芸勉強会';center '大阪サテライトLT大会'
tput reset;printf "<?xml?><svg><text font-size='20'>1. 流れる「toilet」"|convert - pbm:-|pbmtoascii
A=$(printf "<?xml?><svg><text font-size='40'>うんこ💩|"|convert - pbm:-|pbmtoascii|sed 's/[^ ]\+$//');:(){ clear;echo "$A";A=$(echo "$A"|sed -r 's/(.)(.*)/\2\1/');sleep .03;:;};:
tput reset;printf "<?xml?><svg><text font-size='20'>2. 回転寿司"|convert - pbm:-|pbmtoascii
D=0;while :;do echo "<?xml?><svg xmlns:xlink='http://www.w3.org/1999/xlink'><rect x='0' y='0' height='90' width='90' style='fill:none;stroke:black'/><path id='C' d='m60,45 a15,15 0 1 1 -30,0 15,15 0 1 1 30,0 z' style='fill:none;stroke:none'/><text transform='rotate($D,45,45)' font-family='IPA明朝' style='font-size:30px;fill:black'><textPath xlin
@kuwa72
kuwa72 / lg.zsh
Created Mar 31, 2017
Life game(requirements: zsh, egzact. Tested on OSX).
View lg.zsh
#!/usr/bin/env zsh
FO=$(cat)
X=$(head -n 1 <<<$FO)
YL=$(echo $FO|wc -l|bc)
FF=$((echo $X|tr 1 0;echo $FO;echo $X|tr 1 0)|addl 0\ |addr \ 0)
for L in {1..$YL};do
for C in {1..$(echo $X|awk '{print NF}')}; do
echo $FF | sed -n $L,$((L+2))p | cut -d \ -f $C,$((C+1)),$((C+2)) | xargs | {
read B
if echo $B | grep -q '. . . . 1 . . . .';then
@Neetless
Neetless / mail.go
Last active Feb 28, 2017
SMTP mail transfer sample program for gmail and office365.
View mail.go
package main
import (
"bytes"
"errors"
"fmt"
"html/template"
"log"
"net"
"net/mail"
@ryotako
ryotako / addb.fish
Last active Jan 22, 2017
fishのビルトインコマンドだけでegzactを書く練習
View addb.fish
function addb
while read -l line
echo $line
end
if count $argv >/dev/null
echo $argv[1]
end
end
@mecab
mecab / send-region-to-clipboard.el
Last active Jul 22, 2017
Send region to the clipboard via the xterm clipboard integration (PASTE64/OSC52)
View send-region-to-clipboard.el
(defun send-region-to-clipboard (START END)
;; Place https://github.com/skaji/remote-pbcopy-iterm2/blob/master/pbcopy as `cpbcopy`
(interactive "r")
(let ((infile (make-temp-file "send-region-to-clipboard")))
(write-region (buffer-substring (region-beginning) (region-end))
nil
infile
nil
'nomsg)
(with-temp-buffer
@stefanbuck
stefanbuck / upload-github-release-asset.sh
Last active Oct 6, 2020
Script to upload a release asset using the GitHub API v3.
View upload-github-release-asset.sh
#!/usr/bin/env bash
#
# Author: Stefan Buck
# License: MIT
# https://gist.github.com/stefanbuck/ce788fee19ab6eb0b4447a85fc99f447
#
#
# This script accepts the following parameters:
#
# * owner
@inaz2
inaz2 / japanese-generations-2016.md
Last active Nov 23, 2019
日本の世代と2016年時点での年齢
View japanese-generations-2016.md
世代 出生年 年齢 時勢
昭和一桁世代 1927年-1934年 82歳-89歳 世界恐慌
焼け跡世代 1935年-1946年 70歳-81歳 第二次世界大戦終戦
全共闘世代 1941年-1949年 67歳-75歳 全共闘運動、安保闘争
団塊の世代 1947年-1949年 67歳-69歳 第一次ベビーブーム
しらけ世代 1950年-1964年 52歳-66歳 第一次オイルショック
新人類 1961年-1970年 46歳-55歳 共通一次試験開始、サブカルチャー隆盛
バブル世代 1965年-1969年 47歳-51歳 ツッパリ文化
団塊ジュニア 1971年-1974年 42歳-45歳 第二次ベビーブーム
@noelboss
noelboss / git-deployment.md
Last active Oct 24, 2020
Simple automated GIT Deployment using Hooks
View git-deployment.md

Simple automated GIT Deployment using GIT Hooks

Here are the simple steps needed to create a deployment from your local GIT repository to a server based on this in-depth tutorial.

How it works

You are developing in a working-copy on your local machine, lets say on the master branch. Most of the time, people would push code to a remote server like github.com or gitlab.com and pull or export it to a production server. Or you use a service like deepl.io to act upon a Web-Hook that's triggered that service.

You can’t perform that action at this time.