Skip to content

Instantly share code, notes, and snippets.

View zaxbux's full-sized avatar
👨‍💻

Zach Schneider zaxbux

👨‍💻
View GitHub Profile
@rosco-pc
rosco-pc / unifi.md
Last active November 1, 2024 12:26
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

Dump schema

sqlite3 Accounts4.sqlite .schema

Dump data

sqlite3 Accounts4.sqlite .dump
@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' );
@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
@nuomi1
nuomi1 / PrintBootCampESDInfo.swift
Last active October 26, 2024 07:45
macOS and BootCamp Latest
#!/usr/bin/env swift
//
// PrintBootCampESDInfo.swift
//
// Created by nuomi1 on 8/5/18.
// Copyright © 2018年 nuomi1. All rights reserved.
//
import Foundation
@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'