Update apt index
apt-get update
Extract package into directory
dpkg-deb -x mypackage.deb dstDir
Find installed packages
Update apt index
apt-get update
Extract package into directory
dpkg-deb -x mypackage.deb dstDir
Find installed packages
After automatically updating Postgres to 10.0 via Homebrew, the pg_ctl start command didn't work. | |
The error was "The data directory was initialized by PostgreSQL version 9.6, which is not compatible with this version 10.0." | |
Database files have to be updated before starting the server, here are the steps that had to be followed: | |
# need to have both 9.6.x and latest 10.0 installed, and keep 10.0 as default | |
brew unlink postgresql | |
brew install [email protected] | |
brew unlink [email protected] | |
brew link postgresql |
<?xml version="1.0" encoding="UTF-8"?> | |
<opml version="1.0"> | |
<head> | |
<title>Graphics, Games, Programming, and Physics Blogs</title> | |
</head> | |
<body> | |
<outline text="Tech News" title="Tech News"> | |
<outline type="rss" text="Ars Technica" title="Ars Technica" xmlUrl="http://feeds.arstechnica.com/arstechnica/index/" htmlUrl="https://arstechnica.com"/> | |
<outline type="rss" text="Polygon - Full" title="Polygon - Full" xmlUrl="http://www.polygon.com/rss/index.xml" htmlUrl="https://www.polygon.com/"/> | |
<outline type="rss" text="Road to VR" title="Road to VR" xmlUrl="http://www.roadtovr.com/feed" htmlUrl="https://www.roadtovr.com"/> |
#!/bin/sh | |
defaults read com.apple.finder CreateDesktop > /dev/null 2>&1 | |
enabled=$? | |
if [ "$1" = "off" ]; then | |
if [ $enabled -eq 1 ]; then | |
defaults write com.apple.finder CreateDesktop false | |
osascript -e 'tell application "Finder" to quit' | |
open -a Finder |
First get the Interface mac address, then use that to run the full command
INTERFACE=$(curl --silent http://169.254.169.254/latest/meta-data/network/interfaces/macs/)
SUBNET_ID=$(curl --silent http://169.254.169.254/latest/meta-data/network/interfaces/macs/${INTERFACE}/subnet-id)
VPC_ID=$(curl --silent http://169.254.169.254/latest/meta-data/network/interfaces/macs/${INTERFACE}/vpc-id)
echo SUBNET_ID
Updated: Just use qutebrowser (and disable javascript). The web is done for.
* |
def fetch_contents(queue = "default", max = 100000) | |
Sidekiq.redis do |r| | |
r.lrange("queue:#{queue}", 0, max) | |
end; | |
end | |
def sidekiq_job_breakdown(queue = "default", contents = nil) | |
re = /\"class":"([0-9A-Za-z_::]+)"/ | |
contents ||= fetch_contents(queue) |
# For training rest 5 min on compounds, 3-5 minutes on smaller ones | |
# Training A (first set to failure, second set -10% weight + 1 rep): | |
# Deadlift - 2x4-5 | |
# Overhead Press - 1x6-8 | |
# Weighted Chinup - 2x4-6 | |
# Chest-Supported Rows - 2x6-8 | |
# Close-grip chinup - 1x6-10 | |
# Training B (first set to failure, second set -10% weight + 1 rep): |
# Create new file trough vim in the following directory | |
sudo vim /usr/share/applications/sublime.desktop | |
#Put the following file contents and replace with the path to your Sublime Text | |
[Desktop Entry] | |
Version=1.0 | |
Name=Sublime Text 2 | |
# Only KDE 4 seems to use GenericName, so we reuse the KDE strings. | |
# From Ubuntu's language-pack-kde-XX-base packages, version 9.04-20090413. | |
GenericName=Text Editor |