This file contains hidden or 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 | |
| # | |
| # no-hex-clean.sh | |
| # | |
| # Usage: Pipe hex codes to this script | |
| # | |
| # e.g. | |
| # | |
| # $ cat *.svg | perl -ne '/(#[0-9A-Fa-f]{6})/g && print "$1\n"' | sort | uniq | ./no-hex-clean.sh | |
| # |
This file contains hidden or 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
| smartctl 6.5 2016-01-24 r4214 [x86_64-linux-4.4.0-31-generic] (local build) | |
| Copyright (C) 2002-16, Bruce Allen, Christian Franke, www.smartmontools.org | |
| === START OF INFORMATION SECTION === | |
| Device Model: LITEONIT LGT-256M6G | |
| Serial Number: SD0E97903L1TH4510BJF | |
| Firmware Version: 2G87901 | |
| User Capacity: 256,060,514,304 bytes [256 GB] | |
| Sector Size: 512 bytes logical/physical | |
| Rotation Rate: Solid State Device |
This file contains hidden or 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
| smartctl 6.5 2016-01-24 r4214 [x86_64-linux-4.4.0-31-generic] (local build) | |
| Copyright (C) 2002-16, Bruce Allen, Christian Franke, www.smartmontools.org | |
| === START OF INFORMATION SECTION === | |
| Device Model: LITEONIT LGT-256M6G | |
| Serial Number: SD0E97903L1TH4510BJF | |
| Firmware Version: 2G87901 | |
| User Capacity: 256,060,514,304 bytes [256 GB] | |
| Sector Size: 512 bytes logical/physical | |
| Rotation Rate: Solid State Device |
This file contains hidden or 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
| smartctl 6.5 2016-01-24 r4214 [x86_64-linux-4.4.0-31-generic] (local build) | |
| Copyright (C) 2002-16, Bruce Allen, Christian Franke, www.smartmontools.org | |
| === START OF INFORMATION SECTION === | |
| Device Model: LITEONIT LGT-256M6G | |
| Serial Number: SD0E97903L1TH4510BJF | |
| Firmware Version: 2G87901 | |
| User Capacity: 256,060,514,304 bytes [256 GB] | |
| Sector Size: 512 bytes logical/physical | |
| Rotation Rate: Solid State Device |
This file contains hidden or 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/env perl | |
| # | |
| # Download all the torrents for a particular ubuntu release. | |
| # | |
| # Requires: wget | |
| # | |
| # Usage: | |
| # perl download-ubuntu-torrents.pl /tmp/ | |
| # |
This file contains hidden or 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
| $('body').append([ | |
| "<div class='loading-screen' style='z-index:1005'>", | |
| "<div class='loading-container'>", | |
| "<div class='text'>Loading " + item.name + " (" + item.id + ")", | |
| "<div class='progress progress-striped active' style='width: 100%'>", | |
| <div class='bar' style='width: 100%;'></div>", | |
| "</div>", | |
| "</div>", | |
| "</div>", | |
| "</div>" |
This file contains hidden or 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
| if (!fee.length){ | |
| error = 'Amount is required.'; | |
| } | |
| else if (!/^\-?[0-9]*\.?[0-9]{0,2}$/.test(fee)){ | |
| error = 'Amount must be a valid number.'; | |
| } | |
| else if (parseFloat(fee) < 0){ | |
| error = 'Amount must be greater than 0.'; | |
| } | |
| else { |
This file contains hidden or 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
| undefined:18 | |
| buf.push('<![CDATA[\n{for p in chosen} | |
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
| SyntaxError: Unexpected token ILLEGAL | |
| at Object.Function (<anonymous>) | |
| at Object.exports.compile (/home/zivester/code/DJPhoto/server/node_modules/jade/lib/jade.js:176:8) | |
| at /home/zivester/code/DJPhoto/server/node_modules/jade/bin/jade:142:23 | |
| at fs.js:241:14 | |
| at Object.oncomplete (fs.js:93:15) | |
| at process._makeCallback (node.js:306:20) |
This file contains hidden or 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
| // Return a buffer, that when encoded to base64, will be of size "length" | |
| exports.randomBytesBase64 = function(length){ | |
| length = Math.ceil(length * 3/4); | |
| return require('crypto').randomBytes(length); | |
| } | |
| // Take a buffer and create a base64, url safe encoding | |
| exports.urlEncode = function(buffer){ | |
| return buffer.toString('base64').replace(/\//g,'_').replace(/\+/g,'-'); | |
| } |
This file contains hidden or 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 events = require('events'), | |
| util = require('util'), | |
| io = require('socket.io-client'), | |
| url = "ws://localhost:12345", // intentionally an unreachable URL | |
| socketOptions = { | |
| "transports" : [ "websocket" ], | |
| "try multiple transports" : false, | |
| "reconnect" : false, | |
| "connect timeout" : 5000 | |
| }; |
NewerOlder