Skip to content

Instantly share code, notes, and snippets.

stand by, i want to send you something
9:38 ifconfig > displays network information
iwconfig > displays wireless network information
iwlist scan > lists wireless access points
/etc/rd.d/network ifup interface
/etc/rd.d/network ifdown interface
/etc/rd.d/iptables {start|stop|restart}
ufw enable > enables the firewall [package Community: ufw]
ufw default allow/deny > allows/denies all incoming traffic
ufw status > displays firewall status and rules
sudo command > executes command as root
sudo -k > empties password cache
sudo visudo > edits /etc/sudoers
passwd > changes user password
chown owner:group > changes owner and group of file
chmod permissions file > changes the file permissions
ls -lh [dir] > displays files and permissions [of directory]
9:32 could you put that in a gist easily?
@bradmkjr
bradmkjr / require-acf.php
Last active October 9, 2018 17:55
Require ACF
<?php
/*** Require ACF plugin ***/
//Check if ACf exists on plugin activation
register_activation_hook( __FILE__, 'acf_plugin_activation' );
function acf_plugin_activation(){
// Require ACF or ACF Pro plugin
if ( ( !is_plugin_active( 'advanced-custom-fields/acf.php' ) && !is_plugin_active( 'advanced-custom-fields-pro/acf.php' ) ) and current_user_can( 'activate_plugins' ) ) {
// Stop activation redirect and show error
// Blank
puzzle = [
[" "," "," "," "," "," "," "," "," "],
[" "," "," "," "," "," "," "," "," "],
[" "," "," "," "," "," "," "," "," "],
[" "," "," "," "," "," "," "," "," "],
[" "," "," "," "," "," "," "," "," "],
[" "," "," "," "," "," "," "," "," "],
[" "," "," "," "," "," "," "," "," "],
[" "," "," "," "," "," "," "," "," "],
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
ACTG 201—Final Exam Study Guide
Chapter 1
Describe the three primary forms of business organization and list advantages and disadvantages of each.
sole proprietorship, partnership, or corporation
sole proprietorship
{
// The tab key will cycle through the settings when first created
// Visit http://wbond.net/sublime_packages/sftp/settings for help
// sftp, ftp or ftps
"type": "sftp",
"save_before_upload": true,
"upload_on_save": false,
"sync_down_on_open": false,
part 1
200@0
100@120
150@180
90@270
uncertainty of mass @ 8gm 180 deg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
<?php
/**
* Plugin Name: My Plugin
* Plugin Description: Settings API Demo
*/
add_action( 'admin_menu', 'my_admin_menu' );
function my_admin_menu() {
add_options_page( 'My Plugin', 'My Plugin', 'manage_options', 'my-plugin', 'my_options_page' );
}