Skip to content

Instantly share code, notes, and snippets.

View airtoxin's full-sized avatar
🌴
On vacation

Ryoji Miyazato airtoxin

🌴
On vacation
View GitHub Profile
@dimkir
dimkir / nightmare-on-amazon-linux.MD
Last active February 6, 2021 17:45
How to run nightmare on Amazon Linux

Running nightmare on Amazon Linux

You may have thought of running nightmare on AWS Lambda. But before we can run it on Lambda, we need first to make it run on Amazon Linux.

Provision instance which replicates Lambda environment

According to AWS Documentation on Lambda Execution Environment and available Libraries we would need this AMI image with this alias amzn-ami-hvm-2016.03.3.x86_64-gp2. Keep in mind that AMI-image-id for this instance would be different in different regions (eg):

  • In eu-west-1 - ami-f9dd458a
  • In us-east-1 - ami-6869aa05
@enakai00
enakai00 / reversi.ipynb
Created November 7, 2016 08:34
Reinforcement learning example for mini-max method Reversi.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ykst
ykst / lua-nginx-cheatsheet.md
Last active February 7, 2024 15:17
逆引きlua-nginx-module
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
var AWS = require('aws-sdk');
var Client = require('amazon-api-gateway-client').Client;
var RequestLogger = require('stackable-fetcher').RequestLogger;
var ResponseLogger = require('stackable-fetcher').ResponseLogger;
var client = new Client({
accessKeyId: AWS.config.credentials.accessKeyId,
region: 'us-east-1',
secretAccessKey: AWS.config.credentials.secretAccessKey,
}).use(RequestLogger).use(ResponseLogger);
@voluntas
voluntas / new_to_mqtt.rst
Last active October 2, 2023 06:26
初めての MQTT
@phalt
phalt / main.go
Created December 3, 2014 14:51
Simple HTTP API in Go
package main
import (
"github.com/gin-gonic/gin"
"database/sql"
"github.com/coopernurse/gorp"
_ "github.com/mattn/go-sqlite3"
"log"
"time"
"strconv"
@steve-jansen
steve-jansen / README.md
Last active June 30, 2024 17:19
Stop and start Symantec Endpoint Protection on OS X

This script enables you stop and start Symantec Endpoint Protection on OS X

Installation

sudo curl https://gist.githubusercontent.com/steve-jansen/61a189b6ab961a517f68/raw/sep -o /usr/local/bin/sep
sudo chmod 755 /usr/local/bin/sep
sudo chown root:staff /usr/local/bin/sep
@zaftzaft
zaftzaft / ugoira.js
Created June 27, 2014 16:13
PixivのUgoiraをGIFにするブックマークレット的なやつ
// あとでリファクタリングする
var b = "https://raw.githubusercontent.com/antimatter15/jsgif/master/";
var u = [
"LZWEncoder.js", "NeuQuant.js", "GIFEncoder.js", "Demos/b64.js"
];
$("canvas").remove();
var $c = $("<canvas>").appendTo("body");
var ctx = $c[0].getContext("2d");
var d = document;
@haribote
haribote / Basic of JavaScript
Last active October 3, 2016 06:13
"Basic of JavaScript"は、株式会社まぼろし( http://maboroshi.biz/ )の新人・若手向けJavaScript入門資料です。
# 目次
+ JavaScript オブジェクトと値の型