Skip to content

Instantly share code, notes, and snippets.

Teran McKinney teran-mckinney

View GitHub Profile
@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. */
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 *:*
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 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 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 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 gist:d8643c00f2a5b079abe8cb06cca2d37c
root@hiddengobeyond-1:~# grep '27/Nov/2019:14:' /var/log/nginx/access.log | cut -d [ -f 2 | cut -d ] -f 1
27/Nov/2019:14:00:57 +0000
27/Nov/2019:14:00:58 +0000
27/Nov/2019:14:00:59 +0000
27/Nov/2019:14:01:03 +0000
27/Nov/2019:14:01:04 +0000
27/Nov/2019:14:01:05 +0000
27/Nov/2019:14:01:05 +0000
27/Nov/2019:14:01:12 +0000
27/Nov/2019:14:01:13 +0000
You can’t perform that action at this time.