Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000
{ | |
"requireSpacesInConditionalExpression": true, | |
"requireSpacesInFunction": { | |
"beforeOpeningCurlyBrace": true | |
}, | |
"disallowSpacesInFunction": { | |
"beforeOpeningRoundBrace": true | |
}, | |
"requireMultipleVarDecl": "onevar", | |
"requireSpacesInsideObjectBrackets": "all", |
require 'oauth2' | |
class WelcomeController < ApplicationController | |
# You need to configure a tenant at Azure Active Directory(AAD) to register web app and web service app | |
# You will need two entries for these app at the AAD portal | |
# You will put clientid and clientsecret for your web app here | |
# ResourceId is the webservice that you registered | |
# RedirectUri is registered for your web app | |
CLIENT_ID = 'b6a42...' | |
CLIENT_SECRET = 'TSbx..' |
from random import choice | |
def genCode(len): | |
return ''.join([choice('abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789') for i in range(len)]) | |
print '%s-%s-%s-%s' % (genCode(3), genCode(3), genCode(3), genCode(3)) |
### BEGIN INIT INFO | |
# Provides: Xvfb | |
# Required-Start: $local_fs $remote_fs | |
# Required-Stop: | |
# X-Start-Before: | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
# Short-Description: Loads X Virtual Frame Buffer | |
### END INIT INFO |
// Just before switching jobs: | |
// Add one of these. | |
// Preferably into the same commit where you do a large merge. | |
// | |
// This started as a tweet with a joke of "C++ pro-tip: #define private public", | |
// and then it quickly escalated into more and more evil suggestions. | |
// I've tried to capture interesting suggestions here. | |
// | |
// Contributors: @r2d2rigo, @joeldevahl, @msinilo, @_Humus_, | |
// @YuriyODonnell, @rygorous, @cmuratori, @mike_acton, @grumpygiant, |
// Disqus Tracking | |
/* | |
Put <div id="disqus_thread"></div> above | |
*/ | |
var disqus_shortname = 'yourfuckingpollingplace'; // required: replace example with your forum shortname | |
function track_disqus(comment) { | |
_gaq.push(['_trackEvent', 'Disqus', 'Comment', document.title]); | |
}; |
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000
/** | |
* The code below renders additional custom attachment fields into the | |
* new media manager. | |
* | |
* I am assuming you are using your own custom media modal frame. By | |
* extending the default Attachment.Details subview, we can append our | |
* custom fields to the default fields listed. | |
* | |
* In the initialize function, we ensure that our changes are always up | |
* to date by "listening" to our model's change event and updating the |
#!/usr/bin/env ruby | |
# | |
# Proof-of-Concept exploit for Rails Remote Code Execution (CVE-2013-0156) | |
# | |
# ## Advisory | |
# | |
# https://groups.google.com/forum/#!topic/rubyonrails-security/61bkgvnSGTQ/discussion | |
# | |
# ## Caveats | |
# |
/*! | |
* jQuery pub/sub plugin by Peter Higgins | |
* https://github.com/phiggins42/bloody-jquery-plugins/blob/master/pubsub.js | |
* | |
* Modified by Tobin Bradley | |
* | |
* AFL/BSD Licensed | |
*/ | |
;(function(d){ | |
// the topic/subscription hash |