Skip to content

Instantly share code, notes, and snippets.

View elishowk's full-sized avatar
🗑️
Full-stack freelancer (node&python mostly)

elias showk elishowk

🗑️
Full-stack freelancer (node&python mostly)
View GitHub Profile
@elishowk
elishowk / docker-compose.override.yml
Last active December 13, 2021 16:06
TD integration tests docker-compose-override.yml
services:
postgres:
image: circleci/postgres:12-alpine-ram
environment:
POSTGRES_HOST_AUTH_METHOD: trust
POSTGRES_USER: trackdechets
POSTGRES_PASSWORD: password
ports:
- "5432:5432"
shm_size: "512m"
@elishowk
elishowk / .env
Created December 13, 2021 15:58
.env-td-integration-tests
JWT_SECRET=xxx
EMAIL_BACKEND=sendinblue
SIB_BASE_URL=http://mailservice
MAIN_TEMPLATE_ID=9
ONBOARDING_TEMPLATE_ID=8
PRODUCER_SECOND_ONBOARDING_TEMPLATE_ID=7
PROFESSIONAL_SECOND_ONBOARDING_TEMPLATE_ID=9
SECURITY_CODE_RENEWAL_TEMPLATE_ID=6
DATABASE_URL='postgresql://trackdechets:password@postgres:5432/prisma_test?schema=default$default'
SENDER_EMAIL_ADDRESS=us@td.test
@elishowk
elishowk / models-metadata-correction.py
Last active September 20, 2021 13:01
models-metadata-fix.py
import argparse
import string
import os
import re
import shutil
import subprocess
from pathlib import Path
from typing import Dict, Optional, Union
from huggingface_hub.hf_api import HfApi

Keybase proof

I hereby claim:

  • I am elishowk on github.
  • I am eliasshowk (https://keybase.io/eliasshowk) on keybase.
  • I have a public key whose fingerprint is C405 AD53 AF30 B53C BC8A 516F EC39 C450 1EE0 3901

To claim this, I am signing this object:

let g:pymode_lint_checker = "pyflakes,pep8"
map tj :tabnext<CR> " go to next tab
map tk :tabprev<CR> " go to previous tab
map tn :tabnew<CR> " create a new tab
map td :tabclose<CR> " close current tab
cmap w!! %!sudo tee > /dev/null %
colorscheme solarized
syntax enable
let g:spf13_bundle_groups=['neocomplcache', 'programming', 'javascript', 'html']
Bundle 'scrooloose/nerdtree'
Bundle 'altercation/vim-colors-solarized'
Bundle 'spf13/vim-colors'
Bundle 'kien/ctrlp.vim'
Bundle 'vim-scripts/sessionman.vim'
Bundle 'matchit.zip'
Bundle 'Lokaltog/vim-powerline'
Bundle 'Lokaltog/vim-easymotion'
# ~/.profile: executed by the command interpreter for login shells.
# This file is not read by bash(1), if ~/.bash_profile or ~/.bash_login
# exists.
# see /usr/share/doc/bash/examples/startup-files for examples.
# the files are located in the bash-doc package.
# the default umask is set in /etc/profile; for setting the umask
# for ssh logins, install and configure the libpam-umask package.
#umask 022
/* jslint browser: true, regexp: true */
/* global jQuery, $ */
/* vim: set ft=javascript: */
# enable color support of ls and also add handy aliases
if [ -x /usr/bin/dircolors ]; then
test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)"
alias ls='ls --color=auto'
#alias dir='dir --color=auto'
#alias vdir='vdir --color=auto'
alias grep='grep --color=auto'
alias fgrep='fgrep --color=auto'
alias egrep='egrep --color=auto'
#!/bin/bash
# An intelligent and non intrusive prompt for bash
# Licensed under the AGPL version 3
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.