command | args | description |
---|---|---|
status | [verbose] |
get current WPA/EAPOL/EAP status |
ifname | get current interface name | |
ping | pings wpa_supplicant | |
relog | re-open log-file (allow rolling logs) | |
note | <text> |
add a note to wpa_supplicant debug log |
mib | get MIB variables (dot1x, dot11) | |
help | [command] |
show usage help |
interface | [ifname] |
show interfaces/select interface |
Discover gists
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- show running queries (pre 9.2) | |
SELECT procpid, age(clock_timestamp(), query_start), usename, current_query | |
FROM pg_stat_activity | |
WHERE current_query != '<IDLE>' AND current_query NOT ILIKE '%pg_stat_activity%' | |
ORDER BY query_start desc; | |
-- show running queries (9.2) | |
SELECT pid, age(clock_timestamp(), query_start), usename, query | |
FROM pg_stat_activity | |
WHERE query != '<IDLE>' AND query NOT ILIKE '%pg_stat_activity%' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Run this in your browser console and it will delete all of your facebook photos | |
* one after another. | |
* | |
* You will most likely need to fiddle with the css selectors but its basically: | |
* 1. Click edit of first photo | |
* 2. Click delete in dropdown menu | |
* 3. Click confirm in dialog | |
*/ | |
setInterval(() => { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class ExampleGame : Game, IGame | |
{ | |
public Game Game => this; | |
private readonly ISomeDependency _someDependency; | |
public ExampleGame(ISomeDependency someDependency) | |
{ | |
_someDependency = someDependency; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Keyboard Label | Character | ASCII code (Parameter #1) | Mac Virtual Key Code (Parameter #2) | Layout dependence? | |||
---|---|---|---|---|---|---|---|
0 | 0 | 48 | 029 | ANSI-US | |||
1 | 1 | 49 | 018 | ANSI-US | |||
2 | 2 | 50 | 019 | ANSI-US | |||
3 | 3 | 51 | 020 | ANSI-US | |||
4 | 4 | 52 | 021 | ANSI-US | |||
5 | 5 | 53 | 023 | ANSI-US | |||
6 | 6 | 54 | 022 | ANSI-US | |||
7 | 7 | 55 | 026 | ANSI-US |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from: http://www.meandmark.com/keycodes.html | |
with some additions from people in the comments, thanks :) | |
Virtual Keycodes for the Mac QWERTY Layout | |
Keycodes are in hexadecimal. A blank entry means either there is no key assigned to that keycode or I was unable to find the assigned key. | |
Keycode Key | |
0x00 A | |
0x01 S | |
0x02 D |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Customize Product Categories Labels */ | |
add_filter( 'woocommerce_taxonomy_args_product_cat', 'custom_wc_taxonomy_args_product_cat' ); | |
function custom_wc_taxonomy_args_product_cat( $args ) { | |
$args['label'] = __( 'Product Categories', 'woocommerce' ); | |
$args['labels'] = array( | |
'name' => __( 'Product Categories', 'woocommerce' ), | |
'singular_name' => __( 'Product Category', 'woocommerce' ), | |
'menu_name' => _x( 'Categories', 'Admin menu name', 'woocommerce' ), | |
'search_items' => __( 'Search Product Categories', 'woocommerce' ), | |
'all_items' => __( 'All Product Categories', 'woocommerce' ), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#unified-extensions-view { | |
--uei-icon-size: 16px; | |
.unified-extensions-item { | |
margin-block: 0 !important; | |
border-radius: var(--arrowpanel-menuitem-border-radius) !important; | |
> .unified-extensions-item-action-button { | |
.unified-extensions-item-message-deck { | |
display: none; |
NewerOlder