Create a foobar
repository:
apt-get install reprepro
OUTPUT=$(mktemp -d)
mkdir -p $OUTPUT/conf
#!/usr/bin/env ruby | |
require "json" | |
case ARGV.size | |
when 1 | |
image = ARGV[0] | |
limit = 20 | |
when 2 | |
image = ARGV[0] |
paths(scalars) as $p | |
| [ ( [ $p[] | tostring ] | join(".") ) | |
, ( getpath($p) | tojson ) | |
] | |
| join(" = ") |
extern crate gtk; | |
extern crate gdk; | |
use gtk::prelude::*; | |
use gdk::Atom; | |
use gtk::*; | |
use std::sync::atomic::{AtomicUsize, Ordering}; | |
fn main() { | |
if gtk::init().is_err() { |
/* | |
* Tested with https://add0n.com/stylus.html in Firefox 60 | |
* | |
* Highlight <a> elements with href="http://..." | |
*/ | |
a[href^="http://"]:before { | |
content: "[!]"; | |
color: red; | |
} |
FROM golang:1.10-alpine | |
COPY . /go/src/pathtocode | |
WORKDIR /go/src/pathtocode/ | |
RUN go build main.go | |
FROM alpine:3.7 | |
RUN apk add --no-cache ca-certificates | |
COPY --from=0 /go/src/pathtocode/main . | |
CMD ["./main"] |
// Replace iframes to load their real content | |
// Intended to be used in Scratchpad (Firefox) | |
(function() { | |
let sf = $(".js-stickyFooter"); | |
if(sf !== null) { sf.remove(); } | |
document.querySelectorAll("figure iframe").forEach(iframe => { | |
let src = iframe.dataset["src"]; | |
let newIframe = document.createElement("iframe"); |
Disable "heads up" notifications in Android 7 | |
$ adb shell settings set global heads_up_notifications_enabled 0 |