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
# 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 |
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
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. | |
""" |
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
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 |
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
/* | |
* 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%; | |
} |