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
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
chmod +x *.sh
./nginx-start.sh
sudo apt-get update | |
# get ec2 ip and hostname | |
sudo apt-get install -y build-essential g++ libssl-dev apache2-utils git libxml2-dev screen | |
#install node | |
git clone https://github.com/joyent/node.git | |
# git checkout v0.10.13 did work once, but I couldn't work again, so I fell back to 0.8 | |
#compilation takes over 30 minutes on a t1.micro |
To view the progress of a Powerpoint presentation, a progress bar can be displayed at the bottom of the slide show.
Once the slideshow is complete, go to Tools > Macro > Visual Basic Editor.
In the new window, select Insert > Module and copy this text in the blank page:
Sub AddProgressBar()
On Error Resume Next
# Assuming an Ubuntu Docker image | |
$ docker run -it <image> /bin/bash |
Hey All, | |
I am P.B.Surya.Subhash, a 17 Year coder,hacker and a student. | |
Recently I happen to see so many posts regarding this " Google XSS Challenge " and i was fortunate enough to complete them.. | |
These are the solutions for the challenges ;) | |
############################################################################## | |
Level 1: Hello, world of XSS | |
https://xss-game.appspot.com/level1/frame | |
query=<script>alert('xss')</script> |
All of the below properties or methods, when requested/called in JavaScript, will trigger the browser to synchronously calculate the style and layout*. This is also called reflow or layout thrashing, and is common performance bottleneck.
Generally, all APIs that synchronously provide layout metrics will trigger forced reflow / layout. Read on for additional cases and details.
elem.offsetLeft
, elem.offsetTop
, elem.offsetWidth
, elem.offsetHeight
, elem.offsetParent
FWIW: I (@rondy) am not the creator of the content shared here, which is an excerpt from Edmond Lau's book. I simply copied and pasted it from another location and saved it as a personal note, before it gained popularity on news.ycombinator.com. Unfortunately, I cannot recall the exact origin of the original source, nor was I able to find the author's name, so I am can't provide the appropriate credits.
// Create a dummy analytics object until real loaded | |
window.analytics || (window.analytics = []); | |
window.analytics.methods = ['identify', 'track', 'trackLink', 'trackForm', 'trackClick', 'trackSubmit', 'page', 'pageview', 'ab', 'alias', 'ready', 'group', 'on', 'once', 'off']; | |
window.analytics.factory = function(method) { | |
return function() { | |
var args = Array.prototype.slice.call(arguments); | |
args.unshift(method); | |
window.analytics.push(args); | |
return window.analytics; | |
}; |