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
# BETA | |
# [server] commented out. | |
# This is a sample configuration file for the ngIRCd IRC daemon, which must | |
# be customized to the local preferences and needs. | |
# | |
# Comments are started with "#" or ";". | |
# | |
# A lot of configuration options in this file start with a ";". You have | |
# to remove the ";" in front of each variable to actually set a value! | |
# The disabled variables are shown with example values for completeness only |
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
[11:32am] fewd: Hello | |
[11:33am] You are now known as JP. | |
[11:37am] prood joined the chat room. | |
[11:37am] prood: thanks, JP | |
[11:38am] JP: nice | |
[11:38am] JP: no bot yet… i had a some maverick growing pains | |
[11:38am] prood: this is cool for now | |
[11:41am] Hubot joined the chat room. | |
[11:41am] JP: why hello hubot | |
[11:41am] prood: welcome Hubot |
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
#Welcome Screen | |
echo "$(tput setaf 2) | |
`date +"%A, %e %B %Y, %X %Z"` | |
$(tput setaf 1)IP Addresses.......: $(tput setaf 6)`ipconfig getifaddr en0` and `wget -q -O - http://icanhazip.com/ | tail` | |
$(tput setaf 1)Weather............: $(tput setaf 3)Brooklyn `curl -s "http://rss.accuweather.com/rss/liveweather_rss.asp?metric=211&LOCCODE=11211" | sed -n '/Currently:/ s/.*: \(.*\): \([0-9]*\)\([CF]\).*/\2°\3, \1/p'` | |
$(tput sgr0)" | |
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 PubSub = function() {}; | |
//this will store the callback into the topics array | |
PubSub.prototype.subscribe = function( topic, callback, context) { | |
context = context || this; | |
this._topics = this._topics || {}; | |
this._topics[topic] = this._topics.topic || []; | |
this._topics[topic].push({ "content", context, "callback", callback }); | |
} |
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 Hapi = require('hapi'); | |
var server = new Hapi.Server(); | |
// Handler in top level | |
var status = function () { | |
this.reply('ok'); | |
}; |
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 options = { | |
url: 'https://example.foxycart.com/api', | |
form: { | |
api_token:'PUT_YOUR_API_KEY_HERE', | |
api_action:'subscription_datafeed' | |
}, | |
method: 'POST' | |
}; | |
request(options, function (error, response, body) { }); |
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
#Hack to turn off VLC2 Subtitles on OSX. | |
```` | |
% vim /Applications/VLC.app/Contents/MacOS/include/vlc/libvlc_media_player.h +1014 | |
``` | |
Commentout the line you are on in VIM. | |
``` | |
* LIBVLC_API int libvlc_video_get_spu_count( libvlc_media_player_t *p_mi ); |
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
html{ | |
margin:0; | |
padding:0; | |
overflow: hidden; | |
} | |
body{ | |
position: absolute; | |
width:100%; | |
height:100%; | |
overflow: auto; |
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
env x='() { :;}; echo vulnerable' bash -c "echo this is a test" |
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
$ free -m | |
$ java -Xmx2048M -Xms2048M -jar minecraft_server.jar nogui |