- pom.xml
<dependency>
<groupId>com.hubspot.jinjava</groupId>
<artifactId>jinjava</artifactId>
<version>2.2.0</version>
</dependency>
<dependency>
<groupId>com.hubspot.jinjava</groupId>
<artifactId>jinjava</artifactId>
<version>2.2.0</version>
</dependency>
This is inspired (or basically copied) from How To Merge Github Wiki Changes From One Repository To Another, by Roman Ivanov, and serves to ensure that should something happen to the original article, the information remains nice and safe here.
OREPO: original repo - the repo created or maintained by the owner
FREPO: the forked repo that presumably has updates to its wiki, not yet on the OREPO
/* | |
* Copyright 2010-2017 JetBrains s.r.o. | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); | |
* you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* | |
* Unless required by applicable law or agreed to in writing, software |
import acoustid # the library for creating the fingerprints | |
import urllib.request # for sending the request to AcoustId's server | |
from mutagen.id3 import ID3 # for extracting the musicbrainz recording id | |
def main(): | |
api_key = YOUR_API_KEY # find it at https://acoustid.org/api-key | |
path = '/path/to/directory/of/music' | |
songs = ['song1.mp3', 'anothersong.mp3'] # an array of the songs in that path | |
paths = [path + song for song in songs] | |
for i,song in enumerate(paths): |
import groovy.grape.Grape; | |
// to explain why I am not using @Grape annotation | |
// see http://stackoverflow.com/questions/1641116/groovy-with-grape-and-antbuilder-classloader-problem | |
Grape.grab( | |
group: 'com.google.javascript', | |
module: 'closure-compiler', | |
version: 'r1918', | |
classLoader:this.class.classLoader.rootLoader /* needed because of ant.taskdef classloader */) |
########## | |
# Tweaked Win10 Initial Setup Script | |
# Primary Author: Disassembler <[email protected]> | |
# Modified by: alirobe <[email protected]> based on my personal preferences. | |
# Version: 2.20.2, 2018-09-14 | |
# Primary Author Source: https://github.com/Disassembler0/Win10-Initial-Setup-Script | |
# Tweaked Source: https://gist.github.com/alirobe/7f3b34ad89a159e6daa1/ | |
# Tweak difference: | |
# | |
# @alirobe's version is a subset focused on safely disabling telemetry, some 'smart' features and 3rd party bloat ... |
#!/bin/bash | |
# This script dumps a database to SQL, compresses, encrypts and timestamps it, then saves it to Dropbox. Ideal for a cronjob. | |
# It uses symmetric encryption, so guard your password carefully. | |
# | |
# NOT RECOMMENDED FOR LARGE DATABASES! | |
# Dump a MySQL database | |
# Read this for how to get your password into mysqldump: | |
# https://dev.mysql.com/doc/refman/5.1/en/password-security-user.html | |
mysqldump -u username > database.sql |
// using jitsi API: https://jitsi.github.io/handbook/docs/dev-guide/dev-guide-iframe | |
<script src='https://meet.jit.si/external_api.js'></script> | |
<script> | |
const domain = 'meet.jit.si'; | |
const options = { | |
roomName: 'JitsiMeetAPIExample', | |
width: '1200px', | |
height: '800px', | |
parentNode: document.querySelector('#conference') |
class MainTest { | |
static public function main() { | |
trace("Hello world!"); | |
trace('Fibonacci of 7 is: ${fibonacci(7)}'); | |
} | |
static function fibonacci(n) { | |
if (n == 0) return 0; | |
else if (n == 1) return 1; |
#!/bin/bash | |
## incremental rsync backup script | |
## run hourly via cron, will take a back up every 24hrs for up to 7days. | |
## efficent use of space using hard links | |
## can handle computers been turned on / off | |
## executes n backup processes in parallel | |
# ------------- computers to backup ----------------------------------- | |
# IP Address or fully qualified names here + remote backup directory |