This is a TL;DR for: https://linuxopsys.com/topics/update-firmware-on-ubuntu-using-fwupd
# Install
su -
apt update
apt install udisks2 fwupd
# Display supported devices
fwupdmgr get-devices
This is a TL;DR for: https://linuxopsys.com/topics/update-firmware-on-ubuntu-using-fwupd
# Install
su -
apt update
apt install udisks2 fwupd
# Display supported devices
fwupdmgr get-devices
#!/bin/bash | |
# Modified by Chris Richardson (https://github.com/christr and https://twitter.com/christr77) on 09/20/2020 | |
# Previous versions of this script don't work because they hadn't been updated since 2012. There are now more steps involved to set this up. | |
# This script update is based on information found here: https://developers.linode.com/api/v4/domains-domain-id-records-record-id/#put | |
# You first must find out the domain ID and resource ID numbers. In order to do this follow the steps below. | |
# 1. Create a Linode API Key through your account profile at https://cloud.linode.com/dashboard. Give it rights to read/write to domains only. | |
# 2. From a shell run the following command: LINODE_API_KEY=[insert API key from step 1 here] | |
# 3. Run the following command to get the domain ID number for the domain you want to manage: curl -H "Authorization: Bearer $LINODE_API_KEY" https://api.linode.com/v4/domains/ |
1. Hit ctrl+alt+esc | |
2. Hit Alt+F2, type r, and press Enter | |
3. Switch to another tty, for example tty6, by pressing Ctrl+Alt+F6 | |
Run: | |
pkill -HUP -f "cinnamon --replace" | |
Return to tty8 by pressing Ctrl+Alt+F8 |
This document describes how I set up my development environment with a fresh install of Xubuntu 16.04 (Xubuntu is Ubuntu with xfce).
Currently this document describes how to set up:
# taken from http://www.piware.de/2011/01/creating-an-https-server-in-python/ | |
# generate server.xml with the following command: | |
# openssl req -new -x509 -keyout server.pem -out server.pem -days 365 -nodes | |
# run as follows: | |
# python simple-https-server.py | |
# then in your browser, visit: | |
# https://localhost:4443 | |
import BaseHTTPServer, SimpleHTTPServer | |
import ssl |
⇐ back to the gist-blog at jrw.fi
Or, 16 cool things you may not have known your stylesheets could do. I'd rather have kept it to a nice round number like 10, but they just kept coming. Sorry.
I've been using SCSS/SASS for most of my styling work since 2009, and I'm a huge fan of Compass (by the great @chriseppstein). It really helped many of us through the darkest cross-browser crap. Even though browsers are increasingly playing nice with CSS, another problem has become very topical: managing the complexity in stylesheets as our in-browser apps get larger and larger. SCSS is an indispensable tool for dealing with this.
This isn't an introduction to the language by a long shot; many things probably won't make sense unless you have some SCSS under your belt already. That said, if you're not yet comfy with the basics, check out the aweso
function toUTF8Array(str) { | |
var utf8 = []; | |
for (var i=0; i < str.length; i++) { | |
var charcode = str.charCodeAt(i); | |
if (charcode < 0x80) utf8.push(charcode); | |
else if (charcode < 0x800) { | |
utf8.push(0xc0 | (charcode >> 6), | |
0x80 | (charcode & 0x3f)); | |
} | |
else if (charcode < 0xd800 || charcode >= 0xe000) { |
var my_element = document.getElementById('my-element'); | |
//-- Returns true/false | |
my_element.isVisible(my_element); |
/*--- waitForKeyElements(): A utility function, for Greasemonkey scripts, | |
that detects and handles AJAXed content. | |
Usage example: | |
waitForKeyElements ( | |
"div.comments" | |
, commentCallbackFunction | |
); |