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
| [I ran across these on a Unix salesman's wall and haven't seen them posted | |
| before. I modified them here and there. Followups are in net.jokes.] | |
| People who come into contact with the Unix system are often told, | |
| "If you have trouble, see so-and-so, he's a guru", or "Bob there is | |
| a real Unix hacker." | |
| What is a "Unix Wizard"? How does s/he differ from a "guru"? | |
| To explore these and other questions, here is a draft of the "Unix Hierarchy": |
| 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 postgresql@9.6 | |
| brew unlink postgresql@9.6 | |
| 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_IDUpdated: 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): |