This file contains hidden or 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
mkdir tmp | |
for i in `seq 1 100`; | |
do | |
let "owo=100-$i" | |
echo $owo | |
/usr/local/bin/convert -liquid-rescale $owo% original.png ./tmp/$i.png | |
/usr/local/bin/convert -scale 300x300 ./tmp/$i.png ./tmp/$i.png | |
done | |
/usr/local/bin/convert -delay 1 -loop 0 ./tmp/{1..100}.png liquid.gif | |
rm -rf ./tmp |
This file contains hidden or 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
" Avoid issues with using zsh | |
set shell=/bin/bash | |
" Required | |
set nocompatible | |
" Plugins start | |
call plug#begin('~/.vim/plugged') | |
" Status |
This file contains hidden or 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
package main | |
import ( | |
"encoding/json" | |
"fmt" | |
"log" | |
"time" | |
) | |
type MyStruct struct { |
This file contains hidden or 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
font_family SF Mono | |
font_size 15.0 | |
adjust_column_width -1 | |
term xterm-256color | |
tab_bar_edge top | |
copy_on_select yes | |
map alt+left send_text all \x1b\x62 | |
map alt+right send_text all \x1b\x66 |
This file contains hidden or 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
package main | |
import ( | |
"context" | |
"encoding/json" | |
"fmt" | |
"reflect" | |
"github.com/olivere/elastic" | |
) |
This file contains hidden or 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
// Run on https://<yourteam>.slack.com/customize/emoji | |
var out = "CUSTOM EMOJI LEADERS\n"; | |
var usersCount = {}; | |
$('#custom_emoji .author_cell').each((i, el) => { | |
let user = el.textContent.trim(); | |
let u = usersCount[user] ? usersCount[user] : {user: user, count: 0}; | |
u.count += 1 | |
usersCount[user] = u; | |
}); |
This file contains hidden or 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
a4b.amazonaws.com | |
access-analyzer.amazonaws.com | |
account.amazonaws.com | |
acm-pca.amazonaws.com | |
acm.amazonaws.com | |
airflow-env.amazonaws.com | |
airflow.amazonaws.com | |
alexa-appkit.amazon.com | |
alexa-connectedhome.amazon.com | |
amazonmq.amazonaws.com |
This file contains hidden or 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
# vim:fileencoding=utf-8:ft=conf | |
# Fully featured | |
font_family FuraCode Nerd Font Mono | |
italic_font auto | |
bold_font auto | |
bold_italic_font auto | |
# Font size (in pts) | |
font_size 11.0 |
This file contains hidden or 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 boto3 | |
import sys | |
import json | |
import logging | |
from threading import Thread | |
from queue import Queue | |
logging.basicConfig(level=logging.INFO, format='%(asctime)s - %(name)s - %(levelname)s - %(message)s') | |
logger = logging.getLogger(__name__) |
This file contains hidden or 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
sessionToken := "" // not required | |
accessKey := "AWS_ACCESS_KEY_ID" | |
secretKey := "AWS_SECRET_ACCESS_KEY" | |
sess, err := session.NewSession(&aws.Config{ | |
Region: aws.String("us-east-1"), | |
Credentials: credentials.NewStaticCredentials(accessKey, secretKey, sessionToken), | |
}) | |
if err != nil { | |
log.Fatal("unable to create aws session") |