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
$ keytool -changealias -keystore MY_KEYSTORE_2.jks -alias XXX-XXX-XXX-XXX-XXX -destalias MY_ALIAS |
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
DateTimeFormatterBuilder dtfb = new DateTimeFormatterBuilder().appendYear(4, 4).appendMonthOfYear(2).appendDayOfMonth(2); | |
DateTimeFormatter formatter = dtfb.toFormatter(); | |
String s = "20140501"; | |
String e = "20140510"; | |
LocalDate start = LocalDate.parse(s,formatter); | |
LocalDate end = LocalDate.parse(e,formatter); | |
StringBuilder sb = new StringBuilder(); | |
while (!start.isAfter(end)) { | |
formatter.printTo(sb,start); |
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
<?xml version="1.0" encoding="utf-8"?> | |
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:fn="http://www.w3.org/2005/xpath-functions"> | |
<xsl:output method="xml" indent="yes"/> | |
<xsl:template match="@* | node()"> | |
<xsl:copy> | |
<xsl:apply-templates select="@* | node()"/> | |
</xsl:copy> | |
</xsl:template> |
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
#!/bin/sh | |
dvgrab --autosplit --timestamp video- |
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
#!/usr/bin/perl | |
use strict; | |
use warnings; | |
use Net::Pcap; | |
use NetPacket::Ethernet qw(:types); | |
use NetPacket::IP qw(:protos); | |
use NetPacket::UDP; |
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
#!/bin/sh | |
DEST=$1 | |
cvlc v4l2:///dev/video0 :input-slave=alsa://hw:3,0 --sout '#transcode{vcodec=h264,vb=400,venc=x264{profile=baseline},scale=Auto,width=480,height=352,acodec=mp2,ab=24,channels=2,samplerate=44100}:standard{mux=mp4, access=file, dst='$DEST'}' |
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
(function () { | |
var log, global = (function () { | |
return this; | |
}).call(null); | |
var ready = false; | |
var check = function () { | |
if (!ready) { | |
init(); | |
} |
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
#!/bin/bash | |
USER=$1 | |
PASSWORD=$2 | |
LOGIN_AJAX_SERVICE=$3 | |
if [ -z "$1" ]; then | |
echo "ERROR: USER REQUIRED (first parameter)"; | |
exit 1; | |
fi | |
if [ -z "$2" ]; then |
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
#!/bin/bash | |
# Inspired by http://askubuntu.com/a/469040/99692 | |
sudo bash -c "echo 600 > /sys/class/backlight/intel_backlight/brightness" |
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
function loadScripts(scripts, doneCallback) { | |
var i = 0; | |
var fn; | |
var fns = []; | |
var slist = []; | |
var load = function (s, h) { | |
console.log("Loading JS " + s); |