Skip to content

Instantly share code, notes, and snippets.

taro furuya taross-f

Block or report user

Report or block taross-f

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View sshkeygen.sh
ssh-keygen -t rsa -b 4096 -C "comment"
@taross-f
taross-f / docker-compose.yml
Created Sep 28, 2019
sample docker-compose.yml with an image that runs npm install and build
View docker-compose.yml
version: "3"
services:
vuestic:
container_name: vuestic
build: ./vuestic
volumes:
- ./vuestic:/app
- /app/node_modules
- /app/dist
command: "http-server ./dist"
@taross-f
taross-f / set_emacs.sh
Last active May 16, 2019
emacs keybind
View set_emacs.sh
gsettings set org.gnome.desktop.input-sources xkb-options "['ctrl:nocaps']"
gsettings set org.gnome.desktop.interface gtk-key-theme Emacs
View disk_size.sql
select name, MB from
(
select tbl, count(*) as MB
from stv_blocklist
where tbl in (
select id
from stv_tbl_perm)
group by tbl
) block_list
inner join stv_tbl_perm
View rm_all.sh
find ./ -name "*.pyc" -exec rm {} \;
View s3_bucket_size.sh
aws s3 ls --profile default | awk '{print $3}' | xargs -L 1 -t aws s3 ls --recursive --human --sum --profile default | grep -e aws -e Total
@taross-f
taross-f / deploy.sh
Last active Dec 10, 2018
deploy lambda
View deploy.sh
#!/bin/bash
FUNCTION_NAME=
PROFILE=default
if [ $# -eq 1 ]; then
PROFILE=$1
fi
set -x
python -m compileall .
rm -rf /tmp/${FUNCTION_NAME}.zip
zip -r /tmp/${FUNCTION_NAME}.zip ./*
View date_span.py
def date_span(start_date, end_date):
for n in range((end_date - start_date).days + 1):
yield start_date + timedelta(n)
@taross-f
taross-f / gzip_nkf.sh
Created Oct 5, 2018
unzip, nkf, rename, zip
View gzip_nkf.sh
gunzip * && ls | xargs nkf -w --overwrite && ls | sed -e 'p;s/_s\.CSV/_s.UTF8\.CSV/' | xargs -n 2 mv && gzip *
@taross-f
taross-f / Dockerfile
Created Jul 31, 2018
rails tutorial dockerfile
View Dockerfile
FROM ruby:2.5.1
WORKDIR /app
COPY Gemfile* /app/
RUN apt-get update && \
apt-get install -y nodejs \
mysql-client \
postgresql-client \
You can’t perform that action at this time.