[![IMAGE ALT TEXT HERE](https://img.youtube.com/vi/YOUTUBE_VIDEO_ID_HERE/0.jpg)](https://www.youtube.com/watch?v=YOUTUBE_VIDEO_ID_HERE)
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
version: "3" | |
services: | |
vuestic: | |
container_name: vuestic | |
build: ./vuestic | |
volumes: | |
- ./vuestic:/app | |
- /app/node_modules | |
- /app/dist | |
command: "http-server ./dist" |
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
gsettings set org.gnome.desktop.input-sources xkb-options "['ctrl:nocaps']" | |
gsettings set org.gnome.desktop.interface gtk-key-theme Emacs |
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
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 |
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
find ./ -name "*.pyc" -exec rm {} \; |
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
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 |
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/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 ./* |
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
def date_span(start_date, end_date): | |
for n in range((end_date - start_date).days + 1): | |
yield start_date + timedelta(n) |
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
gunzip * && ls | xargs nkf -w --overwrite && ls | sed -e 'p;s/_s\.CSV/_s.UTF8\.CSV/' | xargs -n 2 mv && gzip * |
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
FROM ruby:2.5.1 | |
WORKDIR /app | |
COPY Gemfile* /app/ | |
RUN apt-get update && \ | |
apt-get install -y nodejs \ | |
mysql-client \ | |
postgresql-client \ |