Skip to content

Instantly share code, notes, and snippets.

View ArdaXi's full-sized avatar

Ariën Holthuizen ArdaXi

View GitHub Profile
; ------------------------------------------------------------------
; Machine code monitor -- by Yutaka Saito and Mike Saunders
;
; Accepts code in hex format, ORGed to 0x201000 (4K after where
; this program is loaded)
; ------------------------------------------------------------------
BITS 64
%INCLUDE "bmdev.asm"
// ==UserScript==
// @name Bring back pixelation!
// @namespace http://gaming.stackexchange.com/
// @description Applied the pixel font for pretty much everything except text.
// @author badp
// @homepage http://meta.gaming.stackexchange.com/q/1225/56
// @include http://*gaming.stackexchange.com*
// ==/UserScript==
(function(){var a=document.createElement("link");a.href="https://gist.github.com/raw/614745/get_back_pixelation.css";a.rel="stylesheet";a.type="text/css";document.head.appendChild(a)}());
@ArdaXi
ArdaXi / Sponsorify.user.js
Created February 25, 2011 13:17
Due to financial issues, we have to give up space to EA.
// ==UserScript==
// @description Due to financial issues, we have to give up space to EA.
// @include http://*gaming.stackexchange.com*
// ==/UserScript==
(function(){var d="Dead Space 2",a="dead-space-2",b=[[/\/space/,"/"+a],[/"tag">space</,'"tag">'+a+"<"],[/Dead\ Space(?!\ 2)/g,d],[/[sS]pace(?![- ]?2)/g,d]];for(var c=0;c<b.length;c++){document.body.innerHTML=document.body.innerHTML.replace(b[c][0],b[c][1])}})();
// ==UserScript==
// @description Replaces embedded YouTube with an image.
// @include http://*/*
// ==/UserScript==
(function(){var m=".ob-youtube-overlay{width:480px;height:360px;position:absolute;text-align:center;font-size:120px;opacity:0.5;filter:alpha(opacity=50);line-height:360px;cursor:pointer;color:White;text-shadow:1px 1px 4px black;}.ob-youtube-overlay:hover{opacity:0.8;filter:alpha(opacity=80);}",k=document.getElementsByTagName("head");if(k.length>0){var l=document.createElement("style");l.type="text/css";l.appendChild(document.createTextNode(m));k[0].appendChild(l)}var o=document.getElementsByTagName("object");while(o.length>0){var h=o[0],g=h.getElementsByTagName("embed")[0];if(g.src.substr(10,12)==".youtube.com"){var f=g.src.replace(/https?:\/\/(?:www.)?youtube\.com\/[ve]\/([a-zA-Z0-9-_]*).*/g,"$1"),n="http://i2.ytimg.com/vi/"+f+"/hqdefault.jpg",e="http://youtube.com/watch?v="+f,j=document.createElement("a"),i=document.createElement("img"),d=document.createElement("div");i.src=n;i.width=
// ==UserScript==
// @name Spoilers!
// @namespace http://chat.stackexchange.com/
// @description Turns `` markup into spoiler tags.
// @author Arda Xi
// @homepage http://chat.stackexchange.com/rooms/35
// @include http://*chat.stackexchange.com/rooms/35*
// @include http://*chat.stackexchange.com/rooms/1044*
// ==/UserScript==
(function(){var a="code{background:#000!important;color:#000!important;}code:hover{color:#FFF!important;}";var c=document.getElementsByTagName("head");if(c.length>0){var b=document.createElement("style");b.type="text/css";b.appendChild(document.createTextNode(a));c[0].appendChild(b)}})();
#!/bin/bash
## BEGIN INIT INFO
# Provides: diaspora
# Required-Start: $local_fs $remote_fs
# Required-Stop: $local_fs $remote_fs
# Should-Start: $network
# Should-Stop: $network
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
@ArdaXi
ArdaXi / zen.js
Created October 14, 2012 15:14
Zen
chrome.tabs.onUpdated.addListener(function(tabId, changeInfo, tab) {
var url = tab.url;
var js;
// Populate js with Javascript for url
chrome.tabs.executeScript(tabId, {code:js});
});
@ArdaXi
ArdaXi / lock
Last active December 14, 2015 02:28
#!/bin/bash
command -v xlock > /dev/null 2>/dev/null || exec notify-send -u critical 'xlock is missing'
exec xlock -mode blank
@ArdaXi
ArdaXi / xlockmore
Last active December 14, 2015 02:29
customizepkg.d for minimal xlockmore
replace#global#--with-gtk2#--without-gtk2 --enable-blank-only --without-magick --without-mesa --without-opengl --without-xpm --without-motif --without-freetype
remove#depends#freetype2
remove#depends#gtk2
remove#depends#libxpm
remove#depends#lesstif
remove#depends#glu
remove#makedepends#mesa

Keybase proof

I hereby claim:

  • I am ArdaXi on github.
  • I am ardaxi (https://keybase.io/ardaxi) on keybase.
  • I have a public key whose fingerprint is E484 F236 27D3 A57C 62DA B304 86D2 133C 73F8 0E16 To claim this, I am signing this object:
{
    "body": {
        "key": {