Skip to content

Instantly share code, notes, and snippets.

View uBlacklist.txt
*://stackoverrun.com/*
*://www.sejuku.net/*
*://techacademy.jp/*
/.*udemy.*/
@taross-f
taross-f / flake8
Last active Feb 23, 2021
flake8 sample
View flake8
flake8 --ignore E111,E114,C901,E302,W503 --max-line-length 120 /path/to/src
View settings.json
{
"python.autoComplete.extraPaths": [
"${workspaceFolder}/path/to/src/"
],
"python.analysis.extraPaths": [
"${workspaceFolder}/path/to/src/"
],
"python.analysis.diagnosticSeverityOverrides": {
"reportMissingImports": "none",
"reportGeneralTypeIssues": "information"
@taross-f
taross-f / Dockerfile
Created Sep 14, 2020
OpenVINO 2020.4 Docker
View Dockerfile
FROM ubuntu:18.04
USER root
WORKDIR /
SHELL ["/bin/bash", "-xo", "pipefail", "-c"]
# Creating user openvino
RUN useradd -ms /bin/bash openvino && \
chown openvino -R /home/openvino
ARG DEPENDENCIES="autoconf \
automake \
build-essential \
@taross-f
taross-f / dates.py
Created Aug 13, 2020
generate date list from date range
View dates.py
from datetime import datetime, timedelta
target_dates = []
current = start_date
while start_date <= end_date and current <= end_date:
target_dates.append(current)
current += timedelta(days=1)
View stopStartFargate.py
import json
import boto3
def lambda_handler(event, context):
print(event)
client = boto3.client('ecs')
clusters = event['clusters']
for cluster in clusters:
services = cluster['services']
@taross-f
taross-f / Dockerfile
Last active Mar 22, 2020
Dockerfile for Python3.6 with OpenVINO 2020.1.023
View Dockerfile
FROM ubuntu:18.04
USER root
WORKDIR /
ARG DEPENDENCIES="autoconf \
automake \
build-essential \
cmake \
cpio \
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