Skip to content

Instantly share code, notes, and snippets.

# nmcli con add type wifi ifname wlp3s0 con-name work-wifi ssid work-ssid
# nmcli con edit id work-wifi
nmcli> set ipv4.method auto
nmcli> set 802-1x.eap peap
nmcli> set 802-1x.phase2-auth mschapv2
nmcli> set 802-1x.identity myusername
nmcli> set 802-1x.password mypassword
nmcli> set wifi-sec.key-mgmt wpa-eap
nmcli> save
nmcli> activate
class Disc:
def __init__(self, size):
self.size = size
def __str__(self):
return self.size * "#"
class HanoiState:
"""Draws Hanoi Towers in ASCII art style.
This does not check for illegal moves nor does it implement error handling.
"""
use futures::{
pin_mut,
future::Either,
future::self,
executor::block_on,
};
async fn race_tasks() -> usize {
// These two futures have different types even though their outputs have the same type
@tungli
tungli / pandoc.css
Created August 11, 2019 14:07 — forked from killercup/pandoc.css
Add this to your Pandoc HTML documents using `--css pandoc.css` to make them look more awesome. (Tested with Markdown and LaTeX.)
/*
* I add this to html files generated with pandoc.
*/
html {
font-size: 100%;
overflow-y: scroll;
-webkit-text-size-adjust: 100%;
-ms-text-size-adjust: 100%;
}