Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@0verflowme
0verflowme / find_writable_locations.bat
Created November 26, 2019 05:01 — forked from egre55/find_writable_locations.bat
find_writable_locations.bat
@echo off
REM Script to find writable locations under C:\
C:
cd C:\TEMP\
echo Creating list of all directories and sub-directories
dir C:\ /s /b /o:n /a:d > C:\Temp\dirs.txt
@0verflowme
0verflowme / untitled1.ipynb
Created August 20, 2020 09:56
Untitled1.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
import time
import multiprocessing
import requests
from termcolor import cprint
#Thanks to vsnrain for showing me multiprocessing
users = ["bryan" ,"jim", "sarah","rita"]
pwchars = "aesr!lhvb0wotiyu14pdngm"
url = "http://172.31.179.1/intranet.php"
@0verflowme
0verflowme / tmux.conf
Last active September 16, 2021 18:33
set -g default-terminal "screen-256color" # colors!
setw -g xterm-keys on
set -s escape-time 10 # faster command sequences
set -sg repeat-time 600 # increase repeat timeout
set -s focus-events on
set -g prefix2 C-a # GNU-Screen compatible prefix
bind C-a send-prefix -2
set -q -g status-utf8 on # expect UTF-8 (tmux < 2.2)
env:
TERM: xterm-256color
background_opacity: 0.98
font:
size: 8
normal:
family: mononoki Nerd Font
style: Bold
colors:
# Default colors
export ZSH="/home/overflow/.oh-my-zsh"
export EDITOR='vim'
export PATH="/home/overflow/.cargo/bin":$PATH
source /usr/share/zsh/plugins/fast-syntax-highlighting/fast-syntax-highlighting.plugin.zsh
source /usr/share/zsh/plugins/zsh-autosuggestions/zsh-autosuggestions.plugin.zsh
export LC_ALL=en_IN.UTF-8
export LANG=en_IN.UTF-8
ZSH_THEME="nicoulaj"
ENABLE_CORRECTION="true"
COMPLETION_WAITING_DOTS="true"
def complex_tot(factors):
phi = 1
for (p, e) in factors:
# Integer prime of this form is a Gaussian prime with norm(p) = p^2
if p % 4 == 3:
phi *= (p**(e-1))**2 * (p**2 - 1)
# Integer prime of this form is factored into two Gaussian primes with norm(P) = p
elif p % 4 == 1:
phi *= (p**(e-1) * (p - 1))**2
return phi
<!DOCTYPE html>
<html>
<head><meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>HomeBrew</title><script src="https://cdnjs.cloudflare.com/ajax/libs/require.js/2.1.10/require.min.js"></script>
from binascii import unhexlify
from Crypto.Cipher import AES
from Crypto.Util.Padding import unpad
r= 50394691958404671760038142322836584427075094292966481588111912351250929073849
s1= 26685296872928422980209331126861228951100823826633336689685109679472227918891
s2= 40762052781056121604891649645502377037837029273276315084687606790921202237960
msg1,msg2 = 777971358777664237997807487843929900983351335441289679035928005996851307115,91840683637030200077344423945857298017410109326488651848157059631440788354195