Skip to content

Instantly share code, notes, and snippets.

View mort3za's full-sized avatar
🕸️

Morteza Ziyaeimehr mort3za

🕸️
View GitHub Profile
@mort3za
mort3za / settings.json
Created July 27, 2020 06:44
Windows terminal - my settings
// This file was initially generated by Windows Terminal 1.0.1401.0
// It should still be usable in newer versions, but newer versions might have additional
// settings, help text, or changes that you will not see unless you clear this file
// and let us generate a new one for you.
// To view the default settings, hold "alt" while clicking on the "Settings" button.
// For documentation on these settings, see: https://aka.ms/terminal-documentation
{
"$schema": "https://aka.ms/terminal-profiles-schema",
@mort3za
mort3za / windows-os-preparation.md
Last active July 26, 2020 16:08
Windows softwares and things to do to make it ideal https://bit.ly/m3windows
@mort3za
mort3za / prepare-surfshark-configs.sh
Created July 24, 2020 08:42
Fix surfshark openvpn configs for Linux
# Start tor service and test if `tor-resolve github.com` returns an IP
# create a file 'login' beside of config files with content:
# OPENVPN_USERNAME
# OPENVPN_PASSWORD
# download https://github.com/alfredopalhares/openvpn-update-resolv-conf project to somewhere and update bottom path
openvpnUpdateResolvePath="/path/to/openvpn-update-resolv-conf"
for f in /path/to/Surfshark_Config/*.ovpn
@mort3za
mort3za / windows-installation.txt
Created April 2, 2020 11:38
Install windows from linux
# install windows from a usb stick
Go to microsoft website and download iso file (on confirm step you may need a vpn)
Install virtualbox
Install guest additions (to enable shared folders)
Add a shared folder and copy the iso file there, then move iso file to desktop of virtual machine
Install extension pack https://www.virtualbox.org/wiki/Download_Old_Builds_5_2 and add virtualbox user to your user group https://www.techrepublic.com/article/how-to-enable-usb-in-virtualbox/
Logout then login in linux
Insert usb stick, add it in virtualbox settings > usb settings (use controller usb 3 or 2)
Reboot virtualbox machine
Download Rufus https://rufus.ie/
{"components":[{"type":"Spacer","id":5,"order":5,"section":1,"container":{"noPadding":true,"type":"limited","className":"primary"},"model":{"sizes":{"smAndDown":40,"mdAndUp":80}}},{"type":"Title","id":10,"order":10,"section":1,"container":{"noPadding":true,"type":"limited","className":"primary em-high"},"model":{"className":"typography-h1","tagName":"h1","body":"Saya"}},{"type":"Spacer","id":15,"order":15,"section":1,"container":{"noPadding":true,"type":"limited","className":"primary"},"model":{"sizes":{"smAndDown":40,"mdAndUp":80}}},{"type":"Markdown","id":30,"order":30,"section":1,"container":{"noPadding":true,"className":"primary em-high body-1 pb-20","type":"limited"},"model":{"animation":"fade-up","body":"1 This is a *markdown* text"}},{"type":"Image","id":40,"order":40,"section":1,"container":{"noPadding":true,"type":"full","className":"primary"},"model":{"animation":"fade-up","image":{"src":"https://res.cloudinary.com/whynotearth/image/upload/v1583765719/Saya/home-hero_xzzuff.png","alt":"a beautiful la
item 1 $5
item 2 $5
@mort3za
mort3za / colors.scss
Last active January 13, 2020 07:18
Customize Vuetify (version 2.2.3) sass variables and change theme colors
// src/styles/colors.scss
// Copy contents of /node_modules/vuetify/src/styles/settings/_colors.scss and modify it's contents here
[{"flag":"https://restcountries.eu/data/afg.svg","name":"Afghanistan","callingCodes":["93"]},{"flag":"https://restcountries.eu/data/ala.svg","name":"Åland Islands","callingCodes":["358"]},{"flag":"https://restcountries.eu/data/alb.svg","name":"Albania","callingCodes":["355"]},{"flag":"https://restcountries.eu/data/dza.svg","name":"Algeria","callingCodes":["213"]},{"flag":"https://restcountries.eu/data/asm.svg","name":"American Samoa","callingCodes":["1684"]},{"flag":"https://restcountries.eu/data/and.svg","name":"Andorra","callingCodes":["376"]},{"flag":"https://restcountries.eu/data/ago.svg","name":"Angola","callingCodes":["244"]},{"flag":"https://restcountries.eu/data/aia.svg","name":"Anguilla","callingCodes":["1264"]},{"flag":"https://restcountries.eu/data/ata.svg","name":"Antarctica","callingCodes":["672"]},{"flag":"https://restcountries.eu/data/atg.svg","name":"Antigua and Barbuda","callingCodes":["1268"]},{"flag":"https://restcountries.eu/data/arg.svg","name":"Argentina","callingCodes":["54"]},{"flag":"
@mort3za
mort3za / sshuttle.sh
Last active November 24, 2019 15:09
sshuttle in ubuntu
# works on ubuntu 18.04
sshuttle -r username@HostOrIP 0/0 -x HostOrIP
@mort3za
mort3za / randomize-mac-addresses.sh
Created August 20, 2019 17:52 — forked from fawkesley/randomize-mac-addresses.sh
In Ubuntu 16.04, randomize WiFi MAC addresses with a daily rotation - /etc/NetworkManager/dispatcher.d/pre-up.d/randomize-mac-addresses.sh
#!/bin/sh
# /etc/NetworkManager/dispatcher.d/pre-up.d/randomize-mac-addresses.sh
# INSTALL
#
# > curl -L 'https://gist.github.com/paulfurley/46e0547ce5c5ea7eabeaef50dbacef3f/raw/56ee5dd5f40dec93b8f7438cbdeda5475ea3b5d2/randomize-mac-addresses.sh' |sudo tee /etc/NetworkManager/dispatcher.d/pre-up.d/randomize-mac-addresses.sh
# > sudo chmod +x /etc/NetworkManager/dispatcher.d/pre-up.d/randomize-mac-addresses.sh
# Configure every saved WiFi connection in NetworkManager with a spoofed MAC