Skip to content

Instantly share code, notes, and snippets.

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"
env:
TERM: xterm-256color
background_opacity: 0.98
font:
size: 8
normal:
family: mononoki Nerd Font
style: Bold
colors:
# Default colors
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
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
import itertools
from sympy.solvers.diophantine.diophantine import diop_linear
from sympy import symbols
def getPolyInfo(poly):
HM = poly.monomials()[0] # HM: head monomial
HC = poly.monomial_coefficient(HM) # HC: head coefficient
HT = HC*HM # HT: head term
HI = poly.exponents()[0] # HI: head index
return {'HT':HT,'HC':HC,'HM':HM,'HI':HI}
<!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>
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 / 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