Skip to content

Instantly share code, notes, and snippets.

[['main', 55767454],
['car-details', 16493760],
['profile-my-orders', 14927755],
['vendors~@react-pdf/renderer', 13602348],
['checkout-auth', 13387606],
['checkout-car-registration', 13097007],
['car-search', 13005589],
['checkout-payment', 12303849],
['home', 12159669],
['finance-application-page', 12084862],
@denplis
denplis / 8x1080.md
Created May 26, 2018 23:21 — forked from epixoip/8x1080.md
8x Nvidia GTX 1080 Hashcat Benchmarks
# Sort a list of dictionary objects by a key - case sensitive
from operator import itemgetter
mylist = sorted(mylist, key=itemgetter('name'))
# Sort a list of dictionary objects by a key - case insensitive
mylist = sorted(mylist, key=lambda k: k['name'].lower())
@denplis
denplis / FishWBob.md
Created December 10, 2017 19:17 — forked from jkingworking/FishWBob.md
Installs fish and bob-the-fish with Powerline compatible fonts.

Fish shell with bob the fish Powerline

This assumes you have homebrew installed. If now go here first

Installing fish and powerline fonts

brew update;
brew tap caskroom/fonts;
brew install fish;
brew cask install font-hack-nerd-font;
brew cask install font-consolas-for-powerline;
set PREFIX_MAIN (pyenv virtualenv-prefix)
set PREFIX (pyenv prefix)
cmake -D CMAKE_BUILD_TYPE=RELEASE \
-D CMAKE_INSTALL_PREFIX=/Users/denplis/.pyenv/versions/opencv \
-D PYTHON3_EXECUTABLE=/Users/denplis/.pyenv/versions/opencv/bin/python3.6 \
-D PYTHON3_PACKAGES_PATH=/Users/denplis/.pyenv/versions/opencv/lib/python3.6/site-packages \
-D PYTHON3_LIBRARY=/Users/denplis/.pyenv/versions/3.6.1/lib/libpython3.6m.dylib \
-D PYTHON3_INCLUDE_DIR=/Users/denplis/.pyenv/versions/3.6.1/include/python3.6m \
-D PYTHON3_NUMPY_INCLUDE_DIRS=/Users/denplis/.pyenv/versions/opencv/lib/python3.6/site-packages/numpy/core/include \
@denplis
denplis / Dockerfile
Created January 17, 2017 09:18 — forked from yefim/Dockerrun.aws.json
Build a Docker image, push it to AWS EC2 Container Registry, then deploy it to AWS Elastic Beanstalk
# Example Dockerfile
FROM hello-world
@denplis
denplis / Makefile
Created June 11, 2016 08:52 — forked from playpauseandstop/Makefile
Setup aiohttp web app with Session Middleware to use Redis Storage and run under Gunicorn.
.PHONY: clean distclean install run
ENV ?= env
VENV = $(shell python -c "import sys; print(int(hasattr(sys, 'real_prefix')));")
ifeq ($(VENV),1)
GUNICORN = gunicorn
else
GUNICORN = $(ENV)/bin/gunicorn
endif
CACHES = {
'default': {
'BACKEND': 'django.core.cache.backends.locmem.LocMemCache',
'LOCATION': 'unique-snowflake',
}
}
@staticmethod
def _extend(target, ext):
for key, value in ext.items():
target[key] = value
#!/bin/zsh
set convert-meta off
# my favorite apps to use
export EDITOR='/usr/bin/vim'
#export BROWSER='open' # can be replaced by firefox or smt on Linux
export HGMERGE=merge
export LC_CTYPE=en_US.UTF-8
export LC_ALL=en_US.UTF-8