Skip to content

Instantly share code, notes, and snippets.

View asbubam's full-sized avatar
:octocat:
Just enjoy the show.

asbubam asbubam

:octocat:
Just enjoy the show.
View GitHub Profile
@asbubam
asbubam / check_lambda_provision.js
Last active March 7, 2021 05:47
Checking current all AWS lambda function's total/provisioned/reserved count.
const AWS = require('aws-sdk');
const lambda = new AWS.Lambda({ region: 'ap-northeast-2' });
const sleep = async (ms) => { await new Promise(resolve => setTimeout(resolve, ms)); };
const getFuncList = async () => {
let funcList = [];
let isStop = false;
let params = {}
@asbubam
asbubam / keybase.md
Last active August 13, 2019 04:15
keybase.md

Keybase proof

I hereby claim:

  • I am asbubam on github.
  • I am asbubam (https://keybase.io/asbubam) on keybase.
  • I have a public key ASAizpZrww2osgBYHC2vGFHUq3yIqK1tBSUvwGQc62OKfwo

To claim this, I am signing this object:

@asbubam
asbubam / README.md
Created October 27, 2018 07:18 — forked from steve-jansen/README.md
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
@asbubam
asbubam / npm_install_with_docker.sh
Last active October 23, 2018 05:30
npm install(cache) with docker
mkdir -p /tmp/npm-cache-linux
docker run -v /tmp/npm-cache-linux:/root/.npm -v "$PWD":/usr/src/app -w /usr/src/app node:alpine sh -c 'npm install --prefix ./build ./'
@asbubam
asbubam / settings.json
Created February 2, 2018 00:08
vscode user settings
{
"editor.minimap.enabled": false,
"workbench.colorTheme": "One Dark Pro",
"workbench.editor.enablePreview": false,
"window.title": "${activeEditorMedium}${separator}${rootName}"
}

Keybase proof

I hereby claim:

  • I am asbubam on github.
  • I am asbubam (https://keybase.io/asbubam) on keybase.
  • I have a public key whose fingerprint is 90C0 9D78 42BA C956 89F0 3E92 0D46 D177 CACC 7E36

To claim this, I am signing this object:

@asbubam
asbubam / keybinding.json
Created June 12, 2017 06:23
sublime vi + webstorm shortcut
[
{ "keys": ["g", "t"], "command": "next_view",
"context":
[
{ "key": "setting.command_mode", "operand": true },
{ "key": "setting.is_widget", "operand": false }
]
},
{ "keys": ["g", "T"], "command": "prev_view",
@asbubam
asbubam / vim_ctrl_hjkl.kmmacros
Created January 18, 2017 05:43
keyboard maestro ctrl+hjkl to arrow keys
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<array>
<dict>
<key>Activate</key>
<string>Normal</string>
<key>CreationDate</key>
<real>506394561.98772597</real>
<key>Macros</key>
@asbubam
asbubam / boot2docker_with_iterm.scpt
Last active August 29, 2015 14:24
boot2docker_with_iterm.scpt
-- from http://dev.documize.com/boot2docker-iterm/
tell application "iTerm"
set myterm to (make new terminal)
tell myterm
activate current session
launch session "Default Session"
tell the last session
write text "unset DYLD_LIBRARY_PATH ; unset LD_LIBRARY_PATH"
write text "mkdir -p ~/.boot2docker"
write text "if [ ! -f ~/.boot2docker/boot2docker.iso ]; then cp /usr/local/share/boot2docker/boot2docker.iso ~/.boot2docker/ ; fi"
@asbubam
asbubam / gist:764759b465d2fa489aab
Last active August 29, 2015 14:24
boot2docker_with_iterm
tell application "iTerm"
set myterm to (make new terminal)
tell myterm
activate current session
launch session "Default Session"
tell the last session
write text "unset DYLD_LIBRARY_PATH ; unset LD_LIBRARY_PATH"
write text "mkdir -p ~/.boot2docker"
write text "if [ ! -f ~/.boot2docker/boot2docker.iso ]; then cp /usr/local/share/boot2docker/boot2docker.iso ~/.boot2docker/ ; fi"
write text "/usr/local/bin/boot2docker init && /usr/local/bin/boot2docker up && $(boot2docker shellinit) && docker version"