This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# sh commands | |
# 1) boot live linux, and open terminal | |
# 2) see current devices | |
cat /proc/partitions | |
# 2) plug in sd card in adapter | |
# 3) find plugged in device (look at size, and find the disk, not partition, | |
# and you get /dev/<disk>) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* @param {Object} object | |
* @return {string} | |
*/ | |
export function toFormUrlEncoded(object) { | |
return Object.entries(object) | |
.map(([key, value]) => `${encodeURIComponent(key)}=${encodeURIComponent(value)}`) | |
.join('&'); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://linkedin.pyropear.com/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Go to where Firefox is installed. (%programfiles%\Mozilla Firefox) | |
Put the "mozilla.cfg" file in the current folder. (%programfiles%\Mozilla Firefox) | |
Put the "local-settings.js" file in the defaults\pref folder. (%programfiles%\Mozilla Firefox\defaults\pref) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://github.com/andrew-ma/pysim/archive/master.zip | |
or | |
# this requires "git" to be installed, because it does a "git clone" behind the scenes | |
git+https://github.com/andrew-ma/pysim@master |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt remove docker docker-engine docker.io containerd runc -y | |
sudo apt update -y | |
sudo apt install apt-transport-https ca-certificates curl gnupg lsb-release -y | |
curl -fsSL https://download.docker.com/linux/debian/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg --yes | |
DEBIAN_VERSION="$(lsb_release -cs)" | |
if [ $? -ne 0 ]; then DEBIAN_VERSION=$(cat /etc/os-release | grep VERSION_CODENAME | cut -d"=" -f2 | tr -d '"'); fi | |
if [ "$DEBIAN_VERSION" = "kali-rolling" ]; then DEBIAN_VERSION="buster"; fi | |
RELEASE_ID=$(cat /etc/os-release | grep '^ID=' | cut -d'=' -f2) | |
if [ ! "$RELEASE_ID" = 'ubuntu' ]; then RELEASE_ID='debian'; fi | |
ARCHITECTURE=$(dpkg --print-architecture) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl -OJL "https://code.visualstudio.com/sha/download?build=stable&os=linux-deb-x64" | |
sudo dpkg -i code_*.deb |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Save extensions to file | |
code --list-extensions | sed '/\(vscode-pylance\|jupyter\)/d' > ~/vscode_extensions.txt | |
# Install extensions from file | |
cat ~/vscode_extensions.txt | xargs -n 1 code --force --install-extension | |
# Uninstall extensions from file | |
cat ~/vscode_extensions.txt | xargs -n 1 code --force --uninstall-extension |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from PyQt5.QtWidgets import QStyle, QStyledItemDelegate, QStyleOptionViewItem | |
from PyQt5.QtGui import QPainter | |
from PyQt5.QtCore import QModelIndex | |
class AsciiStyledItemDelegate(QStyledItemDelegate): | |
def __init__(self, style: QStyle, parent=None): | |
super().__init__(parent) | |
self.style = style | |
@staticmethod |
OlderNewer