[root@btrfs-testdrive] # btrfs qgroup create 1/100 /mnt/btrfs
[root@btrfs-testdrive] # btrfs qgroup assign 0/276 1/100 /mnt/btrfs
[root@btrfs-testdrive] # btrfs qgroup show /mnt/btrfs
qgroupid rfer excl
-------- ---- ----
0/5 16384 16384
0/256 2864136192 2864136192
0/258 833703936 833703936
0/259 52510720 52510720 | # IE is still braindead so still use favicon.ico | |
| convert -resize x16 -gravity center -crop 16x16+0+0 -flatten -colors 256 input.png output-16x16.ico | |
| convert -resize x32 -gravity center -crop 32x32+0+0 -flatten -colors 256 input.png output-32x32.ico | |
| convert output-16x16.ico output-32x32.ico favicon.ico | |
| # Then, HTML needs to specify size="XxY" as largest size due to browser bugs | |
| <link rel="shortcut icon" href="/favicon.ico" sizes="32x32"> |
| # Hello, and welcome to makefile basics. | |
| # | |
| # You will learn why `make` is so great, and why, despite its "weird" syntax, | |
| # it is actually a highly expressive, efficient, and powerful way to build | |
| # programs. | |
| # | |
| # Once you're done here, go to | |
| # http://www.gnu.org/software/make/manual/make.html | |
| # to learn SOOOO much more. |
It's over 9 years old (as of 2024-02-18), there are many better guides! You might like https://rust-unofficial.github.io/too-many-lists/
% Let's build a binary tree!
Let's build a binary tree of strings in Rust. To recap, each node in a binary tree:
- must have a value
| # FBTFT xorg config file | |
| # | |
| # startx -- -layout TFT | |
| # startx -- -layout HDMI | |
| # | |
| # startx | |
| # When -layout is not set, the first is used: TFT | |
| # | |
| Section "ServerLayout" |
| #!/usr/bin/env bash | |
| # | |
| # script to stop vagrant box for use with systemd | |
| # place scripts into /usr/lib/systemd/scripts/ | |
| # be sure to put the .service file in /lib/systemd/system/ | |
| # | |
| # -- Geoffrey McClinsey | |
| VAGRANTUSR=vagrant # user you want vagrant box to run as | |
| VAGRANTBOXPATH= # add path to Vagrantfile |
NOTE: the content is out-of-date. All development is moved to the https://github.com/yurydelendik/wasmception
# locations, e.g.
export WORKDIR=~/llvmwasm; mkdir -p $WORKDIR
export INSTALLDIR=$WORKDIR
How to download, import, and analyze San Francisco restaurant inspection data using SQLite3 and csvkit from the command-line.
A quick example of doing data wrangling from the command-line, as well as getting to know one of San Francisco's data sets: the San Francisco restaurant inspections, courtesy of the SF Department of Public Health. I don't normally do database work from the command-line, but importing bulk data into SQLite is pretty frustrating using the available GUIs or just the shell.
So thank goodness for Christopher Groskopf's csvkit, a suite of Unix-like tools that use Python to robustly handle CSV files. There's a lot of great tools in csvkit, but for this gist, I just use csvsql, which can parse a CSV and turn it into properly-flavored SQL to pass directly into your database app of choice.
| import Control.Monad.State | |
| import Text.Printf | |
| initiallyRequired = 0.3 | |
| maintenanceRequired = 0.15 | |
| takerFee = 0.002 | |
| type Amount = Double | |
| type Price = Double |
| @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>. | |
| @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#>. | |
| @prefix xsd: <http://www.w3.org/2001/XMLSchema#>. | |
| @prefix xml: <http://www.w3.org/XML/1998/namespace>. | |
| @prefix owl: <http://www.w3.org/2002/07/owl#>. | |
| @prefix vs: <http://www.w3.org/2003/06/sw-vocab-status/ns#>. | |
| @prefix foaf: <http://xmlns.com/foaf/0.1/>. | |
| @prefix wot: <http://xmlns.com/wot/0.1/>. | |
| @prefix dc: <http://purl.org/dc/elements/1.1/>. |