Skip to content

Instantly share code, notes, and snippets.

View Scrumplex's full-sized avatar
❄️
Doing Nix stuff

Sefa Eyeoglu Scrumplex

❄️
Doing Nix stuff
View GitHub Profile
document.getElementById('logo-container').href = '/feed/subscriptions';
@Scrumplex
Scrumplex / clock.yt.js
Created November 29, 2017 16:54
YouTube Clock JS
function clock() {
var time = new Date(),
hours = time.getHours(),
minutes = time.getMinutes(),
seconds = time.getSeconds();
document.querySelectorAll('.clock')[0].innerHTML = harold(hours) + ":" + harold(minutes) + ":" + harold(seconds);
function harold(standIn) {
if (standIn < 10) {
standIn = '0' + standIn
@Scrumplex
Scrumplex / kill-steam.sh
Created January 10, 2018 20:13
Kill Steam on Desktop exit
#!/bin/bash
_term() {
pkill -f -9 $HOME/.local/share/Steam/ubuntu12_32/steam
}
trap _term EXIT
sleep infinity
@Scrumplex
Scrumplex / sharex_uploader.sxcu
Last active December 23, 2019 08:23
ShareX Uploader (PHP)
{
"Name": "example.com",
"DestinationType": "None",
"RequestType": "POST",
"RequestURL": "http://example.com/upload.php",
"FileFormName": "upload",
"Arguments": {
"password": "password"
},
"ResponseType": "Text"
@Scrumplex
Scrumplex / docker-compose.yaml
Created April 7, 2022 19:32
Concourse CI - Docker Compose 2022 Edition
version: '3'
services:
concourse-db:
image: postgres:14
volumes:
- './concourse-db-data:/var/lib/postgresql/data'
environment:
POSTGRES_DB: concourse
POSTGRES_USER: concourse
@Scrumplex
Scrumplex / Foes.md
Last active August 14, 2022 11:45
DDnet foelist

Foelist

This is a collection of foes I have collected over time. This is all my personal opinion of some DDNet players. If you think you shouldn't belong here, contact me and we can talk about it. I only added them with their respective name and added the reason as clan.

So add_foe "Scrumplex" "idiot" would mean that I deem myself as an idiot.

I will probably extend this list over time, so feel free to check this out every now and then.

@Scrumplex
Scrumplex / openpgp.md
Last active January 4, 2024 10:44
Keyoxide Proof

openpgp4fpr:e173237ac782296d98f5adace13dfd4b47127951

@Scrumplex
Scrumplex / 50-udisks.rules
Last active July 6, 2024 20:18
Polkit rules for udisks, and udisks2. Compatible with udiskie and Dolphin.
// Original rules: https://github.com/coldfix/udiskie/wiki/Permissions
// Changes: Added org.freedesktop.udisks2.filesystem-mount-system, as this is used by Dolphin.
polkit.addRule(function(action, subject) {
var YES = polkit.Result.YES;
// NOTE: there must be a comma at the end of each line except for the last:
var permission = {
// required for udisks1:
"org.freedesktop.udisks.filesystem-mount": YES,
"org.freedesktop.udisks.luks-unlock": YES,