- javascript:alert(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
alert(document.cookie) |
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/sh | |
# Requirements: | |
# parted - to make gpt and partion | |
# sfdisk - to make mbr and partition over gpt | |
# blkid - to get UUID of partition for grub | |
# grub-pc-bin - files to install grub from UEFI-booted machines to MBR | |
usb="/dev/sdX" # path to usb device file (without number at end) sudo fdisk -l | |
iso="/path/to/windows.iso" # path to windows iso |
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
#!/usr/bin/env python | |
""" | |
Use byzanz to create a GIF screencast of a specific window. | |
Required tools: | |
sudo apt-get install byzanz x11-utils xdotool | |
A tip: use an extra-long duration (-d 100), record your shot, and use | |
gimp to shorten the duration of the last frame. You need to rename the layer | |
from "Frame 123 (100000 ms) (combine)" to "Frame 123 (1000 ms) (combine)". |
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 | |
# Copyright (c) 2014-Present, Scott Cagno | |
# All rights reserved. [BSD License] | |
# ------------------------------------------ | |
# THIS BASH SCRIPT UPLOADS A CORPUS FILE TO | |
# THE CMU ONLINE LANGUAGE MODELING GENERATOR. | |
# IT WILL RETURN AND STAGE THE GENERATED | |
# LANGUAGE MODEL AND DICTIONARY FILES IN THE | |
# SPECIFIED DIRECTORY (LANGDIR). |
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
# -p parameter tells wget to include all files, including images. | |
# -e robots=off you don't want wget to obey by the robots.txt file | |
# -U mozilla as your browsers identity. | |
# --random-wait to let wget chose a random number of seconds to wait, avoid get into black list. | |
# Other Useful wget Parameters: | |
# --limit-rate=20k limits the rate at which it downloads files. | |
# -b continues wget after logging out. | |
# -o $HOME/wget_log.txt logs the output | |
wget --random-wait -r -p -e robots=off -U mozilla http://www.example.com |
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 | |
HOSTNAME="apollo" | |
USERNAME="paretech" | |
TIMEZONE="US/Eastern" | |
LANGUAGE="en_US.UTF-8" | |
DRIVE=/dev/sda | |
MOUNT_PATH=/mnt | |
USERSHELL=/bin/bash |
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/sh | |
# Arch Linux Bootstrap Script | |
# | |
# See comments below for running | |
# | |
# Partition all of main drive | |
echo "n | |
p |
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
########################################## | |
# ofer shaham (c) | |
# 5-2014 | |
# to: towards more generic usage | |
# from: a forked gist | |
########################################## | |
#dd command + pipe the progress using: pv | |
#depend_package: dd pv | |
########################################## | |
set -o nounset |
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 stepTime = 1; | |
var col = undefined; | |
var Cell = Backbone.Model.extend({ | |
x: -1, | |
y: -1, | |
alive: false, | |
nextAlive: false, | |
initialize: function() { |
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
class TracksController < ApplicationController | |
def index | |
signed_in_user | |
end | |
def new | |
@track = Track.new | |
end | |
def create |
NewerOlder