Skip to content

Instantly share code, notes, and snippets.

Andrew Zyabin schas002

Block or report user

Report or block schas002

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
@schas002
schas002 / README.md
Last active May 15, 2018
A generic README for CWEB literate programs.
View README.md

[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 Apr 20, 2018
Radically clean binaries/logs/etc. w/ a single command
View LICENSE
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
my AutoHotkey.ahk hotstring file
View AutoHotkey.ahk
#NoEnv
#Warn
SendMode Input
::gm::Good morning
::gn::Good night
::owob::(*>ω<)b
::hd::HIGH DEFINITION
::qed::∎
::shrug::¯\_(ツ)_/¯
@schas002
schas002 / issue-labels.csv
Last active Feb 25, 2018
Default GitHub issue labels.
View issue-labels.csv
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
View bridged-network.md

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 | +--> Internet
@schas002
schas002 / nat-only-network.md
Last active Dec 7, 2017
A NAT-only network
View nat-only-network.md

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 | |
View keybase.md

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 Oct 5, 2017
OpenSCAD 'hash brown' model.
View hash-brown.scad
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 Oct 5, 2017
OpenSCAD cup model.
View cup.scad
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 Oct 4, 2017
Humble one-liner to generate UIDs in vanilla.
View zuid.js
module.exports = _ => new Date().getTime().toString(36) + '.' + (Math.random() * Math.pow(2, 32)).toString(36);
You can’t perform that action at this time.