Skip to content

Instantly share code, notes, and snippets.

View keyakko's full-sized avatar
🐈
ねこなでたい

keyakko

🐈
ねこなでたい
View GitHub Profile
@keyakko
keyakko / .htaccess
Last active August 5, 2020 19:01
Running Nuxt.js SSR in cheap web server...
AddHandler fcgid-script .fcgi
RewriteEngine On
RewriteCond %{REQUEST_URI} ^((?!/static/)).*$
RewriteCond %{REQUEST_URI} ^((?!/index.fcgi)).*$
RewriteRule ^(.*)$ /index.fcgi/$1 [QSA,L]
@keyakko
keyakko / config.cson
Last active March 19, 2020 15:39
Configurations for ATOM
"*":
_dart:
_firstRun: true
_version: "1.0.1"
"atom-clock":
showClockIcon: true
"atom-ide-ui":
"atom-ide-debugger":
showDebuggerOnBpSet: false
"atom-ide-diagnostics-ui": {}
@keyakko
keyakko / dns_check.zsh
Last active January 30, 2020 08:05
dns_record_check
#!/usr/bin/env zsh
TARGET_DOMAIN_NAME=
TARGET_RECORD=A
ROOT_SERVERS=`echo {a..m}.root-servers.net`
local -A opthash
zparseopts -D -M -A opthash -- \
h -help=h \
-root: \
@keyakko
keyakko / a.sh
Last active August 21, 2019 15:27
#!/bin/bash
apt update && apt dist-upgrade -y
apt install -y autoconf automake bc bison build-essential curl flex g++ \
g++-multilib gawk gcc gcc-multilib git gnupg gperf imagemagick \
lib32ncurses5-dev lib32readline-dev lib32z1-dev libc6-dev libexpat1-dev \
liblz4-1 liblz4-tool liblzma5 liblzma-dev libncurses5-dev libsdl1.2-dev \
libssl-dev libwxgtk3.0-dev libxml2 libxml2-utils lzop maven patch \
pkg-config pngcrush python schedtool squashfs-tools texinfo unzip \
xsltproc zip zlib1g-dev tmux
@keyakko
keyakko / init.sh
Last active June 18, 2019 09:41
Lineage OS 16
#!/bin/zsh
export USE_CCACHE=1
export LC_ALL=C
repo init -u git://github.com/LineageOS/android.git -b lineage-16.0
repo sync -j8 --force-sync --no-clone-bundle
. build/envsetup.sh
@keyakko
keyakko / source.sh
Last active January 21, 2019 17:54
medooze mcu media server installer https://github.com/medooze/media-server
#!/bin/bash
# for docker
function close () {
echo "[ERROR]: " $1
exit 1
}
@keyakko
keyakko / source.sh
Last active January 21, 2019 18:08
janus-gateway buildmemo
#!/bin/bash
# for docker
function close () {
echo "[ERROR]: " $1
exit 1
}
cd /root
#!/bin/bash
E_BUILD_DIR=~/Android/lineage
E_CPUS=$(cat /proc/cpuinfo | grep ^processor | wc -l)
# アップデートする
sudo apt update && sudo apt upgrade -y
sudo apt install -y autoconf automake bc bison build-essential \
curl flex g++ g++-multilib gawk gcc gcc-multilib git gnupg \
gperf imagemagick lib32ncurses5-dev lib32readline-dev lib32z1-dev \
@keyakko
keyakko / gist:8750294dc29be6f885e6f3b68096c9fc
Created November 12, 2018 15:59
karabiner-HHKB-function
{
"title": "Happy Hacking Keyboard Compatible Mode (for keyakko)",
"rules": [
{
"description": "Map fn + 1~9, 0, -, = to F1 ~ F12.",
"manipulators": [
{
"type": "basic",
"from": {
"key_code": "1",