Skip to content

Instantly share code, notes, and snippets.

View d6rkaiz's full-sized avatar

Isao Sugimoto d6rkaiz

View GitHub Profile
@d6rkaiz
d6rkaiz / zaebos.md
Last active November 26, 2022 01:05
ザエボスさんの倒し方

Cルートのブリガンテス城にいるザエボスさんの倒し方の一例

前提条件

縛り:負傷者0、勧誘0、Lサイズなし

前衛

  • ヴァルキリー/ルーンフェンサー それぞれ1ずつ
  • ドラグーンx2
@d6rkaiz
d6rkaiz / gist:2234121
Created March 29, 2012 06:23
new sakura vps 2GB plan cpu info.
# cat /proc/cpuinfo
processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 44
model name : Intel(R) Xeon(R) CPU E5645
stepping : 1
cpu MHz : 2400.084
cache size : 4096 KB
physical id : 0
@d6rkaiz
d6rkaiz / debian-strongswan.md
Created November 14, 2020 06:17 — forked from andrewlkho/debian-strongswan.md
Setting up a secure VPN with strongSwan on debian

With heightening concern regarding the state of internet privacy (fuelled in part by the passing of the Investigatory Powers Act in the UK), I have set up a VPN server on the virtual server I have hosted with Mythic Beasts. This uses strongSwan and certificate-based IKEv2 authentication.

Assumptions:

  • Debian Jessie server already set up and accessible via debian.example.com, a public IPv4 of 203.0.113.1 and a public IPv6 of 2001:db8::1
  • Client username of me
  • Clients are running the latest versions of macOS and iOS (Sierra and 10 respectively at the time of writing)
  • No need to support any other operating systems (although the setup is easily translated)

For automated deployment of a similar setup, albeit Ubuntu-based and using ansible for deployment, I recommend you take a look at Algo VPN. I used that project as a basis for my configuration.

@d6rkaiz
d6rkaiz / Gemfile
Created June 25, 2020 01:02 — forked from dhh/Gemfile
HEY's Gemfile
ruby '2.7.1'
gem 'rails', github: 'rails/rails'
gem 'tzinfo-data', '>= 1.2016.7' # Don't rely on OSX/Linux timezone data
# Action Text
gem 'actiontext', github: 'basecamp/actiontext', ref: 'okra'
gem 'okra', github: 'basecamp/okra'
# Drivers
$ git status
# HEAD detached at v2.2.0
# Changes not staged for commit:
# (use "git add <file>..." to update what will be committed)
# (use "git checkout -- <file>..." to discard changes in working directory)
#
# modified: public/android-chrome-192x192.png
# modified: public/apple-touch-icon.png
# modified: public/favicon.ico
#
$ git status
# HEAD detached at v2.2.0
# Changes not staged for commit:
# (use "git add <file>..." to update what will be committed)
# (use "git checkout -- <file>..." to discard changes in working directory)
#
# modified: public/android-chrome-192x192.png
# modified: public/apple-touch-icon.png
# modified: public/favicon.ico
#
@d6rkaiz
d6rkaiz / git-cleanup-repo
Created October 21, 2017 15:49 — forked from robmiller/git-cleanup-repo
A script for cleaning up Git repositories; it deletes branches that are fully merged into `origin/master`, prunes obsolete remote tracking branches, and as an added bonus will replicate these changes on the remote.
#!/bin/bash
# git-cleanup-repo
#
# Author: Rob Miller <rob@bigfish.co.uk>
# Adapted from the original by Yorick Sijsling
git checkout master &> /dev/null
# Make sure we're working with the most up-to-date version of master.
git fetch
@d6rkaiz
d6rkaiz / cron.sh
Created September 20, 2017 06:03
remove_remote
#!/bin/bash
export RBENV_ROOT=$HOME/.rbenv
export PATH=/home/mastodon/.rbenv/shims:/home/mastodon/.rbenv/bin:/usr/local/bin:/usr/bin:/bin
export RAILS_ENV=production
cd /home/mastodon/live && bundle exec rake mastodon:media:remove_remote
@d6rkaiz
d6rkaiz / gist:539a30f6e2e81887eb681e59cfa39a8e
Created August 2, 2017 08:21
mastodon 1.5.0 missing lib install package for centos 7
yum install libicu-devel
wget ftp://fr2.rpmfind.net/linux/centos/7.3.1611/os/x86_64/Packages/libidn-devel-1.28-4.el7.x86_64.rpm
rpm -ivh libidn-devel-1.28-4.el7.x86_64.rpm
@d6rkaiz
d6rkaiz / netstat
Created April 28, 2017 18:28
netstat
# netstat -tpln
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 647/sshd
tcp 0 0 0.0.0.0:5432 0.0.0.0:* LISTEN 22183/postgres
tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN 1099/master
tcp 0 0 0.0.0.0:443 0.0.0.0:* LISTEN 7779/apache2
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 7779/apache2