Skip to content

Instantly share code, notes, and snippets.

View nytpu's full-sized avatar

nytpu nytpu

View GitHub Profile
@nytpu
nytpu / md.md
Created January 30, 2022 15:12

**md *is great

#!/usr/bin/env sh
# a very basic gemini cgi script
# taken from an old commit of bashblog (https://tildegit.org/team/bashblog)
# send gemini response header
printf "20 text/gemini\r\n"
printf "my bashblog posts\r\n"
user=$(stat -c '%U' .)
for post in $(ls -t *.md); do

Keybase proof

I hereby claim:

  • I am nytpu on github.
  • I am nytpu (https://keybase.io/nytpu) on keybase.
  • I have a public key ASBUO3Kk2JaNtOvFUXyoaEzSduufdJA__NiG_9O4Y7UMTQo

To claim this, I am signing this object:

class LogicGate:
def __init__(self,n):
self.name = n
self.output = None
def getLabel(self):
return self.name
def getOutput(self):
/* Photo Printing Dev Timer *
* by nytpu */
/*
* Warning: this was written in a very short time, all in one day,
* so it's not necessarily quality code. I see *at least* three
* places that I could significantly refactor it, but I'm lazy and
* it still works without any significant bugs.
*
* For more info, check out my write-up at:
@nytpu
nytpu / darkmode.css
Created May 16, 2020 16:37
Darkmode CSS for Qutebrowser
* {
border-color: #657b83 !important;
}
a {
color: #268bd2 !important;
}
a:visited {
color: #6c71c4 !important;
}
body {
@nytpu
nytpu / aether_on_linux.md
Last active May 9, 2020 15:54
Compiling Aether on Arch Linux

The author of Aether now has pushed some fixes, read his easier to follow instructions here: https://gist.github.com/nehbit/4a8c3d81d543e85c9df974f521732b1e

This thing is based off of this, this, and this.

I'm planning to put it on the AUR sometime hopefully, so we'll see how that goes.

To start, I'm assuming you're on Arch, but it should be easy to adapt this to most Linux distros. Also, depending on when you're reading this, these patches have a high chance of not working after and Aether update or if grpc gets an update or if anything changes in the slightest.

Dependencies (that I know of): nvm (AUR package), nodejs, binutils, clang, go, docker
You also need aether_git.patch and [aether_grpc.patch](https://gist.github.com/nytpu/47022045f3adee98c6ee2eaeebcb5

@nytpu
nytpu / aether_grpc.patch
Created May 4, 2020 06:03
Fix grpc in Aether to get to compile under Linux
diff -ruN node_modules/grpc/binding.gyp grpc/binding.gyp
--- node_modules/grpc/binding.gyp 1985-10-26 02:15:00.000000000 -0600
+++ grpc/binding.gyp 2020-05-03 23:41:17.531449701 -0600
@@ -60,7 +60,6 @@
'-g',
'-Wall',
'-Wextra',
- '-Werror',
'-Wno-long-long',
'-Wno-unused-parameter',
@nytpu
nytpu / aether_git.patch
Created May 4, 2020 06:02
Patch to Aether to allow it to compile under Linux
diff --git a/aether-core/aether/client/src/app/components/a-breadcrumbs.vue b/aether-core/aether/client/src/app/components/a-breadcrumbs.vue
index f89b94e..cebfba5 100644
--- a/aether-core/aether/client/src/app/components/a-breadcrumbs.vue
+++ b/aether-core/aether/client/src/app/components/a-breadcrumbs.vue
@@ -3,7 +3,7 @@
<router-link class="breadcrumb root" to="/" title="Home">
<img
class="root-img"
- src="../ext_dep/images/logo-sm-h.png"
+ src="../ext_dep/images/Logo-sm-h.png"