Skip to content

Instantly share code, notes, and snippets.

View L0NDONER's full-sized avatar
💭
I may be slow to respond.

L0NDONER L0NDONER

💭
I may be slow to respond.
View GitHub Profile
#!/bin/bash
# Auto-connect to WiFi with password
sudo nmcli device wifi connect "CHANGE TO NETWORK NAME" password "ADD WIFI PASSWORD HERE"
# Install nala and update/upgrade packages
sudo apt install nala -y
sudo nala update && sudo nala upgrade -y
# Install Balena Etcher USB ISO Writer
---
-
become: true
gather_facts: yes
hosts: "*"
ignore_unreachable: true
tasks:
- include: update.yml
- include: aptcleanup.yml
- include: pip.yml
# Constants
GAS_CONSUMPTION_PER_HOUR = 20 # liters per hour
GAS_PRICE_PER_LITER = 3.12 # dollars
TICKET_SPEED_1 = 100 # km/h
TICKET_COST_1 = 200 # dollars
TICKET_SPEED_2 = 120 # km/h
TICKET_COST_2 = 800 # dollars
DISTANCES = [150, 450, 900] # km
def calculate_trip_cost(speed):

Keybase proof

I hereby claim:

  • I am L0NDONER on github.
  • I am london (https://keybase.io/london) on keybase.
  • I have a public key whose fingerprint is B805 72E1 121E 5F26 FB00 D8A2 1123 3469 CF96 69C2

To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am L0NDONER on github.
  • I am london (https://keybase.io/london) on keybase.
  • I have a public key whose fingerprint is 13F3 C185 E8A1 C5C2 D848 3966 97CA 0469 95F8 F263

To claim this, I am signing this object:

@L0NDONER
L0NDONER / 0_reuse_code.js
Last active August 29, 2015 14:11
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console