sudo apt install zsh-autosuggestions zsh-syntax-highlighting zsh
# see rkengler.com for related blog post | |
# https://www.rkengler.com/how-to-capture-network-traffic-when-scraping-with-selenium-and-python/ | |
import json | |
import pprint | |
from selenium import webdriver | |
from selenium.webdriver.common.desired_capabilities import DesiredCapabilities | |
capabilities = DesiredCapabilities.CHROME |
# ~/.zshrc file for zsh non-login shells. | |
# see /usr/share/doc/zsh/examples/zshrc for examples | |
setopt autocd # change directory just by typing its name | |
#setopt correct # auto correct mistakes | |
setopt interactivecomments # allow comments in interactive mode | |
setopt ksharrays # arrays start at 0 | |
setopt magicequalsubst # enable filename expansion for arguments of the form ‘anything=expression’ | |
setopt nonomatch # hide error message if there is no match for the pattern | |
setopt notify # report the status of background jobs immediately |
#include <iostream> | |
#include <Windows.h> | |
#include <Lmcons.h> // UNLEN + GetUserName | |
#include <tlhelp32.h> // CreateToolhelp32Snapshot() | |
#include <strsafe.h> | |
extern "C" __declspec(dllexport) DWORD APIENTRY OpenPerfData(LPWSTR pContext); | |
extern "C" __declspec(dllexport) DWORD APIENTRY CollectPerfData(LPWSTR pQuery, PVOID* ppData, LPDWORD pcbData, LPDWORD pObjectsReturned); | |
extern "C" __declspec(dllexport) DWORD APIENTRY ClosePerfData(); |
#!/bin/bash | |
# Usage: ./minio-upload my-bucket my-file.zip | |
bucket=$1 | |
file=$2 | |
host=minio.example.com | |
s3_key=svc_example_user | |
s3_secret=svc_example_user_password |
Country,City,Provider,Host,ID | |
Abkhazia,Sukhum,Aquafon GSM,62.182.8.78:8080,9058 | |
Abkhazia,Sukhum,"Systema, LTD",cyxym.net:8080,5089 | |
Abkhaziya,Sukhum,A-Mobile,speedtest.a-mobile.biz:8080,9714 | |
Afghanistan,Herat,Afghan Wireless,hrtspeedtest.afghan-wireless.com:8080,9622 | |
Afghanistan,Kabul,Afghan Telecom,sp1.afghantelecom.af:8080,11019 | |
Afghanistan,Kabul,etisalat Afghanistan,speedtest.etisalat.af:8080,21807 | |
Afghanistan,Kabul,Afghan Wireless,speedtest.afghan-wireless.com:8080,5189 | |
Afghanistan,Kabul,Afghan Wireless Communication Company,kdzspeedtest.afghan-wireless.com:8080,13501 | |
Afghanistan,Kabul,Insta Telecom,speedtest.instatelecom.com:8080,12798 |
#!/usr/bin/env bash | |
## Script to install docker-ce on Rocky Linux | |
## Run using `sudo rocky-docker.sh` | |
# Ensuring "GROUP" variable has not been set elsewhere | |
unset GROUP | |
echo "Removing podman and installing Docker CE" | |
dnf remove -y podman buildah |
Stable Diffusion is an AI art generation model similar to DALLE-2. | |
Here are some prompts for generating art with Stable Diffusion. | |
Example: | |
- A ghostly apparition drifting through a haunted mansion's grand ballroom, illuminated by flickering candlelight. Eerie, ethereal, moody lighting. | |
- portait of a homer simpson archer shooting arrow at forest monster, front game card, drark, marvel comics, dark, smooth | |
- pirate, deep focus, fantasy, matte, sharp focus | |
- red dead redemption 2, cinematic view, epic sky, detailed, low angle, high detail, warm lighting, volumetric, godrays, vivid, beautiful | |
- a fantasy style portrait painting of rachel lane / alison brie hybrid in the style of francois boucher oil painting, rpg portrait |
First of all, we need to install GDB:
sudo apt install gdb
Next we will be installing an extension to GDB called pwndbg
that will make our life easier. Instructions for installation are here.
You can verify that your installation works by running gdb /bin/true
in your command line, then running start
when the prompt shows.
#!/usr/bin/python3 | |
import os | |
import shutil | |
import stat | |
import subprocess | |
import sys | |
import tempfile | |
import time | |
from pathlib import Path |