Skip to content

Instantly share code, notes, and snippets.

View tajnymag's full-sized avatar

tajnymag

  • Sator Controls
  • Prague
View GitHub Profile
#!/bin/bash
# nums : script vypise pocet souboru a adresaru
if [ $# -eq 0 ]; then
set -- "."
fi
for dir in $*; do
if [ ! -d "$dir" ]; then
echo "$0 : $dir neni adresar"
else
@tajnymag
tajnymag / tinder.user.js
Last active March 10, 2024 18:59
Tinder Deblur Userscript (ARCHIVED and DEPRECATED, see https://github.com/tajnymag/tinder-deblur)
// ==UserScript==
// @name Tinder Deblur
// @namespace Violentmonkey Scripts
// @match https://tinder.com/*
// @grant none
// @version 1.4
// @author Tajnymag
// @downloadURL https://raw.githubusercontent.com/tajnymag/tinder-deblur/main/tinder.user.js
// @description Simple script using the official Tinder API to get clean photos of the users who liked you
// ==/UserScript==
@tajnymag
tajnymag / other_stories.md
Created April 9, 2019 14:29
Creepy Stories from Reddit
@tajnymag
tajnymag / the_nameless_dark_story.md
Created April 9, 2019 14:29
The Nameless Dark Story

The Nameless Dark Story

Part One

No one's perfect. No one's clean. Deep down we're all disgusting. It's just that no one wants to admit it.

I used to know a guy who specialized in a really specific kind of... sexual favor. He got one of those split tongue deals, where they slice down the middle of it and make you look like a snake or whatever. Well he had one of those, and he could control each side independently. It was wild, he could tie a cherry stem in about two seconds.

So this friend with the split tongue, he reads in a book about how these guys in the Middle East stick things down their urethras and jack off. And ignoring what the idiot kid in the story did with that information, my buddy wonders if maybe he can put his tongue to good use.

@tajnymag
tajnymag / im_a_sar_officer_part_3.md
Created April 9, 2019 14:24
I'm an SAR Officer (3)

I'm an SAR Officer (3)

I'm sorry I haven't been around for so long. I had an accident, a pretty bad one. I'll talk about it some other time.

There's been an outbreak here. It started about three weeks ago, when the leaves were just turning. Tourists poured in from all over the country-it happens every year-to go camping before the first snow and take pictures. It's our town's last tourist season before everything shuts down for the winter, and we're used to handling the influx of people. But with that many people, of course you're going to see a big increase in accidents and reports. A lot of the reports are the usual bear, Bigfoot, wildcat, and serial killer sightings. An equal amount are fires, gunshots, disorderly conduct, and basic first aid calls. I cannot stress enough how mundane most of our days are, in terms of unusual events. We can go months, sometimes years, without any really huge incidents. But, that being said, we seem to be in the middle of an outbreak.

In the last three weeks, we've ha

@tajnymag
tajnymag / 9gag.js
Created October 1, 2018 18:04
Script for viewing 9gag NSFW content without being logged in
function getURLFromID(id) {
return 'https://img-9gag-fun.9cache.com/photo/' + id + '_700b.jpg';
}
function newImageEl(url, attrs) {
const newEl = document.createElement('img');
newEl.src = url;
return newEl;
}
@tajnymag
tajnymag / index.js
Created September 8, 2018 12:33
Suuuuuuuuper simple reactive hash router
const app = new Vue({
el: 'my-app',
data() {
return {
current_path: window.location.hash
}
}
});
window.addEventListener('hashchange', () => {
@tajnymag
tajnymag / run_sqldeveloper.sh
Last active March 6, 2018 17:21
Runs/Installs Oracle SQLDeveloper (for Ubuntu/Debian only)
#!/bin/bash
URL="https://transfer.sh/dbct7/sqldeveloper-17.4.0.355.2349-no-jre.zip"
apt list --installed 2>/dev/null | grep unzip >/dev/null || sudo apt update && sudo apt install -y unzip
apt list --installed 2>/dev/null | grep openjdk-8 >/dev/null || sudo apt update && sudo apt install -y openjdk-8-jre openjdk-8-jdk
if [ ! -f "./sqldeveloper/sqldeveloper.sh" ]
then
curl -o sqldeveloper.zip "$URL" && unzip sqldeveloper.zip
@tajnymag
tajnymag / .bashrc
Created November 7, 2017 12:32
AptFixer pro Radka
sudo() { if [[ $@ == "apt remove" ]]; then command sudo apt purge; else command sudo "$@"; fi; }
apt() { if [[ $@ == "remove" ]]; then command apt purge; else command apt "$@"; fi; }