-
setup traefik This is a bit out of the scope of this guide. I set traefik outside of this docker compose file, since its beign used by many separate setups on my machine. But you can put traefik in the same override file, if you do not intend to use it for other service (but it makes no sense to use it at all in that case). I use combination os OSX's /etc/resolver and dnsmasq to resolve subdomain.test. tld to localhost adresses.
-
clone repo https://github.com/iv-org/invidious/
-
comment out "ports:" section of invidious service. Unfortunately there is no way to override it.
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
#!/bin/sh | |
## To setup (under root): | |
## omv-env set -- OMV_GOTIFY_ENDPOINT <VALUE> | |
## omv-env set -- OMV_GOTIFY_TOKEN <VALUE> | |
## and put file to: /usr/share/openmediavault/notification/sink.d/98gotify | |
## chmod +x /usr/share/openmediavault/notification/sink.d/98gotify | |
## see https://docs.openmediavault.org/en/stable/various/advset.html | |
set -e | |
. /etc/default/openmediavault |
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
[Unit] | |
Description=Snapper Clone Service | |
[Service] | |
ExecStart=/bin/bash -c 'chmod +x /home/senz/bin/snapper-clone.sh && /home/senz/b | |
in/snapper-clone.sh' | |
User=root | |
Group=root | |
Type=simple |
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 bash | |
## Usage: | |
## ./migrate.sh $clone_url $project_name $owner_uid | |
## Migrate a repository to gogs into the user namespace of the token-user | |
## ./migrate.sh [email protected]:group/repo.git repo 1 | |
## uid can be a group uid | |
## NB: for local migration, if your gogs instance is inside docker or vm, you must provide path local relative to container's fs | |
echo $1; |
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
const fs = require('fs'); | |
let profile = fs.readFileSync(process.cwd() + '/firefox_profile.zip').toString('base64'); | |
module.exports = { | |
hermione: { | |
browsers: { | |
firefox: { | |
desiredCapabilities: { | |
browserName: "firefox", | |
firefox_profile: profile |
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 | |
return [ | |
'list' => [ | |
['http://list.iblocklist.com/?list=ydxerpxkpcfqjaybcssw&fileformat=p2p&archiveformat=gz', 'p2p', 'gz', 'bluetack-level1'], | |
['http://list.iblocklist.com/?list=gyisgnzbhppbvsphucsw&fileformat=p2p&archiveformat=gz', 'p2p', 'gz', 'bluetack-level2'], | |
['http://list.iblocklist.com/?list=plkehquoahljmyxjixpu&fileformat=p2p&archiveformat=gz', 'p2p', 'gz', 'bluetack-suspicious'], | |
['http://list.iblocklist.com/?list=xshktygkujudfnjfioro&fileformat=p2p&archiveformat=gz', 'p2p', 'gz', 'bluetack-microsoft'], | |
['http://list.iblocklist.com/?list=gihxqmhyunbxhbmgqrla&fileformat=p2p&archiveformat=gz', 'p2p', 'gz', 'blutack-bogon'], | |
['http://list.iblocklist.com/?list=lujdnbasfaaixitgmxpp&fileformat=p2p&archiveformat=gz', 'p2p', 'gz', 'cidr-report.org-bogon'], | |
['http://list.iblocklist.com/?list=cwworuawihqvocglcoss&fileformat=p2p&archiveformat=gz', 'p2p', 'gz', 'bluetack-badpeers'], |
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/php | |
<?php | |
/** | |
* Created by IntelliJ IDEA. | |
* User: senz | |
* Date: 24.04.16 | |
* Time: 14:54 | |
*/ | |
$opts = getopt('', [ |
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
# github.com/senz | |
use_synth :mod_sine | |
use_bpm 40 | |
counter = 0 | |
v1l = [:C3, :D3, :E3, :F3, :G3, :A3, :B3].ring | |
v2l = [:C4, :D4, :E4, :F4, :G4, :A4, :B4].ring | |
v3l = [:C5, :D5, :E5, :F5, :G5, :A5, :B5].ring | |
a = 1 |
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
package com.mixpanel.mixpanelapi | |
import java.io._ | |
import java.net.{URLEncoder, URLConnection, URL, InetAddress} | |
import scala.collection.JavaConverters._ | |
import org.json.{JSONArray, JSONObject} | |
class ExtendedMixpanelAPI(protected final val eventsEndpoint: String, protected final val peopleEndpoint: String) { | |
/** |
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> | |
<body> | |
<script> | |
"use strict"; | |
var obj = {lolo: 1}; | |
console.log("ljambda this in strict:", (function(){ return this === undefined; })()); | |
(function() { | |
console.log("current context:", this); | |
var Fn = Function, global = new Fn('"use strict"; return this')(); | |
console.log("evaled func this is (strict): ", global); |
NewerOlder