TL;DR
Create a backup:
pg_dumpall > mybackup.sql
Perform the upgrade:
sudo pg_dropcluster 9.4 main --stop
/** | |
* A linear interpolator for hexadecimal colors | |
* @param {String} a | |
* @param {String} b | |
* @param {Number} amount | |
* @example | |
* // returns #7F7F7F | |
* lerpColor('#000000', '#ffffff', 0.5) | |
* @returns {String} | |
*/ |
import ifConditionHelper from 'myapp/helpers/if-condition'; | |
/** | |
* Logical AND Existence Conditional Block | |
* | |
* Usage: {{#if-all-exists field1 field2}}Either field1 or field2 is truthy{{/if-all-exists}} | |
* | |
* Executes the given block if all arguments are defined | |
*/ | |
export default function() { |
TL;DR
Create a backup:
pg_dumpall > mybackup.sql
Perform the upgrade:
sudo pg_dropcluster 9.4 main --stop
I was trying to get my tests as fast as possible like in gary bernhardts videos. I noticed even running the rspec command with no test at all took about 500 ms.
I know there is weird stuff in my .bashrc that takes awhile to load the first shell. But does that slow down every command as well?
🍒tony@moguya ~$ time ruby -v
ruby 2.2.0p0 (2014-12-25 revision 49005) [x86_64-darwin14]
real 0m0.504s
user 0m0.041s
$Server = "ftp://ftp.example.com/" | |
$User = "[email protected]" | |
$Pass = "[email protected]" | |
Function Get-FtpDirectory($Directory) { | |
# Credentials | |
$FTPRequest = [System.Net.FtpWebRequest]::Create("$($Server)$($Directory)") | |
$FTPRequest.Credentials = New-Object System.Net.NetworkCredential($User,$Pass) | |
$FTPRequest.Method = [System.Net.WebRequestMethods+FTP]::ListDirectoryDetails |
.sap-green { | |
background-color: #0A3410; | |
} | |
.sap-green-text { | |
color: #0A3410; | |
} | |
.sap-green-border { | |
border-color: #0A3410; | |
} |
# Backup | |
docker exec CONTAINER /usr/bin/mysqldump -u root --password=root DATABASE > backup.sql | |
# Restore | |
cat backup.sql | docker exec -i CONTAINER /usr/bin/mysql -u root --password=root DATABASE | |
options rtl8821ae debug=0 disable_watchdog=N fwlps=N swlps=Y swenc=Y ips=N msi=0 |
This is about documenting getting Linux running on the late 2016 and mid 2017 MPB's; the focus is mostly on the MacBookPro13,3 and MacBookPro14,3 (15inch models), but I try to make it relevant and provide information for MacBookPro13,1, MacBookPro13,2, MacBookPro14,1, and MacBookPro14,2 (13inch models) too. I'm currently using Fedora 27, but most the things should be valid for other recent distros even if the details differ. The kernel version is 4.14.x (after latest update).
The state of linux on the MBP (with particular focus on MacBookPro13,2) is also being tracked on https://github.com/Dunedan/mbp-2016-linux . And for Ubuntu users there are a couple tutorials (here and here) focused on that distro and the MacBook.
Note: For those who have followed these instructions ealier, and in particular for those who have had problems with the custom DSDT, modifying the DSDT is not necessary anymore - se