Skip to content

Instantly share code, notes, and snippets.

View paveu's full-sized avatar
🏠
Working from home

Paweł paveu

🏠
Working from home
View GitHub Profile
@paveu
paveu / tccs.pl
Created February 4, 2014 20:16 — forked from jdeblese/tccs.pl
#!/usr/bin/perl -w
# copyright 2005-2008 Tomasz Pala <gotar@pld-linux.org>
# Contributions by Jan-willem De Bleser, 2013
# license: GPL
# usage:
# watch -d -n1 'tc -s c ls dev imq1 | tccs -f 10 2>/dev/null'
# tccs.rc file format:
That’s one of the real strengths of Docker: the ability to go back to a previous commit. The secret is simply to docker tag the image you want.
Here’s an example. In this example, I first installed ping, then committed, then installed curl, and committed that. Then I rolled back the image to contain only ping:
$ docker history imagename
IMAGE CREATED CREATED BY SIZE
f770fc671f11 12 seconds ago apt-get install -y curl 21.3 MB
28445c70c2b3 39 seconds ago apt-get install ping 11.57 MB
8dbd9e392a96 7 months ago 131.5 MB
@paveu
paveu / changes.md
Created December 10, 2017 14:33 — forked from warborn/changes.md
Duckr Updates

Duckr App

Changes to work with the lastest version of React (v15.6) and React Router (v4.1) when building the Duckr application from the Redux course

You can find the my current version of the app here

Optional

  • I used BrowserRouter as router and used BrowserHistory instead of hashHistory, changes needs to be made in the routes.js file
@paveu
paveu / zsh-virtualenv-setup.md
Created December 26, 2017 20:00 — forked from hminnovation/zsh-virtualenv-setup.md
ZSH Virtualenv and Virtualenvwrapper setup

### Installing global Python & Pip Use Brew brew install python

That'll install both Python, PIP and setuptools. If for some reason it didn't install PIP you can do via

curl https://bootstrap.pypa.io/get-pip.py > get-pip.py
sudo python get-pip.py

c/f MacOSX setup gitbook

{
"auto_complete_commit_on_tab": true,
"color_scheme": "Packages/Oceanic Next Color Scheme/Oceanic Next.tmTheme",
"draw_white_space": "all",
"font_face": "Fira Mono",
"font_size": 20,
"tab_size": 2,
"theme": "Brogrammer.sublime-theme",
"translate_tabs_to_spaces": true,
"trim_automatic_white_space": true,
@paveu
paveu / gist:5a04e9d2e64465ee9096784b18787eb4
Created August 3, 2020 11:36
Valid country codes for a default_country field
[Country(alpha_2=u'AW', alpha_3=u'ABW', name=u'Aruba', numeric=u'533'),
Country(alpha_2=u'AF', alpha_3=u'AFG', name=u'Afghanistan', numeric=u'004', official_name=u'Islamic Republic of Afghanistan'),
Country(alpha_2=u'AO', alpha_3=u'AGO', name=u'Angola', numeric=u'024', official_name=u'Republic of Angola'),
Country(alpha_2=u'AI', alpha_3=u'AIA', name=u'Anguilla', numeric=u'660'),
Country(alpha_2=u'AX', alpha_3=u'ALA', name=u'\xc5land Islands', numeric=u'248'),
Country(alpha_2=u'AL', alpha_3=u'ALB', name=u'Albania', numeric=u'008', official_name=u'Republic of Albania'),
Country(alpha_2=u'AD', alpha_3=u'AND', name=u'Andorra', numeric=u'020', official_name=u'Principality of Andorra'),
Country(alpha_2=u'AE', alpha_3=u'ARE', name=u'United Arab Emirates', numeric=u'784'),
Country(alpha_2=u'AR', alpha_3=u'ARG', name=u'Argentina', numeric=u'032', official_name=u'Argentine Republic'),
Country(alpha_2=u'AM', alpha_3=u'ARM', name=u'Armenia', numeric=u'051', official_name=u'Republic of Armenia'),
@paveu
paveu / fb-deletion-callback-example.py
Created April 3, 2021 18:40 — forked from flyingdogz/fb-deletion-callback-example.py
Example implementation of Facebook Data Deletion Callback in Python
import base64
import hashlib
import hmac
import json
from flask import Flask, jsonify, request
app = Flask(__name__)