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 | |
# to automatically add a key you can use the following: | |
mac_key_path='/Users/hb/.ssh/foobar' | |
linux_key_path='/home/username/.ssh/foobar' | |
# uncommend below | |
# ssh-add $mac_key_path | |
# ssh-add $linux_key_path |
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 morse = require('morse'); | |
var childProcess = require('child_process'); | |
var async = require('async'); | |
var encoded = morse.encode('SOS'); | |
function onoff (duration, callback) { | |
childProcess.exec('xset led 3',function (error, stdout, stderr){ | |
}); | |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Float</title> | |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> | |
</head> | |
<style> | |
.left { | |
width: 300px; | |
float: left; |
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
###################################################### | |
# Project: http://code.google.com/p/51-android/ # | |
# File: /etc/udev/rules.d/51-android.rules # | |
# Author: snowdream <yanghui1986527@gmail.com> # | |
# Date: 2010.06.07 # | |
###################################################### | |
#Acer | |
SUBSYSTEM=="usb", ATTRS{idVendor}=="0502", MODE="0660", OWNER="snowdream" |
We can make this file beautiful and searchable if this error is corrected: It looks like row 2 should actually have 5 columns, instead of 6. in line 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
Name,Gender,"preferred language",startDate,endDate | |
Barbara McFinley,Female,JavaScript,2015-13-01,, |
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
package main | |
import ( | |
"log" | |
"io/ioutil" | |
"os" | |
"os/exec" | |
"path/filepath" | |
"runtime" |
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 | |
/** | |
** A base module for [text], [text*], [email], and [email*] | |
**/ | |
/* Shortcode handler */ | |
wpcf7_add_shortcode( 'text', 'wpcf7_text_shortcode_handler', true ); | |
wpcf7_add_shortcode( 'text*', 'wpcf7_text_shortcode_handler', true ); | |
wpcf7_add_shortcode( 'email', 'wpcf7_text_shortcode_handler', true ); |
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
net stop w32time | |
net start w32time | |
w32tm /resync /nowait | |
# $trigger = New-JobTrigger -AtStartup -RandomDelay 00:00:30 | |
# Register-ScheduledJob -Trigger $trigger -FilePath C:\Users\jonat\ntp-trigger.ps1 -Name StartupTriggerNTP |
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
/run SendChatMessage(GetRandomArgument("Bombidum..","Hop along, my hearties!","Wake now my merry lads!","Merry dol! Derry dol! My darling!", "Tom Bom, jolly Tom, Tom Bombadillo!"),"SAY") |
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
// file: index.js | |
var _ = require("lodash"); | |
var express = require("express"); | |
var bodyParser = require("body-parser"); | |
var jwt = require('jsonwebtoken'); | |
var passport = require("passport"); | |
var passportJWT = require("passport-jwt"); |