Skip to content

Instantly share code, notes, and snippets.

View szyn's full-sized avatar
🐟
SUZUKI

Shota Suzuki szyn

🐟
SUZUKI
View GitHub Profile
curl -X POST localhost:8080/v1/statement -d "SELECT 1" -H "X-Presto-User: szyn"
# vim: set ft=yml:
+hoge:
echo>: fuga!
@szyn
szyn / history.sh
Last active November 25, 2017 10:26
sudo systemctl stop nginx
sudo systemctl stop supervisor
sudo systemctl disable nginx
sudo systemctl disable supervisor
sudo -u redash bin/run ./manage.py runserver --host 0.0.0.0 --debugger --reload
+repeat_task1:
for_each>:
fruit: [apple, orange, apricot, plum, banana, lemon]
verb: [eat, throw]
_do:
echo>: ${verb} ${fruit}
+repeat_task2:
loop>: 100
_do:
{
"alfredtheme" : {
"result" : {
"textSpacing" : 7,
"subtext" : {
"size" : 11,
"colorSelected" : "#FFFFFFA7",
"font" : "MigMix 1P",
"color" : "#FFFFFF4F"
},
@szyn
szyn / production.yml
Last active September 25, 2017 14:40
Digdagでパラメータファイルを扱う際のサンプル
pg:
host: production
port: 5432
database: production_db
user: production_user
ssl: true
schema: myschema
@szyn
szyn / good-template.yml
Created April 16, 2017 12:26
digdag-slack plugin's sample
username: Digdag
icon_emoji: ':blush:'
attachments:
- fallback: '[SUCCESS] ${workflow_name} workflow'
color: "good"
text: '*[SUCCESS]* `${workflow_name}` Workflow'
mrkdwn_in:
- text
- pretext
- fields