Skip to content

Instantly share code, notes, and snippets.

View CodeFreezr's full-sized avatar

CodeFreezr CodeFreezr

View GitHub Profile
@CodeFreezr
CodeFreezr / ExportKindle.js
Created May 18, 2020 22:13 — forked from jkubecki/ExportKindle.js
Amazon Kindle Export
// The following data should be run in the console while viewing the page https://read.amazon.com/
// It will export a CSV file called "download" which can (and should) be renamed with a .csv extension
var db = openDatabase('K4W', '2', 'thedatabase', 1024 * 1024);
getAmazonCsv = function() {
// Set header for CSV export line - change this if you change the fields used
var csvData = "ASIN,Title,Authors,PurchaseDate\n";
db.transaction(function(tx) {
@CodeFreezr
CodeFreezr / jenkins_plugins_dependencies_dot.groovy
Last active September 20, 2017 15:00
Simple Jenkins Inline script to generate dot graph of plugin dependencies
def plugins = jenkins.model.Jenkins.instance.getPluginManager().getPlugins()
println "digraph test {"
println "rankdir=LR;"
println "node [shape = box,height=.1,fontsize=48,fontname=Helvetica,fillcolor=yellow,style=filled];"
plugins.each {
def plugin = it.getShortName()
println "\"${plugin}\";"
def deps = it.getDependencies()
deps.each {
def s = it.shortName
@nickkraakman
nickkraakman / ffmpeg-cheatsheet.md
Last active July 9, 2024 12:55
FFmpeg cheat sheet for 360 video

FFmpeg Cheat Sheet for 360º video

Brought to you by Headjack

 
FFmpeg is one of the most powerful tools for video transcoding and manipulation, but it's fairly complex and confusing to use. That's why I decided to create this cheat sheet which shows some of the most often used commands.

 
Let's start with some basics:

  • ffmpeg calls the FFmpeg application in the command line window, could also be the full path to the FFmpeg binary or .exe file
@CodeFreezr
CodeFreezr / extendvscode.groovy
Last active September 20, 2017 15:00
Download and install 23 #vscode Extensions for DevOps and CI/CD at once.
/* DevOps CI/CD */
def extensions = [
1: [name:'code-runner', version: '0.6.15', publisher: 'formulahendry'],
2: [name:'jenkins-status', version: '0.3.0', publisher: 'alefragnani'],
3: [name:'jenkinsfile-support', version: '0.1.0', publisher: 'secanis'],
4: [name:'vscode-yaml-validation', version: '0.0.1', publisher: 'djabraham'],
5: [name:'code-settings-sync', version: '2.6.1', publisher: 'Shan'],
6: [name:'scala', version: '0.0.4', publisher: 'daltonjorge'],
7: [name:'google-search-ext', version: '0.1.2', publisher: 'adelphes'],
8: [name:'java', version: '0.0.13', publisher: 'redhat'],
@vcastellm
vcastellm / docker-compose.yml
Last active December 6, 2017 17:12
docker compose for ecs-cli
version: '2'
services:
memcached:
image: memcached
app:
image: user/app
environment:
RAILS_ENV: development
@treerao
treerao / ExportKindle.js
Last active May 18, 2020 22:13 — forked from jkubecki/ExportKindle.js
Amazon Kindle Export
// The following data should be run in the console while viewing the page https://read.amazon.com/
// It will export a CSV file called "download" which can (and should) be renamed with a .csv extension
var db = openDatabase('K4W', '2', 'thedatabase', 1024 * 1024);
getAmazonCsv = function() {
// Set header for CSV export line - change this if you change the fields used
var csvData = "ASIN,Type,Title,Authors,PurchaseDate\n";
db.transaction(function(tx) {
@jkubecki
jkubecki / ExportKindle.js
Last active June 1, 2024 22:51
Amazon Kindle Export
// The following data should be run in the console while viewing the page https://read.amazon.com/
// It will export a CSV file called "download" which can (and should) be renamed with a .csv extension
var db = openDatabase('K4W', '3', 'thedatabase', 1024 * 1024);
getAmazonCsv = function() {
// Set header for CSV export line - change this if you change the fields used
var csvData = "ASIN,Title,Authors,PurchaseDate\n";
db.transaction(function(tx) {
@marcelbirkner
marcelbirkner / accessGitLabRestApi.groovy
Created September 24, 2015 20:17
Access GitLab REST API with Groovy
// GitLab Settings
def gitUrl = 'http://git/api/v3'
def privateToken = 'xYxYxYxYxYxYxYxYxYxY'
def currentPage = 1
def projectsPerPage = 100
// Reading projects from GitLab REST API
def projectList = new URL("${gitUrl}/projects/all?page=${currentPage}&per_page=${projectsPerPage}&private_token=${privateToken}")
def projects = new groovy.json.JsonSlurper().parse(projectList.newReader())
projects.each {