Skip to content

Instantly share code, notes, and snippets.

using gnu

Ishimoto Shinobu protonesso

using gnu
View GitHub Profile
zliuva / gist:1084476
Last active May 19, 2021
A minimal Mach-o x64 executable for OS X
View gist:1084476
; A minimal Mach-o x64 executable for OS X (also see below Mountain Lion version)
; $ nasm -f bin -o tiny_hello tiny_hello.s
; $ chmod +x tiny_hello
; $ ./tiny_hello
; Hello World!
; $
; c.f.
; ( the original tiny mach-o executable )
View gist:1396569
* Represents black
* Represents dark blue
* Represents dark green
View clang-uclibc.patch
Index: lib/Driver/Tools.cpp
--- lib/Driver/Tools.cpp (revision 181993)
+++ lib/Driver/Tools.cpp (working copy)
@@ -6007,8 +6007,12 @@
else if (ToolChain.getArch() == llvm::Triple::mips ||
- ToolChain.getArch() == llvm::Triple::mipsel)
- CmdArgs.push_back("/lib/");
rofl0r / init.c
Created Aug 6, 2013
minimal init daemon by rich felker, author of musl libc
View init.c
#define _XOPEN_SOURCE 700
#include <signal.h>
#include <unistd.h>
int main()
sigset_t set;
int status;
if (getpid() != 1) return 1;
shamil /
Last active Jul 22, 2021
How to mount a qcow2 disk image

How to mount a qcow2 disk image

This is a quick guide to mounting a qcow2 disk images on your host server. This is useful to reset passwords, edit files, or recover something without the virtual machine running.

Step 1 - Enable NBD on the Host

modprobe nbd max_part=8

channel operator quick reference

direct discussion about administrative action away from the main channel and into #reddit-diabetes-ops to minimise disruption. our -ops channel is the place where users should come to ask for our help. examples:

  • any sort of operator request or discussion of channel administration in the main channel
  • PMs asking why a ban was set
  • reports of harassment (unless the user is confiding in you)
  • any request for operator action

changing channel access permissions

Zenithar / dnscrypt-proxy
Last active May 17, 2021
Unbound + DNSCrypt configuration
View dnscrypt-proxy
acapola / aes-ni.c
Created Aug 31, 2015
AES128 how-to using GCC and Intel AES-NI
View aes-ni.c
#include <stdint.h> //for int8_t
#include <string.h> //for memcmp
#include <wmmintrin.h> //for intrinsics for AES-NI
//compile using gcc and following arguments: -g;-O0;-Wall;-msse2;-msse;-march=native;-maes
//internal stuff
#define DO_ENC_BLOCK(m,k) \
View fsharp-tutorial.fs
// This sample will guide you through elements of the F# language.
// *******************************************************************************************************
// To execute the code in F# Interactive, highlight a section of code and press Alt-Enter in Windows or
// Ctrl-Enter Mac, or right-click and select "Send Selection to F# Interactive".
// You can open the F# Interactive Window from the "View" menu.
// *******************************************************************************************************
// For more about F#, see: