diff --git a/bin/c b/bin/c new file mode 100755 index 0000000..3fc918f --- /dev/null +++ b/bin/c @@ -0,0 +1,122 @@ +#!/bin/sh +# https://causal.agency/bin/c.html +set -eu + +temp=$(mktemp -d) +trap 'rm -r "${temp}"' EXIT + +exec 3>>"${temp}/run.c" + +cat >&3 < +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#include +#include +#include +#include +EOF + +expr= +type= +while getopts 'e:i:t' opt; do + case "${opt}" in + (e) expr=$OPTARG;; + (i) echo "#include <${OPTARG}>" >&3;; + (t) type=1;; + (?) exit 1;; + esac +done +shift $((OPTIND - 1)) + +cat >&3 <&3 <&3 <&3 +fi + +echo '}' >&3 + +cat >"${temp}/Makefile" < ')) - p = int(input('pub key> ')) - n = int(input('pub number> ')) - - i = 1 - - while p*i % m != 1: - i=i+1 - - print('done!') - print('alice\'s secret key is ', i) - print('bob\'s secret number is', ((i*n)%m)) - -def genbob(): - m = int(input('pub modulus> ')) - p = int(input('pub key> ')) - n = int(input('secret number> ')) - - print('bob\'s public number is', ((p*n)%n)) - -if __name__ == '__main__': - print('0 crack secret key and number') - print('1 generate public number') - - choice = int(input('choose tool> ')) - func = [crack, genbob][choice] - - func() - diff --git a/bin/chainfo b/bin/chainfo deleted file mode 100755 index 686e234..0000000 --- a/bin/chainfo +++ /dev/null @@ -1,8 +0,0 @@ -#!/bin/bash - -awk '{print $2}' $1 | - awk -F ":" '{print $1}' | -cat - ~/Documents/nums | -sort | uniq -c | sort -k2 | -awk '{print $1-1}' - diff --git a/bin/chfo b/bin/chfo deleted file mode 100755 index b6fb3f9..0000000 --- a/bin/chfo +++ /dev/null @@ -1,8 +0,0 @@ -#!/bin/bash - -chainfo $1 > /tmp/chacha - -MACS=$(sort -h /tmp/chacha | tail -n 1) - -awk '{print $1/'$MACS'*100}' /tmp/chacha - diff --git a/bin/circomference.py b/bin/circomference.py deleted file mode 100755 index 9a7245d..0000000 --- a/bin/circomference.py +++ /dev/null @@ -1,47 +0,0 @@ -#!/usr/bin/env python3 - -import math, sys - -si = input('size append d r c a> ') -print() -st = si[-1:] - -try: - si = float(si[:-1]) -except: - print('invalid input, please use the format ') - sys.exit() - -def fromD(di): - r = di/2 - fromR(r) - -def fromC(ce): - r = ce / 6.28 - fromR(r) - -def fromA(ar): - r = math.sqrt(ar/3.14) - fromR(r) - -def fromR(ra): - print("radius",ra) - print("diam", ra*2) - print("cerc", 3.14 * (ra*2)) - print("area", 3.14*(ra*ra)) - -funcs = { - 'd':fromD, - 'r':fromR, - 'c':fromC, - 'a':fromA -} - -if st in funcs: - funcs[st](si) -else: - print("invalid value type, the options are:") - for i in funcs: - print(i) - - diff --git a/bin/ranal b/bin/ranal new file mode 100755 index 0000000..29591d1 --- /dev/null +++ b/bin/ranal @@ -0,0 +1,13 @@ +#!/usr/bin/env python3 + +import random + +sortedletters = {' ': [' '], 'A': ['A', 'a', 'ᴀ', 'A', 'a'], 'B': ['B', 'b', 'ß', 'ʙ', 'ẞ', 'B', 'b'], 'C': ['C', 'c', 'ʗ', 'ᴄ', 'C', 'c'], 'D': ['D', 'd', 'Ɖ', 'ᴅ', 'D', 'd'], 'E': ['⊘', 'E', 'e', 'ᴇ', 'ꬲ', 'ꭡ', 'E', 'e'], 'F': ['F', 'f', 'ꬵ', 'F', 'f'], 'G': ['G', 'g', 'ɡ', 'ɢ', 'G', 'g'], 'H': ['H', 'h', 'ʜ', 'H', 'h'], 'I': ['⫮', 'I', 'i', 'ı', 'ɪ', 'I', 'i'], 'J': ['J', 'j', 'ȷ', 'ᴊ', 'J', 'j'], 'K': ['K', 'k', 'ᴋ', 'K', 'k'], 'L': ['L', 'l', 'ʟ', 'L', 'l'], 'M': ['M', 'm', 'ᴍ', 'M', 'm'], 'N': ['Nj', 'N', 'n', 'ɴ', 'N', 'n'], 'O': ['O', 'o', 'ᴏ', 'O', 'o'], 'P': ['P', 'p', 'ᴘ', 'P', 'p'], 'Q': ['Q', 'q', 'Q', 'q'], 'R': ['R', 'r', 'ʀ', 'ꭈ', 'R', 'r', 'ſ'], 'S': ['S', 's', 'S', 's'], 'T': ['T', 't', 'ᴛ', 'T', 't'], 'U': ['U', 'u', 'ᴜ', 'U', 'u'], 'V': ['V', 'v', 'ᴠ', 'V', 'v'], 'W': ['W', 'w', 'ᴡ', 'W', 'w'], 'X': ['X', 'x', 'X', 'x'], 'Y': ['Y', 'y', 'ʏ', 'Y', 'y'], 'Z': ['Z', 'z', 'Dz', 'ᴢ', 'Z', 'z'], '/': ['⁄', '∕', '/', '⧸', '⹊', '/', '🙼'], '\\': ['\\', '⧹', '﹨', '\', '🙽'], '!': ['!', '!'], '~': ['~','~'], '#':['#','#'], '.':['.'], ',':[',']} + +while True: + + inp = input().upper() + + for l in inp: + print(random.choice(sortedletters[l] if l in sortedletters else l),end='',flush=True) + print() diff --git a/bin/rbarstd b/bin/rbarstd deleted file mode 100755 index 941037f..0000000 --- a/bin/rbarstd +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/bash -zbarcam --raw -Sdisable -Scode128.enable - diff --git a/bin/rbarstdh b/bin/rbarstdh deleted file mode 100755 index be8d702..0000000 --- a/bin/rbarstdh +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/bash -zbarcam --raw --nodisplay -Sdisable -Scode128.enable - diff --git a/bin/rusb b/bin/rusb new file mode 100755 index 0000000..6d8a1ad --- /dev/null +++ b/bin/rusb @@ -0,0 +1,4 @@ +echo -n "0000:00:1a.0" | tee /sys/bus/pci/drivers/ehci-pci/unbind +echo -n "0000:00:1d.0" | tee /sys/bus/pci/drivers/ehci-pci/unbind +echo -n "0000:00:1a.0" | tee /sys/bus/pci/drivers/ehci-pci/bind +echo -n "0000:00:1d.0" | tee /sys/bus/pci/drivers/ehci-pci/bind diff --git a/bin/smb b/bin/smb deleted file mode 100755 index 17c35de..0000000 --- a/bin/smb +++ /dev/null @@ -1,28 +0,0 @@ -#!/bin/bash - -export SMBPATH="smb.txt" - -export SMBID=$RANDOM - -echo "welcome to smb" - -if [[ ! -f $SMBPATH ]];then -read -p "Initilize smb in $SMBPATH ? " -echo "--top--" >> $SMBPATH -fi - -read -p "title your post: " TITLE - -mkdir /tmp/smb/$USER/ -p -vim /tmp/smb/$USER/$SMBID -if [[ -f "/tmp/smb/$USER/$SMBID" ]];then -echo "================================================================================">> /tmp/smb/$USER/$SMBID.t -echo "Title: $TITLE" >> /tmp/smb/$USER/$SMBID.t -date "+Posted on: %Y-%m-%d\\" | tr '\\\\' "\n" >> /tmp/smb/$USER/$SMBID.t -cat /tmp/smb/$USER/$SMBID >> /tmp/smb/$USER/$SMBID.t -echo -e "================================================================================\n\n" >> /tmp/smb/$USER/$SMBID.t -sed -i "/--top--/r /tmp/smb/$USER/$SMBID.t" $SMBPATH -else -echo "aborting..." -fi - diff --git a/bin/typebarcode b/bin/typebarcode deleted file mode 100755 index 648a368..0000000 --- a/bin/typebarcode +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/bash -zbarcam --raw -Sdisable -Scode128.enable | crikey -i -