- Compress a file (
filename.sql
will be replaced byfilename.sql.xz
)
xz filename.sql
- Uncompress file (
filename.sql.xz
will be replaced byfilename.sql
)
#!/bin/bash | |
AWS_CLI="/usr/local/bin/aws" | |
BUCKET="backup.montefuscolo.com.br/mariadb-dump" | |
EXPIRES="$(date -d '+6 months' --utc +'%Y-%m-%dT%H:%M:%SZ')" | |
BASE_IMAGE="mariadb" | |
DUMP_FOLDER="/srv/backups/mariadb-dump" | |
DUMP_NAME="`date +%Y%m%d`" |
#!/bin/bash | |
AWS_CLI="/usr/local/bin/aws" | |
BUCKET="backup.montefuscolo.com.br" | |
BASE_REGEX='\/storage\/volumes' | |
CONTAINERS=$( | |
docker ps --format "{{ .Image }}\t{{ .Names }}" \ | |
| awk '/^(montefuscolo|registry.montefuscolo.com.br)\//{ print $2 }' |
#!/usr/bin/python2 | |
import curses | |
from urllib2 import urlopen | |
from simplejson import loads | |
from HTMLParser import HTMLParser | |
JOKES_API = 'http://api.icndb.com/jokes/random' | |
def get_new_joke(): |
#!/usr/bin/python2 | |
import curses | |
from urllib2 import urlopen | |
from simplejson import loads | |
from HTMLParser import HTMLParser | |
JOKES_API = 'http://api.icndb.com/jokes/random' | |
def get_new_joke(): |
#!/bin/bash | |
# | |
# @author https://github.com/guusdk | |
# | |
# Checks for a known location where Let's Encrypt keys/certificates will be spontaneously exist. | |
# When files are detected, they're used to generate a new keystore, which is then used | |
# to replace the Openfire keystore. | |
set -e |
version: '2' | |
services: | |
nginx: | |
image: jwilder/nginx-proxy | |
container_name: superchat | |
volumes: | |
- /var/run/docker.sock:/tmp/docker.sock:ro | |
- ./nginx.tmpl:/app/nginx.tmpl |
// ==UserScript== | |
// @name HacklabCode | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description try to take over the world! | |
// @author You | |
// @match https://code.hacklab.com.br/time_entries/new | |
// @match https://code.hacklab.com.br/time_entries/*/edit | |
// @grant none | |
// ==/UserScript== |
<VirtualHost *:80> | |
ServerAdmin [email protected] | |
ServerName awesometiki.com | |
ServerAlias www.awesometiki.com | |
# Redirect all to safe connections | |
Redirect permanent / https://www.awesometiki.com/ | |
</VirtualHost> | |
<VirtualHost *:443> |
version: '2' | |
services: | |
node1: | |
image: hauptmedia/mariadb:10.1 | |
hostname: node1 | |
environment: | |
- MYSQL_ROOT_PASSWORD=test | |
- REPLICATION_PASSWORD=test | |
- MYSQL_DATABASE=maria |