In Arch Linux
mkinitcpio -p linux
shows
Possibly missing firmware for module: aic94xx
Possibly missing firmware for module: wd719x
At some point you’ll find yourself in a situation where you need edit a commit message. That commit might already be pushed or not, be the most recent or burried below 10 other commits, but fear not, git has your back 🙂.
git commit --amendThis will open your $EDITOR and let you change the message. Continue with your usual git push origin master.
| #! /usr/bin/env ruby | |
| # usage: | |
| # $ das_download.rb | |
| require "mechanize" | |
| require "fileutils" | |
| class DasDownloader | |
| attr_reader :agent, :email, :password |
| alert('hello ' + document.location.href); |
| function cb (err, res) { | |
| return res; | |
| } | |
| function secondArg (oneName, cb) { | |
| oneName = oneName + '___2'; | |
| cb(null, oneName) | |
| } | |
| var toDl = ['a', 'b', 'c', 'd']; |
| function sleep (time) { | |
| return new Promise((resolve) => setTimeout(resolve, time)); | |
| } | |
| // Usage! | |
| sleep(500).then(() => { | |
| // Do something after the sleep! | |
| }) |
| (Math.random().toString(36)+'00000000000000000').slice(2, N+2) |
| // The resulting string will be twice as long as the random bytes you generate; | |
| // each byte encoded to hex is 2 characters. 20 bytes will be 40 characters of hex. | |
| require('crypto').randomBytes(48, function(err, buffer) { | |
| var token = buffer.toString('hex'); | |
| }); | |
| // synchronous version | |
| var token = require('crypto').randomBytes(64).toString('hex'); |
| var fs = require('fs'); | |
| fs.writeFile("/tmp/test", "Hey there!", function(err) { | |
| if(err) { | |
| return console.log(err); | |
| } | |
| console.log("The file was saved!"); | |
| }); |
| char buf[2]; | |
| while (scanf("%1[\n]", buf) == 0) { // loop until a blank line or EOF |