Skip to content

Instantly share code, notes, and snippets.

View Scherso's full-sized avatar
💭
crabs?

Sam Scherso

💭
crabs?
  • Washington, D.C.
  • 12:08 (UTC -04:00)
View GitHub Profile

Writing C Software without the Standard Library
FOR UN*X


There are many tutorials on the web that explain how to build a simple "Hello, World" in C without the use of libc on AMD64, but most of them stop there.

This guide hopes to provide a more complete explanation that will allow you to build yourself a small framework to write more complex programs. The code will support both AMD64, and i386.

@Scherso
Scherso / xmonadwinefix.md
Last active February 11, 2023 19:28
Fix for the "Wine System Tray" appearing on XMonad when using Wine.

Wine System Tray Fix for Xmonad

If you have used Xmonad and Wine on any Windows applications, you have probably noticed a window popping up with a logo of the app you're using. Here's a fix.

  • Firsty, find your xmonad.hs file, and edit it with your editor of choice.
@Scherso
Scherso / WaysToBrickAUnixSystem.md
Last active May 7, 2023 01:02
Guide to installing OpenBSD

Ways To Not Use Your Unix Machine

(Run these as root :trollface:)

rm Remove Command

@Scherso
Scherso / MacBook-Air-9-1-T2-Arch-Install.md
Last active December 31, 2023 17:45
Macbook Air 2020 T2 Arch Linux Installation Guide
@sxiii
sxiii / install-anydesk-arch.md
Last active May 6, 2024 10:10
How to install AnyDesk on ArchLinux / Manjaro / Garuda so somebody can help you fix or configure it

How to install AnyDesk on ArchLinux / Manjaro / Garuda so somebody can help you fix or configure it


sudo pacman -Sy
sudo pacman -S glibc lib32-glibc
sudo pacman -S yay
yay -S anydesk-bin

@m0n4d1
m0n4d1 / .xmobarrc
Created August 24, 2019 05:16
xmonad config
Config { font = "xft:Bitstream Vera Sans Mono:size=9:regular:antialias=true"
, overrideRedirect = False
, borderColor = "#2C323C"
, border = TopB
, bgColor = "#21252B"
, fgColor = "#828997"
, position = TopW L 100
, commands = [ Run Weather "CYVR" ["-t","<tempC>C","-L","18","-H","25","--normal","#98c379","--high","red","--low","lightblue"] 36000
, Run Network "wlp2s0" ["-L","0","-H","32","--normal","#98c379","--high","#e06c75"] 10
, Run Cpu ["-L","3","-H","50","--normal","#98c379","--high","#e06c75"] 10
@BinRoot
BinRoot / xmonad.hs
Created December 28, 2013 00:45
My current xmonad config. Made with love.
-- Author: BinRoot
-- Todo: dmenu, animations
import XMonad
import XMonad.Config.Gnome
import XMonad.Layout.NoBorders (smartBorders)
import XMonad.Hooks.FadeInactive (fadeInactiveLogHook)
import XMonad.Hooks.ManageDocks (manageDocks)
import XMonad.Hooks.SetWMName (setWMName)
import XMonad.Layout.Spacing (smartSpacing)