export AWS_DEFAULT_REGION=ap-northeast-1
aws logs describe-log-groups --query 'logGroups[*].logGroupName' --output table | \
awk '{print $2}' | grep -v ^$ | while read x; do echo "deleting $x" ; aws logs delete-log-group --log-group-name $x; done
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This file contains pin mappings and reasonable defaults for Prusa i3 MK3S | |
# printers. It will work with MK3 (non-S) by selecting the alternative filament | |
# sensor. References to common community mods are included as well. | |
# | |
# Note: The Einsy boards sold by Prusa have defective firmware on the | |
# usb-to-serial chip that makes the boards unusable with Klipper through USB. | |
# While flashing Klipper firmware must be done over USB, the board can be used | |
# via serial with no additional modification. | |
# | |
# To use this config, the firmware should be compiled for the AVR atmega2560. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
tmux new-session -d | |
tmux split-window -h | |
tmux select-pane -t 0 | |
dir=$(PWD) | |
tmux send-keys -t 0 "cd client" Enter | |
tmux send-keys -t 0 "npm run dev" Enter |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Module } from '@nestjs/common'; | |
import { HttpModule } from './http/http.module'; | |
import { FooModule } from './foo/foo.module'; | |
@Module({ | |
imports: [ | |
HttpModule, | |
FooModule, // <- we'll make use of the "augmented" HttpService in this module | |
], |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Create a directory | |
mkdir ~/tmux-install | |
cd ~/tmux-install | |
# Get the files | |
curl -OL https://www.openssl.org/source/openssl-1.0.2l.tar.gz | |
curl -OL https://github.com/tmux/tmux/releases/download/2.3/tmux-2.3.tar.gz | |
curl -OL https://github.com/libevent/libevent/releases/download/release-2.0.22-stable/libevent-2.0.22-stable.tar.gz | |
# Extract them |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
#python 2.x | |
""" | |
import numpy as np | |
import math | |
import matplotlib.pyplot as plt | |
class Point: |
Vanilla Throttle esnextbin
Vanilla Debounce esnextbin
This is a collection of information on PostgreSQL and PostGIS for what I tend to use most often.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"user": { | |
"debug": true, | |
"delay": 1, | |
"error_color": "D02000", | |
"gutter_theme": "Packages/SublimeLinter/gutter-themes/Default/Default.gutter-theme", | |
"gutter_theme_excludes": [], | |
"lint_mode": "background", | |
"linters": { | |
"php": { |
NewerOlder