Skip to content

Instantly share code, notes, and snippets.

@bbtdev
bbtdev / wifi-cli-connection.txt
Created February 5, 2020 22:12 — forked from debxp/wifi-cli-connection.txt
Wifi connection from command line after a Debian minimal install
Create the file 'wpa_supplicant.conf'...
$ sudo nano /etc/wpa_supplicant.conf
Put the following in ti:
network={
ssid="your_wifi_name"
psk="your_wifi_password"
}
@bbtdev
bbtdev / bash-ruby-yaml-to-json
Created September 25, 2018 09:36 — forked from chrismytton/yaml2json.sh
Shell function to convert YAML to JSON
yaml2json () {
ruby -r yaml -r json -e 'puts YAML.load($stdin.read).to_json'
}
@bbtdev
bbtdev / readline-cheatsheet.md
Last active October 15, 2018 16:45 — forked from P7h/Bash_command_line_shortcuts.md
Readline library aka command line shortcuts

Readline cheatsheet

Picked these from here

Command Editing Shortcuts

Command Note
Ctrl + a go to the start of the command line
Ctrl + e go to the end of the command line
Ctrl + k delete from cursor to the end of the command line