Discover gists
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
MIT License | |
Copyright (c) 2024 Florian Dreschel | |
Permission is hereby granted, free of charge, to any person obtaining a copy | |
of this software and associated documentation files (the "Software"), to deal | |
in the Software without restriction, including without limitation the rights | |
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
copies of the Software, and to permit persons to whom the Software is |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// The bookmarklet portion | |
javascript: void((function() { | |
var e = document.createElement('script'); | |
e.setAttribute('type', 'text/javascript'); | |
e.setAttribute('charset', 'UTF-8'); | |
e.setAttribute('src', 'http://assets.pinterest.com/js/pinmarklet.js?r=' + Math.random() * 99999999); | |
document.body.appendChild(e) | |
})()); | |
// The code that gets loaded in |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Bookmarklet portion | |
javascript: function iprl5() { | |
var d = document, | |
z = d.createElement('scr' + 'ipt'), | |
b = d.body, | |
l = d.location; | |
try { | |
if (!b) throw (0); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
javascript: e = document.createElement('script'); | |
e.setAttribute('type', 'text/javascript'); | |
e.setAttribute('src', '//findings.com/bookmarklet/loader'); | |
document.body.appendChild(e); | |
void(0); | |
(function(window, undefined) { | |
var date = new Date(); | |
window.FDGS = window.FDGS || { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
javascript: var d = document, | |
w = window, | |
e = w.getSelection, | |
k = d.getSelection, | |
x = d.selection, | |
s = (e ? e() : (k) ? k() : (x ? x.createRange().text: 0)), | |
f = 'http://www.tumblr.com/share', | |
l = d.location, | |
e = encodeURIComponent, | |
p = '?v=3&u=' + e(l.href) + '&t=' + e(d.title) + '&s=' + e(s), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
from subprocess import check_call, CalledProcessError | |
from tempfile import NamedTemporaryFile | |
from dpms import DPMS | |
from mss import mss | |
from PIL import Image, ImageFilter | |
GAUSSIAN_BLUR_RADIUS = 5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Brightness | |
0 - Off | |
1 - Low | |
2 - Medium | |
3 - High | |
echo 1 > /sys/class/leds/asus::kbd_backlight/brightness | |
# State, when backlight is enabled |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Bookmarklet | |
javascript: (function(a) { | |
var b = a.document; | |
try { | |
a.CLIPBOARD.client.Clipper.instances["_d09a13b8af38e2f71b4f1626c07e1c42"].activate(); | |
return | |
} catch(e) {} | |
var c = b.createElement("script"), | |
d = b.getElementsByTagName("head")[0], | |
a = a.location.protocol; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<title>Subscriber Test Page</title> | |
<link rel="stylesheet" type="text/css" href="http://yui.yahooapis.com/2.8.0r4/build/reset-fonts-grids/reset-fonts-grids.css"> | |
<style type="text/css" media="screen"> | |
body { | |
font-family: Myriad Pro, Helvetica, Arial; | |
font-size:138.5%; | |
} | |
h1 { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Isotope v1.5.25 | |
* An exquisite jQuery plugin for magical layouts | |
* http://isotope.metafizzy.co | |
* | |
* Commercial use requires one-time purchase of a commercial license | |
* http://isotope.metafizzy.co/docs/license.html | |
* | |
* Non-commercial use is licensed under the MIT License | |
* |
NewerOlder