Skip to content

Instantly share code, notes, and snippets.

View zaxbux's full-sized avatar
👨‍💻

Zach Schneider zaxbux

👨‍💻
View GitHub Profile
@abulte
abulte / backup_glacier.py
Created November 15, 2012 17:09
Simple AWS Glacier backup for files and MySQL DB
#!/usr/bin/env python
import sys
from datetime import datetime
import subprocess
DB_LOGIN = 'root'
DB_PASSWD = 'XXXX'
VAULT_NAME = 'backup_sunny'
HOSTNAME = 'Sunny'
@tschwaerzl
tschwaerzl / package_updates_check.py
Last active February 8, 2024 19:40 — forked from yumminhuang/package_updates_check.py
Python script to check apt-get updates and send result to Slack channel
#!/usr/bin/env python
#coding=utf-8
import apt
import apt_pkg
from time import strftime
import json
import os
import requests
import subprocess
@lucagrandicelli
lucagrandicelli / remove-emojis-wordpress.php
Last active July 13, 2020 21:24
A little gist to remove any emoji reference from Wordpress.
<?php
/**
* Disabling emoji library from Wordpress.
*/
function disable_emojis() {
// Let's remove a bunch of actions & filters.
remove_action( 'wp_head', 'print_emoji_detection_script', 7 );
remove_action( 'admin_print_scripts', 'print_emoji_detection_script' );
remove_action( 'wp_print_styles', 'print_emoji_styles' );

Dump schema

sqlite3 Accounts4.sqlite .schema

Dump data

sqlite3 Accounts4.sqlite .dump
@rosco-pc
rosco-pc / unifi.md
Last active July 15, 2024 13:05
Unifi commands.md

Unifi AP useful commands

using SSH:

  • log in to AP: $ ssh ubnt@<IP>
  • default username & password: ubnt & ubnt

Generic

Command Example Function