Skip to content

Instantly share code, notes, and snippets.

View Meshiest's full-sized avatar
🍰

Isaac H Meshiest

🍰
View GitHub Profile
@dword4
dword4 / imgur2pdf.py
Last active January 22, 2024 19:17
Convert imgur album to a pdf file
#!/usr/bin/python
from imgurpython import ImgurClient
from PIL import Image
from creds import *
import PIL
from reportlab.pdfgen import canvas
from reportlab.platypus import SimpleDocTemplate, Paragraph, Image, Spacer, PageBreak
from reportlab.lib.styles import getSampleStyleSheet, ParagraphStyle
from reportlab.lib.pagesizes import letter
from reportlab.lib.units import inch

Forward GnuPG agent from macOS to Linux

On the remote machine

Run gpg once as your to create the directory structure

gpg --list-keys

For headless systemd based hosts

@Towkin
Towkin / GeneratedTerrainShader.shader
Created August 15, 2018 21:05
A simple terrain generator shader. You need to get a simplex noise shader from https://github.com/keijiro/NoiseShader that fits your platform, by default this is intended for HLSL.
Shader "Custom/GeneratedTerrainShader" {
CGINCLUDE
#include "Tessellation.cginc"
#include "HLSL/SimplexNoise3D.hlsl"
ENDCG
Properties {
_Tess("Tessellation", Range(1,128)) = 4
_HeightOctaves("Height Octaves", Range(1, 16)) = 8
@seisvelas
seisvelas / fib.c
Last active December 10, 2018 20:13
Learnin' C
#include <stdlib.h>
int main(void) {
int edi = 5; // nth fib num
int ebx = 0;
int eax = 1;
int edx; // tmp
start_loop:
--edi;