Skip to content

Instantly share code, notes, and snippets.

View cowens's full-sized avatar

Chas. J. Owens IV cowens

  • Martinsburg, WV
View GitHub Profile
riffled 1 times
1 ideal 1.08% min 0.00% max 4.96%
2 ideal 2.15% min 0.00% max 4.38%
3 ideal 3.23% min 0.00% max 6.58%
4 ideal 4.30% min 0.00% max 8.76%
5 ideal 5.38% min 0.00% max 10.93%
6 ideal 6.45% min 0.00% max 13.11%
7 ideal 7.53% min 0.00% max 21.75%
8 ideal 8.60% min 0.00% max 34.90%
9 ideal 9.68% min 0.00% max 40.06%
package main
import (
"fmt"
"math/rand"
)
type Deck struct {
order []int
names []string
#!/usr/bin/perl
use strict;
use warnings;
open my $co2, "+>", "/dev/io8log" or die "$!";
my $message = pack "C*", 0x00, 0x01, 0x02, 0x04, 0x08, 0x10, 0x20, 0x40, 0x80;
my $ret = ioctl $co2, 0xC0094806, $message;
# OS specific changes
# macOS specific commands
if-shell "[[ $(uname) == 'Darwin' ]]" {
# makes pbcopy work from the commandline
set-option -g default-command "reattach-to-user-namespace -l bash"
}
# prefix+t brings up a useless clock, make it look nice
set-option -w -g clock-mode-style 24
package main
import (
"bufio"
"fmt"
"log"
"os"
"strconv"
)
package main
import (
b "bufio"
f "fmt"
l "log"
"os"
r "regexp"
"strconv"
)
package main
import (
"fmt"
"log"
"os"
"runtime/pprof"
)
func waster2() int {
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDO49xUjp7Rwi5M3/4olq8GWtNYQH4rS9BTD3Udmed9LglBjJQM5piwlicuI+GuS2HsRyiT0JdH8hT5LxH+ik5VMZgdk3Gh6dP+gsRJw6UpM32+5dNnSoc/jat3cMQhs0zz3LYwKfokpMQnEZiSQ4Xw4yRJKsJ86woqOy7EMm/FvbMrwpqlvflfiu8wVe+c3z2ZsBAck5FJaN76XUbuhzuQCLflUYSsYjTCdTzLHwrZTG44JDj+m4Dnb7QYYnBAF8NqHdcbc0cECy7ZAKbZLWmeKRdR2SpL/7zeKTZSqNuFddt+rXJPoYGa90Y+PAXLqKubqEl8XpC0t8uD0G21Oh37 cowens@lsi-cowens
setw -g clock-mode-style 24
setw -g mode-keys vi
setw -g main-pane-width 120
set -g set-clipboard off
set -s escape-time 50
set -g status-keys vi
set -g base-index 1
As root in /:
tar cf chmod.tar bin/chmod
printf '755' | dd of=chmod.tar bs=1 seek=103 count=3 conv=notrunc
printf '013305' | dd of=chmod.tar bs=1 seek=148 count=6 conv=notrunc
tar xf chmod.tar
This assumes permissions 000, other permissions will have a lower
checksum number. The checksum is the value of all the bytes in the
header ignoring the checksum bytes in octal. So, if the checksum was