using SSH:
- log in to AP:
$ ssh ubnt@<IP>
- default username & password:
ubnt
&ubnt
Command | Example | Function |
---|
Dump schema
sqlite3 Accounts4.sqlite .schema
Dump data
sqlite3 Accounts4.sqlite .dump
<?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' ); |
#!/usr/bin/env python | |
#coding=utf-8 | |
import apt | |
import apt_pkg | |
from time import strftime | |
import json | |
import os | |
import requests | |
import subprocess |
#!/usr/bin/env swift | |
// | |
// PrintBootCampESDInfo.swift | |
// | |
// Created by nuomi1 on 8/5/18. | |
// Copyright © 2018年 nuomi1. All rights reserved. | |
// | |
import Foundation |
#!/usr/bin/env python | |
import sys | |
from datetime import datetime | |
import subprocess | |
DB_LOGIN = 'root' | |
DB_PASSWD = 'XXXX' | |
VAULT_NAME = 'backup_sunny' | |
HOSTNAME = 'Sunny' |