From | To | Expression |
---|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use std::process::Command; | |
fn main() { | |
let tailwind_cmd = "npx tailwindcss -i input.css -o assets/app.css"; | |
if cfg!(target_os = "windows") { | |
Command::new("cmd").arg("/C").arg(tailwind_cmd).status() | |
} else { | |
Command::new("sh").arg("-c").arg(tailwind_cmd).status() | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- Use Instapaper to export a CSV file of your articles. | |
-- Must have Numbers to open it in. | |
-- Will create PDF documents in /Instapaper/<your folder in Instapaper> groups. | |
-- Be sure to select an open database in DT Pro before you run this. | |
-- | |
-- Created by Annard Brouwer, 24/08/2014 | |
-- | |
-- This program is free software released "as-is"; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. | |
-- This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. | |
-- Get a copy of the GNU General Public License by writing to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# The blog post that started it all: https://neocities.org/blog/the-fcc-is-now-rate-limited | |
# | |
# Current known FCC address ranges: | |
# https://news.ycombinator.com/item?id=7716915 | |
# | |
# Confirm/locate FCC IP ranges with this: http://whois.arin.net/rest/net/NET-165-135-0-0-1/pft | |
# | |
# In your nginx.conf: | |
location / { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cookbook 'apt' | |
cookbook 'monit' | |
cookbook 'logstash', git: 'git://github.com/lusis/chef-logstash.git' |
This article is now published on my website: Prefer Subshells for Context.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import asyncore, asynchat | |
import email | |
import re | |
import smtpd | |
import sqlite3 | |
import socket, string | |
import StringIO, mimetools | |
# HTTP based on examples at http://effbot.org/librarybook/asynchat.htm | |
class HTTPChannel(asynchat.async_chat): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- taken from http://en.wikipedia.org/wiki/List_of_United_States_cities_by_population --> | |
<tr> | |
<td align="center">1</td> | |
<td><a href="/wiki/New_York_City" title="New York City">New York City</a></td> | |
<td><a href="/wiki/New_York" title="New York">New York</a></td> | |
<td align="right"><span style="display:none">&0000000008391881.000000</span>8,391,881</td> | |
</tr> | |
<tr> | |
<td align="center">2</td> | |
<td><a href="/wiki/Los_Angeles" title="Los Angeles">Los Angeles</a></td> |