Skip to content

Instantly share code, notes, and snippets.

View Phate6660's full-sized avatar
💚
Stay negative.

Cpt.Howdy Phate6660

💚
Stay negative.
View GitHub Profile
@ghoomfrog
ghoomfrog / crypt.c
Created May 23, 2021 04:09
The crypt function from unistd.h as a command.
#include <unistd.h>
#include <string.h>
#include <stdio.h>
int main(int argc, char **argv) {
if (argc > 1) {
if (argc > 2) {
char salt[3];
salt[0] = *argv[2];
if (strlen(argv[2]) < 2)
@ncdulo
ncdulo / callfactorial.c
Last active February 28, 2020 21:03
Recursive Factorial (x86_64 ASM + C)
/*
* An application that illustrates calling the factorial function defined in 'factorial.asm'
* https://cs.lmu.edu/~ray/notes/nasmtutorial/
*
* To build & run:
* nasm -f elf64 factorial.asm && gcc -std=c99 -o factorial2 factorial.o callfactorial.c
*/
#include <stdio.h>
#include <inttypes.h>
@ObserverOfTime
ObserverOfTime / BDLinux.md
Last active May 20, 2024 17:32
Install BetterDiscord on Linux

Install BetterDiscord on Linux

This Gist contains simple instructions on how to install, update, and uninstall BetterDiscord on Linux.

For more thorough documentation, take a look at betterdiscordctl's README.

Do NOT submit issues here as I don't check the comments. You should submit them here instead.

@mrkwatz
mrkwatz / Firefox_Scrollbars-W10style.md
Last active August 5, 2023 03:18
Firefox 57 Windows 10 UWP Style Overlay Scrollbars

As far as I am aware the time has come and as of Firefox 72 XUL has been stripped from firefox and so the method used to inject this scrollbar theme is no longer supported -- reference the following for future scroll themes:

Mozilla is currently working to phase out the APIs used to make this theme work. I will try to maintain each version until that time but eventually there will be no workaround. When that time comes there is a new, but more limited api for applying simple themes to scrollbars. In nightly I am currently using the following userContent.css

:root{
	scrollbar-width: thin;
	scrollbar-color: rgb(82, 82, 82) rgb(31, 31, 31);
}
@thanley11
thanley11 / .asoundrc
Created February 27, 2016 18:39
Example asoundrc file
# Posted at http://dl.dropbox.com/u/18371907/asoundrc
# Info: http://www.sabi.co.uk/Notes/linuxSoundALSA.html
# Soundcard roundup: http://forums.gentoo.org/viewtopic-p-4192284.html#4192284
# Show programs currently opening ALSA:
# fuser -fv /dev/snd/* /dev/dsp*
# Show opened settings:
# cat /proc/asound/card0/pcm0p/sub0/hw_params
@rvl
rvl / git-pushing-multiple.rst
Created February 9, 2016 11:41
How to push to multiple git remotes at once. Useful if you keep mirrors of your repo.

Pushing to Multiple Git Repos

If a project has to have multiple git repos (e.g. Bitbucket and Github) then it's better that they remain in sync.

Usually this would involve pushing each branch to each repo in turn, but actually Git allows pushing to multiple repos in one go.

If in doubt about what git is doing when you run these commands, just