Skip to content

Instantly share code, notes, and snippets.

View sgnix's full-sized avatar
🟧

Stefan G. sgnix

🟧
View GitHub Profile
@ityonemo
ityonemo / test.md
Last active June 13, 2024 09:10
Zig in 30 minutes

A half-hour to learn Zig

This is inspired by https://fasterthanli.me/blog/2020/a-half-hour-to-learn-rust/

Basics

the command zig run my_code.zig will compile and immediately run your Zig program. Each of these cells contains a zig program that you can try to run (some of them contain compile-time errors that you can comment out to play with)

@pjobson
pjobson / remove_mcafee.md
Last active March 26, 2024 04:26
OSX McAfee Removal

Removal of McAfee from OSX

Note: This was written in 2015, it may be out of date now.

There are a lot of commands here which I use sudo if you don't know what you're doing with sudo, especially where I rm you can severely screw up your system.

There are many reasons which you would want to remove a piece of software such as McAfee, such as not wanting it to hammer your CPU during work hours which seems like primetime for a virus scan.

I intend this to be a living document, I have included suggestions from peoples' replies.

@jtriley
jtriley / gist:1988754
Created March 6, 2012 20:21
change TERM=rxvt-unicode in Gentoo to use 256 colors instead of 88
It comes up as only supporting 88 colors as rxvt-unicode's terminfo database entry has it at 88 colors. If you work on external machines a lot via ssh then what you are already doing is about the best way. If you work primarily on one or a few machines then a custom/local .terminfo database can be simpler.
$ infocmp -L rxvt-unicode > rxvt-unicode.terminfo
$ [editor] rxvt-unicode.terminfo
Find max_colors and max_pairs and change them from...
max_colors#88, max_pairs#256,
to...
max_colors#256, max_pairs#32767,
Those are the values from xterm-256color. Those fields should be near