Skip to content

Instantly share code, notes, and snippets.

@arioch1984
arioch1984 / 0_reuse_code.js
Created May 22, 2014 12:50
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@arioch1984
arioch1984 / add-to-sidebar.php
Last active August 29, 2015 14:15 — forked from nathanielks/add-to-sidebar.php
WP - Add to Sidebar
<?php
function cur_add_widget_to_sidebar( $widget_name, $add_to_sidebar, &$sidebar_options ){
$widget = get_option('widget_'.$widget_name);
if(!is_array($widget))$widget = array();
$count = count($widget)+1;
$sidebar_options[$add_to_sidebar][] = $widget_name.'-'.$count;
$widget[$count] = array();
update_option('widget_'.$widget_name,$widget);
@arioch1984
arioch1984 / Wifi-restart.sh
Last active April 23, 2021 22:56 — forked from MrSuicideParrot/Wifi-restart.sh
Restart network on kali linux, before use wirless in monitor mode #linux #kali
#!/bin/bash
sudo service networking restart
sudo service network-manager restart