Skip to content

Instantly share code, notes, and snippets.

@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); /* only needed once */
/*
#PanelUI-menu-button {
-moz-binding: url("userChrome.xml#js");
}
*/
/*personal additions*/
#context-sendimage, #context-viewinfo, #context-setDesktopBackground { display:none!important; }
hbox#pocket-button-box {visibility: collapse;}
@LottieVixen
LottieVixen / Convert Script – README.md
Created October 5, 2018 05:52 — forked from Zehkul/Convert Script – README.md
Script to quickly convert and crop videos from within mpv

#README:

This script for mpv intends to offer the fastest and simplest way to convert parts of a video—while you’re watching it and not really more work intensive than making a screenshot. A short demonstration: https://d.maxfile.ro/omdwzyhkoa.webm

##Installation:

You need:

  • yad (at least 0.26) (AUR)
@LottieVixen
LottieVixen / bootstrap.js
Created July 25, 2018 08:12 — forked from Noitidart/bootstrap.js
Bootstrap addon demo. Shows how to add a sidebar to all browsing windows. More specifically, a sidebar which allows HTML content.
const {interfaces: Ci, utils: Cu} = Components;
Cu.import('resource://gre/modules/Services.jsm');
/*start - windowlistener*/
var windowListener = {
//DO NOT EDIT HERE
onOpenWindow: function (aXULWindow) {
// Wait for the window to finish loading
let aDOMWindow = aXULWindow.QueryInterface(Ci.nsIInterfaceRequestor).getInterface(Ci.nsIDOMWindowInternal || Ci.nsIDOMWindow);
aDOMWindow.addEventListener("load", function () {
@LottieVixen
LottieVixen / titleUrlMarkdownClip.js
Created July 23, 2018 10:19 — forked from bradleybossard/titleUrlMarkdownClip.js
Bookmarklet to copy current page title and url in Markdown format to clipboard, like [title](url) - Usual for posting links to resources in README.md files
javascript:(function() {
function copyToClipboard(text) {
if (window.clipboardData && window.clipboardData.setData) {
/*IE specific code path to prevent textarea being shown while dialog is visible.*/
return clipboardData.setData("Text", text);
} else if (document.queryCommandSupported && document.queryCommandSupported("copy")) {
var textarea = document.createElement("textarea");
textarea.textContent = text;
{"collection":[{"created_at":"2018-07-14T21:52:25Z","kind":"like","track":{"artwork_url":"https://i1.sndcdn.com/artworks-000372256728-qe0kg0-large.jpg","commentable":true,"comment_count":null,"created_at":"2018-07-11T07:27:19Z","description":"Haron - Wandelaar\n\nFormat: LP / digital\nCatalogue: QUEESTE002\n\nbit.ly/queeste002\n\nA1 Lotuseter\nA2 Maangerij\nA3 Caverne\nA4 Selenieten\nB1 Foschia\nB2 Sepia\nB3 Music for Elbows\n\nQueeste emerges with the nocturnal sounds of Haron's Wandelaar, an album exploring his long-term interest in music's talent for inducing and affecting dreams, successfully turning listening into an act of transport, leaving you in the midst of falling asleep, at a junction of dislocation, hazily arriving in a liminal world. In Wandelaar we hear Haron's playful reaction against the confines of dance music, gathering energy from his estrangement from the scene and using it as a means to reorder and interrogate sound.\n\nThe modest piano takes centre stage, allowing each solo note to beco
require(["lib/play-manager"], function(a) {
// via http://stackoverflow.com/a/6274381
//+ Jonas Raoni Soares Silva
//@ http://jsfromhell.com/array/shuffle [v1.0]
function shuf(o) { for(var j, x, i = o.length; i; j = Math.floor(Math.random() * i), x = o[--i], o[i] = o[j], o[j] = x); }
shuf(a.source.models);
var c = a.getCurrentSound(), p = c ? c.isPaused() : false;
a.playNext(); a.playPrev(); // poor man's refresh of current playing song
if (p) a.pause(c); // preserve first-run state
<DT><A HREF="https://www.mozilla.org/en-US/firefox/central/" ADD_DATE="1526431425" LAST_MODIFIED="1526431425" ICON_URI="http://www.mozilla.org/2005/made-up-favicon/0-1526431425942" ICON="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAz5JREFUeNpcU0toXFUY/s49596588ikySSmM8rk0UkJEirVTVEjYk1NUdRFFgouXZQI2k2hUCjdiYIuCi4Kuig0DbqQYgU3Yi0iFRuRCBMwaZvMZDTNY95z3/fM8b8jldpzOeeee/i/737n+/+f4ZExf730rkiaZ9NJMx/nmk5HypMqqLr+ZuD4F67N5ZYejmfRsnvhyKsLhSs3zP70SubgYKHSdFENu+gXAprQIGnvBi5ez0m1b6u7M399+PTx+UvtCKtFi2F6195qXK2byir88esy5ksfYND5DhuhRCtUKBNB0Q7w5Z8ee2GgWdjOn250fn5v5j8F5dOHlZD0kWRgAwp3hrKY0S9BJWKIcQ5PShhNG4+1bHx+IocT+RXcrRSDMfFNRvvt3Oyp/icIrRhUl9hoO4kt3F55Bxf3LkLV20jWOohbDjzXxyc/lMH0cRSyCd1xq+dFhu986t7T0CUwIzB8EkW3O5ibhj44ib7NJhiBKRoB/aS4ZWHjbxtjGQYP7nGRTjim1SaQqYiAVAREpHG8vzWJn+6PQ6CF0HPR7nQQczpYeEWHyWMUkwU8MSECGwgJxAWp9xWKNzkuH3oet+JDlIE9Momedh1G4CN0bfhVG9nsS0BQQthJx0V7j3elq7ihqV5ezQTwZmodP9ZGkU/bOPr4Nr53xtDYsaD7Dg4nNqFaH5OCYSSdGhf7daNmuv6wEKqXk/y
(window.webpackJsonp=window.webpackJsonp||[]).push([[3],{3:function(e,t,n){e.exports=n("zUnb")},crnd:function(e,t){function n(e){return Promise.resolve().then(function(){var t=new Error('Cannot find module "'+e+'".');throw t.code="MODULE_NOT_FOUND",t})}n.keys=function(){return[]},n.resolve=n,e.exports=n,n.id="crnd"},zUnb:function(e,t,n){"use strict";n.r(t);var r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function o(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var i=function(){return(i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function a(e){var t="function"==typeof Symbol&&e[Symbol.iterator],n=0;return t?t.call(e):{next:function(){return e&&n>=e.length&&(e=void 0),{valu
Failed to start etc-systemd-system-mastodon\x2dsidekiq.service.mount: Unit etc-systemd-system-mastodon\x2dsidekiq.service.mount not found.
Failed to start etc-systemd-system-mastodon\x2dstreaming.service.mount: Unit etc-systemd-system-mastodon\x2dstreaming.service.mount not found.
Failed to start etc-systemd-system-mastodon\x2dweb.service.mount: Unit etc-systemd-system-mastodon\x2dweb.service.mount not found.

then open test.cpp in your code editor of choice and copy this file into it.

#include <iostream>

extern "C" {
    int main() {
        std::cout << "Hello, World!" << std::endl;
        return 0;
    }
}