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
// ==UserScript== | |
// @name Embedded PDF downloader | |
// @namespace http://www.versomas.com/ | |
// @version 0.1 | |
// @description Replaces object tag for the PDF and replaces it with a simple link for download | |
// @match http://userscripts.org/scripts/show/181143 | |
// @copyright 2014, radius314 | |
// ==/UserScript== | |
var letterLink = $("object")[0].data; |
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
else if (navigator.vendor.toLowerCase().indexOf("google") > -1 && swfobject.getFlashPlayerVersion().major == 12) { | |
_modes.push(_html5, _flash, _download); | |
} |
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
--Written by Danny Gershman November 16, 2012 | |
--For cloning a database for staging a release | |
SET ANSI_NULLS ON | |
GO | |
SET QUOTED_IDENTIFIER ON | |
GO | |
CREATE PROCEDURE wrench_Table_Clone | |
@databaseName varchar(50), | |
@restoredName varchar(50) |
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
#functions | |
function func_java6() { | |
export JAVA_HOME=$JAVA6_HOME | |
echo $JAVA_HOME | |
} | |
function func_java7() { | |
export JAVA_HOME=$JAVA7_HOME | |
echo $JAVA_HOME | |
} |
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
curl -sL https://deb.nodesource.com/setup | sudo bash - | |
sudo apt-get install -y nodejs | |
hash -r | |
sudo apt-get install -y npm git openjdk-7-jre-headless | |
wget -qO - https://packages.elasticsearch.org/GPG-KEY-elasticsearch | sudo apt-key add - | |
sudo add-apt-repository "deb http://packages.elasticsearch.org/elasticsearch/1.4/debian stable main" | |
sudo apt-get update && sudo apt-get install elasticsearch | |
sudo update-rc.d elasticsearch defaults 95 10 |
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
<form> | |
<input type="text" "" |
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
cd /usr/local/src | |
git clone https://github.com/OpenZWave/open-zwave.git | |
cd open-zwave | |
wget http://ftp.gnu.org/gnu/libmicrohttpd/libmicrohttpd-0.9.42.tar.gz | |
tar -zxvf libmicrohttpd-0.9.42.tar.gz -C libmicrohttpd | |
cd libmicrohttpd | |
apt-get install libmicrohttpd10 | |
./configure && make && make install | |
cd ../ | |
git clone https://github.com/OpenZWave/open-zwave-control-panel.git |
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
vlc -vvv file:///home/danny/Downloads/test.mp3 --sout '#transcode{vcodec=none,acodec=mp3,ab=128,channels=2,samplerate=44100}:standard{access=http,dst=:8080/test.mp3' |
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
io.sockets.on('connection', function(socket) { | |
const redisQueue = redis.createClient(port, hostname); | |
redisQueue.subscribe('reporting'); | |
socket.emit('connected', "connected to the server" ); | |
count++; | |
socket.emit('real-action', getVisitEvent(count)); | |
socket.on('disconnect', function() { |
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
<script src="/socket.io/socket.io.js"></script> | |
<script type="text/javascript"> | |
var socket = io.connect(); | |
var presence = 0; | |
socket.on('real-action', function(data) { | |
presence = data.data; | |
}); | |
</script> |
OlderNewer