Skip to content

Instantly share code, notes, and snippets.

@7696122
7696122 / nix-on-macos-catalina.md
Created October 29, 2021 22:06 — forked from chriselsner/nix-on-macos-catalina.md
Nix on macOS Catalina

Nix on macOS Catalina

I'm writing this gist for my own records but it might help someone else too.

Installing Nix

Support for Catalina has improved a lot since the update was first rolled out.

Note: See the NixOS manual for discussion of the --darwin-use-unencrypted-nix-store-volume option.

How we incorporate next and cloudfront (2018-04-21)

Feel free to contact me at [email protected] or tweet at me @statisticsftw

This is a rough outline of how we utilize next.js and S3/Cloudfront. Hope it helps!

It assumes some knowledge of AWS.

Goals

@7696122
7696122 / web-servers.md
Created June 1, 2016 21:28 — forked from willurd/web-servers.md
Big list of http static server one-liners

Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.

Discussion on reddit.

Python 2.x

$ python -m SimpleHTTPServer 8000
@7696122
7696122 / screen.clj
Last active August 29, 2015 14:18 — forked from jhartikainen/screen.clj
(import
'(java.awt Rectangle Dimension Robot Toolkit)
'(java.awt.image BufferedImage)
'(java.io File IOException)
'(javax.imageio ImageIO))
(defn take-screenshot []
(let [screen (.getScreenSize (Toolkit/getDefaultToolkit))
rt (new Robot)
img (.createScreenCapture rt (new Rectangle (int (.getWidth screen)) (int (.getHeight screen))))]
@7696122
7696122 / vote.pl
Created December 26, 2012 15:42 — forked from keedi/vote.pl
#!/usr/bin/env perl
use 5.010;
use utf8;
use strict;
use warnings;
use Web::Query;
my $url = 'http://info.nec.go.kr/electioninfo/electionInfo_report.action?electionId=0020121219&requestURI=%2Felectioninfo%2F0020121219%2Fvc%2Fvcvp01.jsp&topMenuId=VC&secondMenuId=VCVP&menuId=VCVP01&statementId=VCVP01_%231&sggTime=20%EC%8B%9C&cityCode=0&timeCode=0&x=34&y=18';
@7696122
7696122 / theme.html
Created December 25, 2012 15:08 — forked from soemarko/theme.html
embed github gist to tumblr
<!-- Add the following lines to theme's html code right before </head> -->
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.0/jquery.min.js"></script>
<script src="http://static.tumblr.com/fpifyru/VCxlv9xwi/writecapture.js"></script>
<script src="http://static.tumblr.com/fpifyru/AKFlv9zdu/embedgist.js"></script>
<!--
Usage: just add <div class="gist">[gist URL]</div>
Example: <div class="gist">https://gist.github.com/1395926</div>
-->