Skip to content

Instantly share code, notes, and snippets.

View TheEvilSkeleton's full-sized avatar
💭
Mostly on GNOME GitLab nowadays

Hari Rana TheEvilSkeleton

💭
Mostly on GNOME GitLab nowadays
View GitHub Profile
@vodik
vodik / SOS.md
Last active March 4, 2026 17:54
_Never_ -Sy when installing!

Once upon a time there was a user that wanted to install firefox.

The user tried to do pacman -S firefox but it didn't work. The all mighty pacman reported that firefox-3.2.4-1.i686.pkg.tar.gz could not be found on his mirror. So the user tried pacman -Sy firefox. It worked and the user rejoiced since he could once again go and troll /h/.

But all was not good. The user had made a grave error!

See, when the user told the almighty pacman to -Sy firefox, pacman did

@tomvon
tomvon / resize-image-keep-aspect-ratio.py
Created June 8, 2014 22:59
Python script to resize an image while keeping the original aspect ratio.
#Resizes an image and keeps aspect ratio. Set mywidth to the desired with in pixels.
import PIL
from PIL import Image
mywidth = 300
img = Image.open('someimage.jpg')
wpercent = (mywidth/float(img.size[0]))
hsize = int((float(img.size[1])*float(wpercent)))
@joepie91
joepie91 / vpn.md
Last active July 17, 2026 00:49
Don't use VPN services.

Don't use VPN services.

No, seriously, don't. You're probably reading this because you've asked what VPN service to use, and this is the answer.

Note: The content in this post does not apply to using VPN for their intended purpose; that is, as a virtual private (internal) network. It only applies to using it as a glorified proxy, which is what every third-party "VPN provider" does.

  • A Russian translation of this article can be found here, contributed by Timur Demin.
  • A Turkish translation can be found here, contributed by agyild.
  • There's also this article about VPN services, which is honestly better written (and has more cat pictures!) than my article.
@hayleox
hayleox / dark_horse_downloader.js
Last active April 8, 2025 01:22
Greasemonkey script for downloading a DRM-free copy of your Dark Horse digital comics
// ==UserScript==
// @name Dark Horse Downloader
// @namespace http://schiff.io/
// @version 0.1
// @description Download a DRM-free copy of your Dark Horse digital comics.
// @author Hayden Schiff (oxguy3)
// @match https://digital.darkhorse.com/read/*
// @match https://digital.darkhorse.com/bookshelf*
// @include https://*.cloudfront.net/*
// @grant GM_xmlhttpRequest
@iosecure
iosecure / iOS, The Future Of macOS, Freedom, Security And Privacy In An Increasingly Hostile Global Environment.md
Last active June 19, 2026 22:43
iOS, The Future Of macOS, Freedom, Security And Privacy In An Increasingly Hostile Global Environment

iOS, The Future Of macOS, Freedom, Security And Privacy In An Increasingly Hostile Global Environment

This post by a security researcher who prefers to remain anonymous will elucidate concerns about certain problematic decisions Apple has made and caution about future decisions made in the name of “security” while potentially hiding questionable motives. The content of this article represents only the opinion of the researcher. The researcher apologises if any content is seen to be inaccurate, and is open to comments or questions through PGP-encrypted mail.



TL;DR

@ObserverOfTime
ObserverOfTime / BDLinux.md
Last active July 17, 2026 21:44
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.

#!/bin/sh
set -eufo pipefail
if [ "$#" -ne 2 ]; then
echo "usage: $0 source_repo_url target_repo_url" >&2
exit 1
fi
SOURCE_URL="$1"
@willmendesneto
willmendesneto / a11y-dev-mode.css
Last active March 2, 2026 03:20
Using CSS for highlight errors in HTML - A11Y Linting HTML with CSS
/* Highliting accessibility errors in HTML */
/* highlight HTML element with invalid value for lang attribute */
html:not([lang]),
html[lang=""] {
border: 2px dotted red !important;
}
/* highlight images missing alt text */
img:not([alt]) {
@refi64
refi64 / README.md
Last active November 29, 2023 15:54
The best GitHub README

kma

Travis CI badge Circle CI badge GitHub Actions badge Coverage badge LGTM badge npm badge pub.dev badge Download count badge

@Ozymandias42
Ozymandias42 / pulse-streaming-setup.sh
Last active May 14, 2021 20:22
Short bash script to setup a streaming setup with pulseaudio.
#!/usr/bin/env bash
#Short script that creates a streaming setup in pulseaudio. It does the following:
#1. Create a null-sink as ApplicationSink to separate a single applications audio from the rest
#3. Create another null-sink as Input-Combinator; CombineSink
#4. Create remap-source as Virtual Microphone; Vsource
#5. Loopback the the ApplicationSink's audio back to the systems default audio output
#6. Loopback ApplicationSink audio again, this time into the CombineSink
#7. Loopback actual microphone audio into the CombineSink as well
#8. Loopback combined application output and real-mic input from CombineSink into virtual microphone Vsource