- Install with Encrypted LVM
sudo apt-get install sysfsutils
sudo echo 'power/mem_sleep = deep' > /etc/sysfs.d/mem_sleep.conf
# Configuration file for libinput-gestures. | |
# | |
# The default configuration file exists at /etc/libinput-gestures.conf | |
# but a user can create a personal custom configuration file at | |
# ~/.config/libinput-gestures.conf. | |
# | |
# Lines starting with '#' and blank lines are ignored. Currently | |
# "gesture" and "device" configuration keywords are supported as | |
# described below. The keyword can optionally be appended with a ":" (to | |
# maintain compatibility with original format configuration files). |
The laptop works well on Archlinux. A few notes based on the installation guide for the previous version.
Per the Arch wiki, more power can be saved by creating /etc/modprobe.d/i915.conf
with the following content:
options i915 modeset=1 enable_rc6=1 enable_fbc=1 enable_guc_loading=1 enable_guc_submission=1 enable_psr=1
#!/bin/sh | |
if [[ -z "$(head -n1 "$1" | grep -o -E '#[0-9]+')" ]]; then | |
echo >&2 ERROR: Commit message must include issue number. | |
exit 1 | |
fi | |
exit 0 |
The reflow appens as many times as there are frames per seconds. It recalculate all positions that change in order to diplay them. Basically, when you scroll you execute a function where you move things between two reflows. But there are functions that triggers reflows such as jQuery offset, scroll... So there are two things to take care about when you dynamically change objects in javascript to avoid too many reflows:
var auth_token = $("input[name='authenticity_token']")[0].value; | |
$("a.repo-name[href^='/THEORG']").each(function($elem){ | |
$.post("/notifications/subscribe", { | |
authenticity_token : auth_token, | |
do : 'included', | |
'repository_id' : $("form.js-unsubscribe-form #repository_id", $(this).parent("li")).val() | |
}); | |
}); |
# REGULAR VERSION | |
gunzip -c db.sql.gz | grep -Ev "^INSERT INTO \`(cache_|search_|sessions|whatever)" | mysql -u root -p databasename | |
# DRUPAL VERSION | |
gunzip -c db.sql.gz | grep -Ev "^INSERT INTO \`(cache_|search_|sessions|whatever)" | drush sqlc |
// CSS Color Names | |
// Compiled by @bobspace. | |
// | |
// A javascript object containing all of the color names listed in the CSS Spec. | |
// This used to be a big array, but the hex values are useful too, so now it's an object. | |
// If you need the names as an array use Object.keys, but you already knew that! | |
// | |
// The full list can be found here: https://www.w3schools.com/cssref/css_colors.asp | |
// Use it as you please, 'cuz you can't, like, own a color, man. |
var parser = document.createElement('a'); | |
parser.href = "http://example.com:3000/pathname/?search=test#hash"; | |
parser.protocol; // => "http:" | |
parser.hostname; // => "example.com" | |
parser.port; // => "3000" | |
parser.pathname; // => "/pathname/" | |
parser.search; // => "?search=test" | |
parser.hash; // => "#hash" | |
parser.host; // => "example.com:3000" |