Skip to content

Instantly share code, notes, and snippets.

@unixpickle
unixpickle / predictions.md
Last active June 22, 2016 13:00
Future predictions

Abstract

Sometimes, I feel like a homeless person on the street forecasting an upcoming apocalypse. Unlike homeless people, however, I have a Github account and plan on using it to document my predictions.

10 year predictions

  • The tablet, phone, and laptop computer will have a retarded love child, call it the lablet.
  • The lablet will probably run on an ARM processor, unless Intel gets their mobile shit together.
  • Apple's lablet will run a modified OS which is just as "locked down" as the present iOS.
@unixpickle
unixpickle / burger.svg
Created December 26, 2015 05:25
Hamburger. Yum.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@joepie91
joepie91 / vpn.md
Last active May 17, 2025 02:36
Don't use VPN services.

Don't use VPN services.

No, seriously, don't. You're probably reading this because you've asked what VPN service to use, and this is the answer.

Note: The content in this post does not apply to using VPN for their intended purpose; that is, as a virtual private (internal) network. It only applies to using it as a glorified proxy, which is what every third-party "VPN provider" does.

  • A Russian translation of this article can be found here, contributed by Timur Demin.
  • A Turkish translation can be found here, contributed by agyild.
  • There's also this article about VPN services, which is honestly better written (and has more cat pictures!) than my article.
@unixpickle
unixpickle / snowman.svg
Last active November 2, 2015 22:08
Snowman
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@unixpickle
unixpickle / main.clj
Created November 1, 2015 15:27
Probabilistic brute force
;; If I want to guess an N-bit number and I can guess each bit with
;; P% accuracy, how many guesses will I have to make before I guess
;; correctly? This program answers such questions.
;;
;; Example usage: lein run 6/10 512 # 6/10 probability for each of 512 bits.
(ns prob-brute-force.core)
(defn choose
[a b]
@Two9A
Two9A / decronym.php
Last active January 22, 2025 17:46
Decronym: A simple Reddit bot
<?php
/**
* Dirty, dirty Reddit bot: Decronym
*/
class Reddit {
const USERNAME = 'Decronym';
const PASSWORD = '***';
const CLIENTID = '***';
const SECRET = '***';
@johngrasty
johngrasty / crashplan-lx.md
Last active September 3, 2015 14:53
Running Crashplan in an LX zone headless with UI on Mac OS X

History

Originally I installed Crashplan 3.7 in an LX zone. The data to be backed up was from my home NAS (a fileserver zone with netatalk and samba running) that was lofs mounted into the crashplan zone. Eventually I moved the data for the NAS into the globalzone and mounted it into both the "fileserver" zone and crashplan zone using lofs. This eliminated problems with boot order of the zones. I recently updated Crashplan from 3.7 to 4.3. I followed the Linux instructions on the Crashplan website---seemingly without issue.

Environment

  • platform: joyent_20150813T164025Z
  • lx image UUID: c8d68a9e-4682-11e5-9450-4f4fadd0936d (Ubuntu 14.04)
  • lofs mount into lx zone using of data to be backup (using the ro option just in case something goes haywire with Crashplan):
@haasn
haasn / about:config.md
Last active December 27, 2024 15:46
Firefox bullshit removal via about:config

Firefox bullshit removal

Updated: Just use qutebrowser (and disable javascript). The web is done for.

anonymous
anonymous / blockerList.json
Created June 25, 2015 00:05
Testing Safari Content Blocker on iMore.com
[
{
"action": {
"type": "block"
},
"trigger": {
"url-filter": ".*",
"resource-type": ["script"],
"load-type": ["third-party"],
"if-domain": ["imore.com"]
@bahamat
bahamat / pipasswd
Last active January 5, 2017 19:45
Find the SmartDataCenter default root password for any installed platform image.
#!/bin/bash
if (( UID > 0 )); then
echo "You must elevate privileges."
exit 1
fi
usbkey_status=$(/opt/smartdc/bin/sdc-usbkey status)
passwd_file=/mnt/usbkey/private/root.password.$1