Skip to content

Instantly share code, notes, and snippets.

View ChlorideCull's full-sized avatar
🙃
Questioning the value of being able to set your status on Github

Sebastian Johansson ChlorideCull

🙃
Questioning the value of being able to set your status on Github
  • TietoEVRY
  • Skellefteå, Sweden
View GitHub Profile
@ChlorideCull
ChlorideCull / README.md
Created December 29, 2021 14:09
Simple discord dark mode colorization

Get Dart Sass from https://github.com/sass/dart-sass/releases and unpack/install somewhere.

Build with sass .\my-custom-css.scss .\my-custom-css.css and paste the contents of my-custom-css.css as custom CSS in BetterDiscord (or make it a proper theme)

Keybase proof

I hereby claim:

  • I am chloridecull on github.
  • I am chloridecull (https://keybase.io/chloridecull) on keybase.
  • I have a public key ASBMR153b3T8-UvLH2RbItrVuQEvsWvjykK0BLR55Vut3go

To claim this, I am signing this object:

@ChlorideCull
ChlorideCull / BuildTags.ps1
Created January 24, 2020 12:30
Random objects in returned array
$ErrorActionPreference = "Stop"
function ParseArgs($inputArguments) {
$processingInput = $false
$processingOutput = $false
$inputPaths = [System.Collections.ArrayList]@()
$outputPaths = [System.Collections.ArrayList]@()
$inputArguments | ForEach-Object {
if ($_ -ieq "--inputs") {
@ChlorideCull
ChlorideCull / keybase.md
Created February 2, 2016 16:58
keybase.io proof of identity

Keybase proof

I hereby claim:

  • I am ChlorideCull on github.
  • I am chloridecull (https://keybase.io/chloridecull) on keybase.
  • I have a public key whose fingerprint is 004A 6ACF 539B 132D B513 66D0 53AA 717C 456C 40B7

To claim this, I am signing this object:

@ChlorideCull
ChlorideCull / 456C40B7.pub
Created February 2, 2016 15:50
PGP Public Key, for OpenPGP Smart Card
-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: GnuPG v2
mQINBFawxUoBEADD0IicE7zaUmwh3prcsJ8XDn4KQRcjcdkAvm65Lc0q0kWGFpzP
RL9YA1KEfsA2t3tgvKYbj9s0rC7MjQDUOUKLOJzbbxsp6+YIaCCSCtHElr/KA6c4
YoNcE+0AeTwXjMgJvdVZwox6i580Ug4hy8faHiFd5TzmjP0kdd8RhfLN88T+FBMI
I4JGadqY3bbBmAR0Wz2Gl2xXhY2+OxvxyKnEhIeqCBVsRWWgWI9c3TREG27tLrJR
HNeELZ764+z8/aTptoVRng2IwEGXndU2YmgGZCaOQo6MHgiyENaqt7vObV7JWhVy
81PnOQgqeOG8/jU1H4LknycJ6Wso86eYZIjPxhdoQ1/53eAGciHE0c1o+8yqHInL
UO0o6v4VNFWUw6E8W2K4buF6i4ghfnNEldLjnkShKOJIwhzELgS6nvvf3ShfyEz/
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<link rel="import" href="../core-header-panel/core-header-panel.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
#!/bin/sh
#http://imgur.com/gallery/fL7Saxw
words=("Please help me." "I am so alone." \
"To arms, my brothers" "Psssst" "Hey, Listen." \
"Kill all humans." "Don't ever leave me."\
"The hunger is overwelming" "Look over here" \
"Duck Duck Goose. You are it!")
@ChlorideCull
ChlorideCull / betterplayer.user.js
Created May 4, 2014 01:00
Quick UserScript to add a link to the highest quality video stream below the video.
// ==UserScript==
// @name ExternalPlayer
// @description Adds a link to show the video in an external player.
// @include http*://www.youtube.com/watch*
// ==/UserScript==
var playerparent = document.getElementById("player");
var newplayer = document.createElement("a");
newplayer.style.position = "relative";
newplayer.style.padding = "20px";
newplayer.style.top = "10px";
@ChlorideCull
ChlorideCull / xkcd.py
Last active December 24, 2015 23:39
Was bored during class, wrote a XKCD parsing script to give you the URL, Name and Title of the specified (or current) comic. Also contains an option to only print the URL so you can pipe it into stuff.
#!/usr/bin/env python3
from urllib import request
import argparse
def format_text(text_input):
return text_input.replace("&#39;", "'")
parser = argparse.ArgumentParser(description="Grab the URL to the specified XKCD comic.")
parser.add_argument('-c', '--comic', type=int, help="Specify a comic, or do not specify for the latest comic")
parser.add_argument('-u', '--url-only', action='store_true', help="Only print the URL, useful for piping")
@ChlorideCull
ChlorideCull / fglrx-linkmissingbinaries.sh
Created August 2, 2013 16:15
This (too) simple shell script links the incorrectly placed CCC and accompanying binaries to /bin, so that you can use them without digging through the entire fucking filesystem.
#!/bin/sh
ln /usr/lib/fglrx/bin/amdcccle /bin/amdcccle
ln /usr/lib/fglrx/bin/amdupdaterandrconfig /bin/amdupdaterandrconfig
ln /usr/lib/fglrx/bin/amdxdg-su /bin/amdxdg-su
echo Linked binaries from /usr/lib/fglrx/bin to /bin