Skip to content

Instantly share code, notes, and snippets.

@schas002
schas002 / README.md
Last active May 15, 2018 11:07
A generic README for CWEB literate programs.

[name]

[synopsis]

[description]

Install

[name] is a CWEB literate program. It can be ctangled to make a C source code file:

@schas002
schas002 / LICENSE
Created April 20, 2018 11:35
Radically clean binaries/logs/etc. w/ a single command
MIT License
Copyright (c) 2018-2018, Andrew Zyabin
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
@schas002
schas002 / AutoHotkey.ahk
Last active May 4, 2018 10:47
my AutoHotkey.ahk hotstring file
#NoEnv
#Warn
SendMode Input
::gm::Good morning
::gn::Good night
::owob::(*>ω<)b
::hd::HIGH DEFINITION
::qed::∎
::shrug::¯\_(ツ)_/¯
@schas002
schas002 / issue-labels.csv
Last active February 25, 2018 14:38
Default GitHub issue labels.
label name color descript
bug #d73a4a Something isn't working
duplicate #cfd3d7 This issue or pull request already exists
enhancement #a2eeef New feature or request
good first issue #7057ff Good for newcomers
help wanted #008672 Extra attention is needed
invalid #e4e669 This doesn't seem right
question #d876e3 Further information is requested
wontfix #ffffff This will not be worked on
@schas002
schas002 / bridged-network.md
Created December 7, 2017 20:00
A bridged network

With bridged networking, your computer literally uses traffic from a host computer that receives and sends the traffic from somewhere else.

local network at 192.168.123.1
subnet mask is 255.255.255

+---------+  +-------+  +---------+
| +-----+ +--+bridged+--+ +-----+ |
| |     | |             | |     | |
| | 101 | | | | 100 | +--&gt; Internet
@schas002
schas002 / nat-only-network.md
Last active December 7, 2017 19:45
A NAT-only network

Unless you have a home network, your computer will be connected something like this:

local network at 192.168.123.1
subnet mask is 255.255.255

-----------
| ------- +--> NAT
| |     | |
| | 100 | |

Keybase proof

I hereby claim:

  • I am schas002 on github.
  • I am zyabin101 (https://keybase.io/zyabin101) on keybase.
  • I have a public key ASALNNNQHfUocfoYaXagJ5Vs6-OfzF32ODyOJ_vRGAub4wo

To claim this, I am signing this object:

@schas002
schas002 / hash-brown.scad
Created October 5, 2017 11:53
OpenSCAD 'hash brown' model.
FONT = "Roboto"; // or any other font
SIZE = 15; // resize to your heart's content
union() {
difference() {
cube([20, 20, 1], true);
translate([0, 0, 0.4]) {
cube([19, 19, 0.2], true);
}
}
@schas002
schas002 / cup.scad
Last active October 5, 2017 10:35
OpenSCAD cup model.
difference() {
union() {
difference() {
sphere(20);
translate([0, 0, 20]) {
cube(40, true);
}
}
translate([15, 0, -10]) {
rotate([90, 0, 0]) {
@schas002
schas002 / zuid.js
Created October 4, 2017 11:47
Humble one-liner to generate UIDs in vanilla.
module.exports = _ => new Date().getTime().toString(36) + '.' + (Math.random() * Math.pow(2, 32)).toString(36);