Skip to content

Instantly share code, notes, and snippets.

@mistic100
mistic100 / vimeo-downloader.js
Created September 15, 2018 09:01
Download video from Vimeo (chopped m4s files)
// 1. Open the browser developper console on the network tab
// 2. Start the video
// 3. In the dev tab, locate the load of the "master.json" file, copy its full URL
// 4. Run: node vimeo-downloader.js "<URL>"
// 5. Combine the m4v and m4a files with mkvmerge
const fs = require('fs');
const url = require('url');
const https = require('https');
@jpuskar
jpuskar / gist:e7d41f44f9d565f2c4e39bf5ea80e37a
Last active April 2, 2023 09:25 — forked from nvalentine-puppetlabs/gist:7036421
List Exported Resources via PuppetDB query
curl -G -H "Accept: application/json" http://localhost:8080/pdb/query/v4/resources --data-urlencode 'query=["=","exported", true]'
@jarek-przygodzki
jarek-przygodzki / jenkins-delete-failed-builds.groovy
Created May 5, 2015 05:28
Delete all failed Jenkins builds
def jobName = '(...)'
Jenkins.instance.getItemByFullName(jobName).builds.findAll { it.result == Result.FAILURE}.each { it.delete() }
@mosabua
mosabua / init.gradle
Last active January 21, 2020 04:15
init.gradle file for proxying all repositories with Sonatype Nexus
/**
* init.gradle file for development using Nexus as proxy repository
*
* @author Manfred Moser <manfred@simpligility.com
*/
apply plugin:NexusRepositoryPlugin
class NexusRepositoryPlugin implements Plugin<Gradle> {
@stephanb
stephanb / svn-add-all-rm-all
Created December 2, 2014 14:12
SVN: add all modified files; delete all removed files
svn rm $(svn status | grep "^\!" | cut -d " " -f 8)
svn add $(svn status | grep "^?" | cut -d " " -f 8)