Skip to content

Instantly share code, notes, and snippets.

View AbhimanyuAryan's full-sized avatar
:atom:
transformers

Abhimanyu Aryan AbhimanyuAryan

:atom:
transformers
View GitHub Profile
@AbhimanyuAryan
AbhimanyuAryan / pluto_bug.jl
Created February 10, 2022 14:09
pluto notebook bug
### A Pluto.jl notebook ###
# v0.18.0
using Markdown
using InteractiveUtils
# ╔═╡ b2667ebb-10d4-4233-804d-589f3d108dc6
# hideall
using Revise
@AbhimanyuAryan
AbhimanyuAryan / .bashrc
Created February 21, 2022 12:19
bashrc configurations
# exa to ls
alias l='exa'
alias la='exa -a'
alias ll='exa -lah'
alias ls='exa --grid --color=auto --icons'
# bat alias to cat
alias cat='bat'
@AbhimanyuAryan
AbhimanyuAryan / firefox-about-config-privacy.md
Last active March 21, 2022 03:50 — forked from 0XDE57/config.md
Firefox about:config privacy settings

ABOUT

about:config settings to harden the Firefox browser. Privacy and performance enhancements.
To change these settings type 'about:config' in the url bar. Then search the setting you would like to change and modify the value. Some settings may break certain websites from functioning and rendering normally. Some settings may also make firefox unstable.

I am not liable for any damages/loss of data.

Not all these changes are necessary and will be dependent upon your usage and hardware. Do some research on settings if you don't understand what they do. These settings are best combined with your standard privacy extensions (HTTPS Everywhere, NoScript/Request Policy, uBlock origin, agent spoofing, Privacy Badger etc), and all plugins set to "Ask To Activate".

@AbhimanyuAryan
AbhimanyuAryan / oneplus_bloatware_removal.bat
Last active April 12, 2022 18:51
oneplus bloatware to remove
@ECHO OFF
ECHO Listing connected android devices
adb devices
ECHO ==============================
adb shell
ECHO ==============================
ECHO preparing to remove bloatware ...
pm uninstall -k --user 0 com.android.chrome
pm uninstall -k --user 0 com.oneplus.membership
pm uninstall -k --user 0 com.tencent.soter.soterserver
Julia 6 hrs 59 mins ██████████████████▏░░ 86.3%
Markdown 34 mins █▌░░░░░░░░░░░░░░░░░░░ 7.2%
Docker 10 mins ▍░░░░░░░░░░░░░░░░░░░░ 2.3%
Git Config 9 mins ▍░░░░░░░░░░░░░░░░░░░░ 1.9%
HTML 5 mins ▏░░░░░░░░░░░░░░░░░░░░ 1.2%
using Bukdu
struct WelcomeController <: ApplicationController
conn::Conn
end
struct RestController <: ApplicationController
conn::Conn
end
using Merly
@page "/" HTTP.Response(200,"Hello World from Merly!")
@page "/hello/:user" HTTP.Response(200,string("<b>Hello ",request.params["user"],"!</b>"))
@route POST "/post" HTTP.Response(200,"I did something!")
start(host = "127.0.0.1", port = 8086, verbose = true)
@AbhimanyuAryan
AbhimanyuAryan / stars.jl
Created September 1, 2022 14:00 — forked from gdalle/stars.jl
Counting stars for Julia packages
using CSV
using GitHub
using Pkg
using ProgressMeter
using TOML
myauth = GitHub.authenticate(ENV["GITHUB_AUTH"])
general = first(reg for reg in Pkg.Registry.reachable_registries() if reg.name == "General")
package_url = Dict{String,String}()
@AbhimanyuAryan
AbhimanyuAryan / decrypt.jl
Created September 5, 2022 15:53 — forked from shenhuang/decrypt.jl
Julia code for Caesar shift and columnar transposition cracking.
cipherText = "KUHPVIBQKVOSHWHXBPOFUXHRPVLLDDWVOSKWPREDDVVIDWQRBHBGLLBBPKQUNRVOHQEIRLWOKKRDD"
println("Begin to decrypt cipher text: ", cipherText)
#https://en.wikipedia.org/wiki/Letter_frequency
frequencies = Dict( "A" => 8.167,
"B" => 1.492,
"C" => 2.782,
"D" => 4.253,
"E" => 12.702,
# Settings apply across all Linux distros running on WSL 2
# Can see memory in wsl2 with "free -m"
# Goes in windows home directory as .wslconfig
[wsl2]
# Limits VM memory to use no more than 48 GB, defaults to 50% of ram
memory=8GB
# Sets the VM to use 8 virtual processors
processors=4