I hereby claim:
- I am sboesen on github.
- I am sboesen (https://keybase.io/sboesen) on keybase.
- I have a public key whose fingerprint is C27E FFD5 F2C1 DA51 B5CB BAAD EC28 F63D D1AC 32D4
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
Copyright (c) 2016 Stefan Boesen | |
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: | |
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. | |
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE O |
alpha = 'abcdefghijklmnopqrstuvwxyz1234567890ABCDEFGHIJKLMNOPQRSTUVWXYZ'.scan(/./) | |
alpha.each do |i| | |
key_s = "Gr34tW0RkEnjoY1T" | |
key_e = ""; | |
res = `./crypt #{key_s}#{i}#{key_e}` | |
if res.include? "No repeated" | |
else | |
puts "#{i}: #{res}" | |
end |
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
use std::io::BufferedReader; | |
use std::io; | |
use rand::Rng; | |
fn main() { | |
println!("INPUT:"); | |
let mut reader = BufferedReader::new(io::stdin()); | |
let input = reader.read_line().unwrap(); | |
let num = from_str::<int>(input.slice_to(input.len() -1)); |
test gist |
sdf% which bboard | |
/usr/pkg/bin/bboard | |
sdf% ls -l /usr/pkg/bin/bboard | |
---x--s--x 1 com com 7356 Aug 7 2013 /usr/pkg/bin/bboard | |
sdf% cp /usr/pkg/bin/bboard . | |
cp: /usr/pkg/bin/bboard: Permission denied | |
sdf% uname -a | |
NetBSD sdf 6.1_STABLE NetBSD 6.1_STABLE (SDF6.amd64) #0: Tue Nov 26 12:49:14 UTC 2013 root@bjork:/spare/netbsd/src/sys/arch/amd64/compile/SDF6.amd64 amd64 | |
sdf% |
BITS 32 | |
GLOBAL _start | |
SECTION .data ; Data goes here. This area is writeable, but any instructions you put here could not be executed | |
hello: db 'hello world',0xa | |
SECTION .text ; Code goes here. Not writeable after loaded | |
_start: | |
mov eax, 4 ; <-- Syscall #. Convention is kernel puts the "result" in eax after called. In sys_write, it's # chars printed successfully | |
mov ebx, 1 ; <-- First parameter |
tell application "Google Chrome" | |
activate | |
set theUrl to "http://tycho.usno.navy.mil/cgi-bin/timer.pl" | |
if (count every window) = 0 then | |
make new window | |
end if | |
set found to false | |
set theTabIndex to -1 |