Skip to content

Instantly share code, notes, and snippets.

Teran McKinney teran-mckinney

Block or report user

Report or block teran-mckinney

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View knife-sheath.scad
$fn = 100;
// Old German knife
blade_length = 108;
blade_width = 28;
// Izula
// blade_length = 70;
// blade_width = 29;
blade_thickness = 4.2;
View knife-holster.scad
$fn = 100;
knife_length = 120;
knife_width = 26;
knife_thickness = 4;
holster_length = knife_length + 10;
holster_width = knife_width + 12;
holster_thickness = knife_thickness + 4;
View 32long_grabber.stl
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View surf-ipfs-diff.c
diff -Naur surf-0.7/surf.c surf-0.7-new/surf.c
--- surf-0.7/surf.c 2015-12-19 14:59:30.000000000 +0000
+++ surf-0.7-new/surf.c 2016-04-25 03:12:03.448015000 +0000
@@ -837,6 +837,10 @@
rp = realpath(uri, NULL);
u = g_strdup_printf("file://%s", rp);
free(rp);
+ } else if (g_str_has_prefix(uri, "ipfs://")) {
+ GRegex *regex;
+ regex = g_regex_new("^ipfs://", 0, 0, NULL);
View gist:5b0ea9942afd35ec3732
# cat /usr/local/etc/tor/torrc
#ORPort [2001:19f0:ac00:aa2:5400:ff:fe1f:5204]:443
#ORPort 443
HiddenServiceDir /usr/local/etc/tor/hidden_service/
HiddenServicePort 80 [::1]:80
#Nickname BuiltAutomatically
#RelayBandwidthRate 1024 KB
#RelayBandwidthBurst 1024 KB
#ContactInfo IThinkIWasBuiltAutomatically
ExitPolicy reject *:*
@teran-mckinney
teran-mckinney / bouncing-balls.c
Created Feb 7, 2016
Bouncing ball effect in a TTY
View bouncing-balls.c
/* In response to: https://voat.co/v/CodeBoast/comments/830756 */
/* */
/* Code released into the public domain by Teran McKinney. */
/* 2016-02-07 */
#include <unistd.h>
#define ROWS 80 /* Width of terminal. */
#define REFRESH 16000 /* Microseconds between draws. */
You can’t perform that action at this time.