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 | |
find masters -regex '.*[wavmp3ogg]' | while read f; do | |
file=${f##*/} | |
filename=${file%.*} | |
echo "Converting file $f to web/$filename.mp3 web/$filename.ogg" | |
ff=$(printf '%q' "$f") |
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
<?xml version="1.0"?> | |
<root> | |
<item> | |
<name>ScrollWheel(Left/Right)</name> | |
<appendix>(You can switch Desktop by scroll wheel left/right.)</appendix> | |
<identifier>private.scroll_wheel_left_right</identifier> | |
<autogen> | |
__ScrollWheelToKey__ | |
ScrollWheel::LEFT | ModifierFlag::NONE, | |
KeyCode::CURSOR_LEFT, ModifierFlag::CONTROL_R |
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
RewriteEngine on | |
RewriteBase / | |
RewriteCond %{REMOTE_ADDR} !^127\.0\.0\.1 # Developer IP | |
RewriteCond %{REQUEST_URI} !^/maintenance\.html$ | |
RewriteRule ^(.*)$ http://myhost.co.uk/maintenance.html [R=307,L] |
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
// TypeScript | |
class Point | |
{ | |
public x: number; | |
public y: number; | |
constructor(x:number = 0.0, y:number = 0.0) | |
{ | |
this.x = x; | |
this.y = y; |
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 statementDate = new Date(Date.parse(document.getElementsByClassName('hsbcTextRight')[0].textContent)); | |
var rows = | |
document | |
.getElementsByTagName('table')[1] // Second table | |
.getElementsByTagName('tbody')[0] // Table body | |
.getElementsByTagName('tr'); // Table body rows | |
// Convert HTMLCollection to Array. | |
rows = [].slice.call(rows); | |
// Trim top and bottom rows. | |
rows.shift(); |
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
[root@freenas] ~# gpart list ada2 | |
Geom name: ada2 | |
modified: false | |
state: OK | |
fwheads: 16 | |
fwsectors: 63 | |
last: 8191999966 | |
first: 34 | |
entries: 128 | |
scheme: GPT |
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
<--------------- RAID Z ----------- ---> | |
3 TB 4 TB 4 TB | |
+----------+ +----------+ +----------+ | |
| | | | | | | |
| 3 TB | | 3 TB | | 3 TB | | |
| | | | | | | |
+----------+ +----------+ |..........| | |
| 1 TB | | 1 TB | | |
+----------+ +----------+ | |
<---------MIRROR---------> |
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
/* global require */ | |
var _ = require('lodash'); | |
var browserify = require('browserify'); | |
var browserSync = require('browser-sync'); | |
var buffer = require('vinyl-buffer'); | |
var del = require('del'); | |
var gulp = require('gulp'); | |
var gutil = require('gulp-util'); | |
var minify = require('gulp-minify-css'); |
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
/*jshint loopfunc: true */ | |
(function() { | |
'use strict'; | |
var beautify = require('js-beautify').js_beautify; | |
var fs = require('fs'); | |
var glob = require('glob'); | |
var path = require('path'); | |
var mkdirp = require('mkdirp'); | |
var process = require('process'); | |
var regex = { |
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
AppsKey & Insert:: | |
Send {Media_Play_Pause} | |
KeyWait Insert | |
Return | |
AppsKey & Delete:: | |
Send {Media_Prev} | |
KeyWait Delete | |
Return |