Skip to content

Instantly share code, notes, and snippets.

@leafstorm
leafstorm / packages.txt
Created August 6, 2014 22:37
Command-line packages to download on Red Hat family machines
nano
fish
tmux
man-pages
ntfs-3g
ack
tree
dos2unix
parallel
unzip
@leafstorm
leafstorm / streamncv.py
Created November 12, 2014 17:52
Python script for decoding NCSBE voter data
#!/usr/bin/env python3
"""
streamncv.py
============
Translates from latin-1 tab-separated-values to UTF-8 comma-separated values
on the fly, without trying to allocate the entire file.
It also prints progress updates.
"""
import csv
@leafstorm
leafstorm / tillis-letter.txt
Created February 4, 2015 03:15
Letter to Sen. Thom Tillis regarding his recent statements on hand-washing.
Dear Sen. Tillis,
While it may be the case that some unnecessary regulations are overburdening
our small businesses, the idea that requiring employees to wash their hands
after using the bathroom is unnecessary is completely disgusting. Washing
hands is acknowledged by every medical authority ever as a critical way to
prevent the spread of germs and other contaminants. The idea that public
establishments should be able to forgo such requirements shows a serious
lack of concern for the health of your constituents. I strongly encourage
you to apologize for your use of hand-washing as an example of an "unnecessary
@leafstorm
leafstorm / shapefile-urls.txt
Created April 6, 2015 16:03
The URL's to every shapefile offered for download by Wake County. `wget -i shapefile-urls.txt`
ftp://wakeftp.co.wake.nc.us/GIS/WebDownloads/SHAPEFILES/Raleigh_Buildings_2013.zip
ftp://wakeftp.co.wake.nc.us/GIS/WebDownloads/SHAPEFILES/Raleigh_Communications_2013.zip
ftp://wakeftp.co.wake.nc.us/GIS/WebDownloads/SHAPEFILES/Raleigh_ElectricUtilities_2013.zip
ftp://wakeftp.co.wake.nc.us/GIS/WebDownloads/SHAPEFILES/Raleigh_FireResponse_2015_02.zip
ftp://wakeftp.co.wake.nc.us/GIS/WebDownloads/SHAPEFILES/Raleigh_Hydrology_2013.zip
ftp://wakeftp.co.wake.nc.us/GIS/WebDownloads/SHAPEFILES/Raleigh_HydrologyAreas_2013.zip
ftp://wakeftp.co.wake.nc.us/GIS/WebDownloads/SHAPEFILES/Raleigh_MiscLines_2013.zip
ftp://wakeftp.co.wake.nc.us/GIS/WebDownloads/SHAPEFILES/Raleigh_MiscPolys_2013.zip
ftp://wakeftp.co.wake.nc.us/GIS/WebDownloads/SHAPEFILES/Raleigh_Parking_2013.zip
ftp://wakeftp.co.wake.nc.us/GIS/WebDownloads/SHAPEFILES/Raleigh_Railroads_2013.zip
@leafstorm
leafstorm / print-server.md
Created April 11, 2017 02:09
How to set up a CUPS print server running Fedora Server for an HP printer, and connect to it from your Fedora Workstation:

How to set up a CUPS print server running Fedora Server for an HP printer, and connect to it from your Fedora Workstation:

Run these commands on the server:

dnf install cups hplip
systemctl start cups
firewall-cmd --zone=FedoraServer --add-service=ipp
firewall-cmd --zone=FedoraServer --add-service=ipp --permanent

Then go to the CUPS Web admin at http://[server]:631 and go to the "Administration" page.