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
// 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) { |
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
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 |
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
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
/* 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'], |
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
version: '2' | |
services: | |
memcached: | |
image: memcached | |
app: | |
image: user/app | |
environment: | |
RAILS_ENV: development |
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
// 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) { |
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
// 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) { |
- intro, download, install & setup
- basics, syntax
- control flow
- more types, data structures
- methods & interfaces
- concurrency
- nice to know stuff
- golang gotchas <-- especially if you are coming from python, ruby etc
- workspace
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
// 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 { |
NewerOlder