I hereby claim:
- I am rockytv on github.
- I am xinayder (https://keybase.io/xinayder) on keybase.
- I have a public key ASCYbQu4s9nK1HnyjYPHYuaR1RPqRcsplq-z8OcRXX2RXgo
To claim this, I am signing this object:
require(['gitbook', 'jquery'], (gitbook, $) => { | |
if (location.pathname == "/") { | |
// get the number of rows we'll need | |
var panels = $('div.search-noresults').find('div.panel.panel-default'); | |
var splat_panels = []; | |
for (;panels.length>0;) { | |
splat_panels.push(panels.splice(0, 2)); | |
} |
#!/bin/bash | |
MODEM_IP="192.168.1.1" | |
ROUTER_IP="192.168.0.1" | |
INTERFACE="eth0" | |
# Check if we are running the script as root | |
if [[ $(id -u) -ne 0 ]]; then | |
echo "Please execute this script as root." | |
exit 1 |
I hereby claim:
To claim this, I am signing this object:
import string | |
import random | |
import argparse | |
def generate_password(size=8, chars=string.ascii_letters + string.digits, punctuation=False): | |
if punctuation: | |
chars = chars + "!@#$*?" | |
return ''.join(random.SystemRandom().choice(chars) for _ in range(size)) |
trait Substring { | |
fn substr(&self, start_index: u32, length: u32) -> &str; | |
fn substring(&self, start_index: u32) -> &str; | |
} | |
impl Substring for str { | |
fn substr(&self, start_index: u32, length: u32) -> &str { | |
if length == 0 { return ""; } | |
if start_index == 0 && length == self.len() as u32 { return &self; } | |
return &self[start_index as usize .. start_index as usize + length as usize]; |
// ==UserScript== | |
// @name Auto Steam Discovery Queue | |
// @namespace RockyTV | |
// @description Go to next game queued as soon as page is done loading. | |
// @version 1.5 | |
// @include http://store.steampowered.com/explore/* | |
// @match *://store.steampowered.com/explore* | |
// @match *://store.steampowered.com//explore* | |
// @run-at document-end | |
// @grant none |
fn main() { | |
println!("{:?}", substr("abcdef", 2, 4)); | |
} | |
fn substr(string: &str, start_index: u32, length: u32) -> String { | |
let mut result: String = String::new(); | |
let index: usize = start_index as usize; | |
let mut lusize: usize = length as usize; | |
result.push_str(&string[index..lusize+index]); |
// Caesar's cipher implemented in Rust | |
// Made by Xinayder with the help of folks from #rust at irc.mozilla.org | |
// | |
fn encrypt(msg: &str, shift: u32) -> String { | |
let alphabet_upper: &str = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"; | |
let alphabet_lower: &str = "abcdefghijklmnopqrstuvwxyz"; | |
let mut result: String = String::new(); | |
for c in msg.chars() { | |
if c.is_whitespace() { |
function customJoin(gameid) { | |
var modal = ShowBlockingWaitDialog('Joining game', 'Attempting to join game...'); | |
$J.post( | |
'http://steamcommunity.com/minigame/ajaxjoingame/', | |
{ 'gameid' : gameid } | |
).done(function(json) { | |
if (json.success == '1') { | |
modal.Dismiss(); | |
modal = ShowDialog('Joining game', 'Game found! Redirecting you in a few seconds.'); | |
window.setTimeout("top.location.href = 'http://steamcommunity.com/minigame/towerattack/'", 1500); |
// HOW TO USE: | |
// Copy the contents of this file | |
// Open up the developer console | |
// Paste the contents of this file and press enter. | |
function autoJoinGame() { | |
CModal.DismissActiveModal(); | |
ShowAlertDialog("Auto-Join", "Trying to join game..."); | |
$J.post('http://steamcommunity.com/minigame/ajaxjoingame/', | |
{ 'gameid': 0 } |