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 | |
/** | |
* GPX to Runkeeper mass data importer | |
* | |
* @author Daniel Seripap <daniel@seripap.com> | |
* @copyright Daniel Seripap (c) 2014 | |
* @version 1.0 | |
* @license MIT | |
* | |
* This uses the HealthGraph API wrapper to import GPX data to Runkeeper. |
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
+1 | |
3 | |
8-bit | |
90's | |
Actually | |
Aesthetic | |
American | |
Anderson | |
Apparel | |
Art |
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
# Directory | |
find / -type d -name '*wildcard*' -exec rm -r "{}" \; |
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
ffmpeg -i file.mp4 2>&1 | grep Duration | awk '{print $2}' | tr -d , |
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
var month= ["January","February","March","April","May","June","July", | |
"August","September","October","November","December"]; | |
var month = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul","Aug", "Sep", "Oct", "Nov", "Dec"]; | |
//used with date.getMonth() |
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
# to generate your dhparam.pem file, run in the terminal | |
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048 |
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
'use strict'; | |
import dns from "dns"; | |
import sys from "sys"; | |
import fs from "fs"; | |
const items = JSON.parse(fs.readFileSync('./shake.json')); | |
function checkAvailable(name, callback) { | |
dns.resolve4( name, (err, addresses) => { |
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
'use strict'; | |
import Crawler from "simplecrawler"; | |
import fs from 'fs'; | |
Crawler.crawl("http://www.google.com").on("fetchcomplete", (queueItem, responseBuffer, response) => { | |
console.log("Completed fetching resource:", queueItem.url); | |
if (queueItem.url.indexOf('png') > 0 || queueItem.url.indexOf('jpg') > 0 || queueItem.url.indexOf('gif') > 0 || queueItem.url.indexOf('jpeg') > 0) { | |
let filename = queueItem.url.substring(queueItem.url.lastIndexOf('/')+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
# squash integer | |
function squash() { | |
git rebase -i HEAD~${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
docker stop $(docker ps -a -q) | |
docker rm $(docker ps -a -q) |
OlderNewer