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
// ==UserScript== | |
// @name GitHub: White favicon | |
// @version 1.10.0 | |
// @author tobbez | |
// @match https://support.github.com/* | |
// @match https://github.blog/* | |
// @match https://opensource.guide/* | |
// @match https://www.githubstatus.com/* | |
// @match https://services.github.com/* | |
// @match https://desktop.github.com/* |
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
// ==UserScript== | |
// @name Twitter: Redirect media to :orig | |
// @namespace http://ryara.net/ | |
// @version 0.21 | |
// @author tobbez | |
// @match https://pbs.twimg.com/media/* | |
// @match https://pbs-h2.twimg.com/media/* | |
// @grant none | |
// @run-at document-start | |
// @downloadURL https://gist.github.com/tobbez/c23cd46ce37eade711d900ad653f05a4/raw/twitter-redirect-media-orig.user.js |
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
// ==UserScript== | |
// @name Twitter: Redirect to mobile | |
// @namespace http://ryara.net/ | |
// @version 0.1 | |
// @author tobbez | |
// @match https://twitter.com/* | |
// @grant none | |
// @run-at document-start | |
// @downloadURL https://gist.github.com/tobbez/21181ca2458219beef53f20e04c067ea/raw/twitter-redirect-mobile.user.js | |
// @updateURL https://gist.github.com/tobbez/21181ca2458219beef53f20e04c067ea/raw/twitter-redirect-mobile.user.js |
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
diff --git a/morituri/common/directory.py b/morituri/common/directory.py | |
index 47aac11..7af0df3 100644 | |
--- a/morituri/common/directory.py | |
+++ b/morituri/common/directory.py | |
@@ -22,34 +22,21 @@ | |
import os | |
+from xdg import BaseDirectory | |
+ |
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
<?php | |
/* | |
* API for WhatIMG | |
* Copyright (c) 2013, tobbez | |
* | |
* This program is free software: you can redistribute it and/or modify | |
* it under the terms of the GNU General Public License as published by | |
* the Free Software Foundation, either version 3 of the License, or | |
* (at your option) any later version. | |
* |
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
1 - Create a *private* GitHub/Bitbucket or similar git repo. Here I assume the repo is: | |
https://github.com/calkan/bash_history.git | |
2 - Create .history directory and initialize it for the repo: | |
mkdir $HOME/.history | |
cd $HOME/.history | |
git init | |
touch README.md |
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
<!doctype html> | |
<html> | |
<head> | |
<title>SSL localStorage migration proof of concept #2</title> | |
<script type="text/javascript"> | |
window.addEventListener('message', function (ev) { | |
var origin = ev.origin || event.originalEvent.origin; | |
if (origin !== 'http://' + document.location.host && origin != 'https://' + document.location.host) { | |
return; | |
} |
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
<!doctype html> | |
<html> | |
<head> | |
<title>localStorage migration to SSL proof of concept</title> | |
<script type="text/javascript"> | |
function parseHash() { | |
if (document.location.hash === '') return new Map(); | |
var res = new Map(); | |
document.location.hash.substr(1).split('&').forEach(function(e) { | |
var kv = e.split('='); |
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 python2 | |
# coding: utf-8 | |
# | |
# Copyright (c) 2015, tobbez | |
# | |
# Permission to use, copy, modify, and/or distribute this software for any | |
# purpose with or without fee is hereby granted, provided that the above | |
# copyright notice and this permission notice appear in all copies. | |
# | |
# THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES |
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 | |
# coding: utf-8 | |
# | |
# Copyright (c) 2015, Torbjörn Lönnemark <tobbez@ryara.net> | |
# | |
# Permission to use, copy, modify, and/or distribute this software for any | |
# purpose with or without fee is hereby granted, provided that the above | |
# copyright notice and this permission notice appear in all copies. | |
# | |
# THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES |
NewerOlder