Skip to content

Instantly share code, notes, and snippets.

View hevlastka's full-sized avatar

Hevlastka hevlastka

View GitHub Profile
#!/bin/python
import os
import re
import sys
import json
import socket
import typing
import shutil
import logging
import subprocess # pragma: nosec
Backup:
docker exec -t -u postgres your-db-container pg_dumpall -c > dump_`date +%d-%m-%Y"_"%H_%M_%S`.sql
Restore:
cat your_dump.sql | docker exec -i your-db-container psql -Upostgres
@hevlastka
hevlastka / index.html
Created March 29, 2019 13:29
Psycho Glitch (CSS variables & @Keyframes)
<p data-text="PSYCHO">PSYCHO</p>
@hevlastka
hevlastka / index.html
Created March 29, 2019 13:24
Text Glitch Effect
<h1 class="glitch" data-text="Ruh-Roh!">Ruh-Roh!</h1>
@hevlastka
hevlastka / codepen-challenge-polygon-surface.markdown
Created March 14, 2019 16:23
CodePen Challenge - Polygon Surface
@hevlastka
hevlastka / index.haml
Created March 14, 2019 16:21
Randomly generated Pure CSS menu icons w/ markup and SCSS
.grid
.panel
%i.fa.fa-arrow-left.close
%h1 HTML
%p.markup
%h2 CSS
%p.css
@hevlastka
hevlastka / aurelia-started.md
Created February 22, 2017 16:15 — forked from kristianmandrup/aurelia-started.md
Aurelia Getting started - walk through

Aurelia

Recipe

  • Install NVM
  • Install IO.js
  • Install global Node.js utility modules (gulp, jspm, yo)
  • Install RethinkDB
  • Install Koa.js
  • Install Aurelia generator
  • Create Aurelia app via generator