Skip to content

Instantly share code, notes, and snippets.

@egmontkob
egmontkob / Hyperlinks_in_Terminal_Emulators.md
Last active Sep 17, 2021
Hyperlinks in Terminal Emulators
View Hyperlinks_in_Terminal_Emulators.md
@cryzed
cryzed / fix-infinality.md
Last active Sep 16, 2021
A set of instructions on how to fix the harfbuzz + Infinality issue and restoring good-looking, Infinality-like font rendering.
View fix-infinality.md

Disclaimer: Please follow this guide being aware of the fact that I'm not an expert regarding the things outlined below, however I made my best attempt. A few people in IRC confirmed it worked for them and the results looked acceptable.

Attention: After following all the steps run gdk-pixbuf-query-loaders --update-cache as root, this prevents various gdk-related bugs that have been reported in the last few hours. Symptoms are varied, and for Cinnamon the DE fails to start entirely while for XFCE the icon theme seemingly can't be changed anymore etc.

Check the gist's comments for any further tips and instructions, especially if you are running into problems!

Screenshots

Results after following the guide as of 11.01.2017 13:08:

@ohsix
ohsix / perf.md
Last active May 12, 2020
stuff I should write down: perf
View perf.md

Intro

perf is very handy, it comes with linux and works without a lot of setup (contrast: oprofile, systemtap)

probes work for kernel and userspace and you can record function arguments and local frame and other variables in the trace

you can use perf script to view the output of such traces, and it will display the variables bundled with the trace, by name, and with the format given when the probe was added

Context

recently someone was asked to record what happened in systemd at source_dispatch, in sd-event; to see what the value of s->description was at the time, they were advised to use gdb

@EugeneKay
EugeneKay / README.md
Last active Jun 18, 2020
Winode Instructions
View README.md

NOTE: This Gist concerns the old Linode KVM Beta, NOT the current Manager. Please see https://github.com/linode/docs/pull/501#issuecomment-232414947 for more up-to-date instructions.

You will need:

On the KVM source, run the following to create a VM:

View severscam.md

The Scammiest Scam To Yet Anonymity Scam

I'm still holding out for this being a hoax, a big joke, and that they're going to cancel the kickstarter any minute. It'd be quite the cute "lessons learned" about anonymity scams. However, I will be treating it from here on out as a genuine scam. (As of May 2nd, the kickstarter has been cancelled, after the strangest attempt to reply to this imaginable. Good riddance.)

This absolutely ridiculous thing was brought to my attention by a friend and since it was late at night I thought I must be delirious in how absurdly over the top fake it seemed. So I slept on it, woke up, and found that it had gotten a thousand dollars more funding and was every bit as flabbergasting as I thought it was.

Since I realize that not everyone has spent their entire lives studying computers – and such people are the targets of such scams –

View Makefile
# Hello, and welcome to makefile basics.
#
# You will learn why `make` is so great, and why, despite its "weird" syntax,
# it is actually a highly expressive, efficient, and powerful way to build
# programs.
#
# Once you're done here, go to
# http://www.gnu.org/software/make/manual/make.html
# to learn SOOOO much more.
@amcgregor
amcgregor / lolshadowbanned.md
Last active Aug 29, 2015
On how the “secretary of the office of the president” retained me as a Rogers client.
View lolshadowbanned.md

So your network doesn't support e-mail, eh?

On how the “secretary of the office of the president” retained me as a Rogers client.

I've been a long-long-long-time Rogers customer. Their support, for me, usually gets to the point not of desperation, but of joy. Admittedly it usually takes several attempts to reach someone who isn't a complete idiot reading from a script, but I've always been satisfied in the end. Satisfied enough to remain a customer, at least! This event in the mid 00's, though, taxed the limits I'm willing to reach for bad tech support while still managing to leave me as a customer. (Lesser of evils and whatnot.)

I'm a sysop. I need access to my boxen from anywhere and everywhere, and while GSM speeds are pretty suck compared to modern LTE it was more than enough for an SSH connection, or some light-weight HTTP or VNC/RDP over a VPN. The VPN turned out to be a sticking point, as no matter which technology (PPTP, L2TP/IPsec, etc.) I tried my phone would never connect and/or authent

@alyx
alyx / gist:4a73491df0f8a1abffbf
Last active Oct 22, 2017
atheme-services account degradation
View gist:4a73491df0f8a1abffbf

Account Degradation

  1. Current System

  1. Account reaches an age (e.g. 30d)
  2. Services considers the account expired
  3. Services removes this account. This frees all nicknames associated with the account for re-registration and removes this account, including all metadata, group and channel access from the database.
  4. There is no D. That's all that happens.
@XVilka
XVilka / TrueColour.md
Last active Sep 17, 2021
True Colour (16 million colours) support in various terminal applications and terminals
View TrueColour.md

Most updated version is always available at termstandard/colors repository.

Terminal Colors

There exists common confusion about terminal colors. This is what we have right now:

  • Plain ASCII
  • ANSI escape codes: 16 color codes with bold/italic and background
  • 256 color palette: 216 colors + 16 ANSI + 24 gray (colors are 24-bit)
  • 24-bit true color: "888" colors (aka 16 milion)
@Xe
Xe / Chapter 1
Last active Dec 21, 2015
Chronicle
View Chapter 1
In the time before ponychat, the world was just not the same. Parasprites
ravaged the scattered herds in their multitudes. Harsh rulers wantonly declared
banishment. And frequent netsplits violently tore at the very fabric of the
netscape, leaving even bronies of the same herd segregated from their friends.
In despair of this abysmal situation, two intrepid independent groups of bronies
forwarded their best minds towards finding a solution. They both arrived at the
same conclusion, both knew that the brony communities needed a network to call
their own. A place where tolerance reigned free, where the rulers ran with the
herds, and where, above all else, friendship was highest prized.