BETTER
use CloneVDI.exe to clone to remote disk:
- keep uuid
- compact disk backup old replace files
Source: StackOverflow
BETTER
use CloneVDI.exe to clone to remote disk:
Source: StackOverflow
| #!/usr/bin/env bash | |
| set -Eeuo pipefail | |
| cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null 2>&1 | |
| trap cleanup SIGINT SIGTERM ERR EXIT | |
| usage() { | |
| cat <<EOF |
| from PIL import Image | |
| bitstring="" | |
| outimg= Image.new("RGB",(25,25),"black") | |
| pixels_out = outimg.load() | |
| count=-1 | |
| for i in range(0,25): | |
| for j in range (0,25): |
| import gmpy2 | |
| N = n1*n2*n3 | |
| N1 = gmpy2.div(N,n1) | |
| N2 = gmpy2.div(N,n2) | |
| N3 = gmpy2.div(N,n3) | |
| u1 = gmpy2.invert(N1, n1) | |
| u2 = gmpy2.invert(N2, n2) | |
| u3 = gmpy2.invert(N3, n3) |
| package main | |
| import ( | |
| "encoding/base32" | |
| "fmt" | |
| "strings" | |
| ) | |
| func main() { | |
| data := "2246b2egzcc3ktvvoklo5cvzh4" |
| default['sshd']['sshd_config']['AuthenticationMethods'] = 'publickey,keyboard-interactive:pam' | |
| default['sshd']['sshd_config']['ChallengeResponseAuthentication'] = 'yes' | |
| default['sshd']['sshd_config']['PasswordAuthentication'] = 'no' |
Some wireless cards support monitor mode but won't work with airmon-ng. This is a little script helps you turning the monitor mode on! (+ it also sets the channel and the tx-power)
Usage: startWlan.sh [Interface:wlan0] [Channel:1] [Txpower:30] [Bandwidth:HT20|HT40+|HT40-]
Examples:
./startWlan.sh - enables monitor mode on wlan0, sets channel to 1 and tx-power to 30dBm.
./startWlan.sh wlan1 11 33 - enables monitor mode on wlan1, sets channel to 11 and tx-power to 33dBm.
./startWlan.sh wlan0 6 - enables monitor mode on wlan0, sets channel to 6 and tx-power to 30dBm.
Script:
| / | |
| $$$lang-translate.service.js.aspx | |
| $367-Million-Merger-Blocked.html | |
| $defaultnav | |
| ${idfwbonavigation}.xml | |
| $_news.php | |
| $search2 | |
| £º | |
| .0 |
Magic words:
psql -U postgresSome interesting flags (to see all, use -h or --help depending on your psql version):
-E: will describe the underlaying queries of the \ commands (cool for learning!)-l: psql will list all databases and then exit (useful if the user you connect with doesn't has a default database, like at AWS RDS)| # RS256 | |
| # private key | |
| openssl genrsa -out rs256-4096-private.rsa 4096 | |
| # public key | |
| openssl rsa -in rs256-4096-private.rsa -pubout > rs256-4096-public.pem | |
| # ES512 | |
| # private key | |
| openssl ecparam -genkey -name secp521r1 -noout -out ecdsa-p521-private.pem | |
| # public key |