- Install
wpasupplicant
- Turn on wifi radios:
sudo nmcli radio wifi on
- Check your devices are recognised even if they're not "managed":
sudo iwconfig
- Check your wifi (here called "wlp3s0") is capable of detecting nearby routers:
sudo iwlist wlp3s0 scan
- Configure
netplan
by dropping a file called01-netcfg.yaml
into/etc/netplan/
or edit existing file there. See example below. netplan try
,netplan generate
,netplan apply
.
This file contains hidden or 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
{ | |
"time": 2000 | |
} |
This file contains hidden or 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
// ==UserScript== | |
// @name IssueSaver | |
// @namespace https://gist.github.com/nhdinh/ed3e1f955d4d38574336ad0557ae088c | |
// @downloadURL https://gist.github.com/nhdinh/ed3e1f955d4d38574336ad0557ae088c/raw/tampermonkey-testio-nhdinh.user.js | |
// @updateURL https://gist.github.com/nhdinh/ed3e1f955d4d38574336ad0557ae088c/raw/tampermonkey-testio-nhdinh.user.js | |
// @version 0.1.6 | |
// @description Save bugs into my Google Sheet! | |
// @author You | |
// @match https://platform.utest.com/testcycles/*/ | |
// @icon https://www.google.com/s2/favicons?sz=64&domain=test.io |
This file contains hidden or 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
// ==UserScript== | |
// @name BangGiaVPS | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description Clean the web interface of the dashboard | |
// @author You | |
// @match https://banggia.vps.com.vn/chung-khoan/danh-muc | |
// @icon https://www.google.com/s2/favicons?sz=64&domain=vps.com.vn | |
// @require http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js | |
// @grant none |
This file contains hidden or 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
function FindProxyForURL(url, host) { | |
// our local URLs from the domains below example.com don't need a proxy: | |
if (shExpMatch(host, "*..apartmentlist.me")) { | |
return "PROXY forward.test.io:3128"; | |
} | |
// URLs within this network are accessed through | |
// port 8080 on fastproxy.example.com: | |
// if (isInNet(host, "10.0.0.0", "255.255.248.0")) { | |
// return "PROXY fastproxy.example.com:8080"; |
This file contains hidden or 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
def all_unique(list): | |
return len(list) == len(set(list)) | |
x = [1,2,3,4,5,6,7,8,9,10] | |
y = [1,1,2,3,4,5,6,6,7,8,9] | |
all_unique(x) # True | |
all_unique(y) # False |
This file contains hidden or 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
=Navigating= | |
visit('/projects') | |
visit(post_comments_path(post)) | |
=Clicking links and buttons= | |
click_link('id-of-link') | |
click_link('Link Text') | |
click_button('Save') | |
click('Link Text') # Click either a link or a button | |
click('Button Value') |
This file contains hidden or 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
localedef -f UTF-8 -i en_US en_US.UTF-8 |