Skip to content

Instantly share code, notes, and snippets.

@ontana
ontana / git-tag-delete-local-and-remote.sh
Created September 13, 2018 02:57 — forked from mobilemind/git-tag-delete-local-and-remote.sh
how to delete a git tag locally and remote
# delete local tag '12345'
git tag -d 12345
# delete remote tag '12345' (eg, GitHub version too)
git push origin :refs/tags/12345
# alternative approach
git push --delete origin tagName
git tag -d tagName
@ontana
ontana / gist:a56b20b1c6e3ff035d148c81ed25d0af
Created July 12, 2018 07:46 — forked from tkaemming/gist:5640332
documentation on _threading_local
Help on module _threading_local:
NAME
_threading_local - Thread-local objects.
FILE
/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/_threading_local.py
MODULE DOCS
http://docs.python.org/library/_threading_local
@ontana
ontana / migrate-django.md
Created June 30, 2018 13:38 — forked from sirodoht/migrate-django.md
How to migrate Django from SQLite to PostgreSQL

How to migrate Django from SQLite to PostgreSQL

Dump existing data:

python3 manage.py dumpdata > datadump.json

Change settings.py to Postgres backend.

Make sure you can connect on PostgreSQL. Then:

@ontana
ontana / gist:fe61314e44b1d1b620d61312b8bc0f2b
Created September 12, 2017 13:36 — forked from jdjkelly/gist:0bddf2e834b6d6bc2174
Making Accessible Ember Components

Making Accessible Ember Components

Making the web accessible is important. We have ethical and, in some cases, legal obligations to ensuring access to all of users.

Luckily for us, it's easy to make an accessible Ember Component.

What are components?

To understand the accessibility story around Ember Components, we have to start by talking about Web Components. Ember Components are designed to be interoperable with the final Web Components API.

@ontana
ontana / psqlfix.txt
Created May 18, 2016 03:17
Change postgres default template0 to UTF8 encoding
mike@rbci:~$ psql -U postgres
psql (9.0.3)
Type "help" for help.
postgres=# update pg_database set datallowconn = TRUE where datname = 'template0';
UPDATE 1
postgres=# \c template0
You are now connected to database "template0".
template0=# update pg_database set datistemplate = FALSE where datname = 'template1';
UPDATE 1