Show databases
\l
Choose database
\c passwall
List tables
\dt
document.addEventListener('DOMContentLoaded', function() { | |
var copyTextareaBtn = document.querySelector('#kopyala'); | |
copyTextareaBtn.addEventListener('click', function(event) { | |
var copyTextarea = document.querySelector('#veri'); | |
copyTextarea.focus(); | |
copyTextarea.select(); | |
try { |
import CryptoJS from 'crypto-js' | |
export default { | |
pbkdf2Encrypt(value) { | |
var salt = 'asdfghjkl' | |
const cipher = CryptoJS.PBKDF2(value, salt, { | |
keySize: 256 / 8, | |
iterations: 10000, | |
hasher: CryptoJS.algo.SHA256 |
//GENERAL | |
docker ps | |
docker ps -a | |
docker image list | |
docker stop <containerid> | |
docker rm <containerid> | |
docker rmi <imageid> | |
// LIST AND DELETE ALL CONTAINERS | |
docker container ls |
package main | |
import ( | |
"log" | |
"os" | |
) | |
func main() { | |
file, err := os.OpenFile("geekday.txt", os.O_CREATE|os.O_APPEND|os.O_RDWR, 0644) | |
if err != nil { |
type Args interface { | |
// Get returns the nth argument, or else a blank string | |
Get(n int) string | |
// First returns the first argument, or else a blank string | |
First() string | |
// Tail returns the rest of the arguments (not the first one) | |
// or else an empty string slice | |
Tail() []string | |
// Len returns the length of the wrapped slice | |
Len() int |
// +build windows | |
package main | |
import ( | |
"crypto/x509" | |
"fmt" | |
"syscall" | |
"unsafe" | |
) |
func main() { | |
fs := token.NewFileSet() | |
f, err := parser.ParseFile(fs, "", "package main\nvar x int = 9\nfunc main(){b:=2}", parser.AllErrors) | |
if err != nil { | |
log.Fatal(err) | |
} | |
var v visitor | |
ast.Walk(v, f) | |
//fmt.Printf("%#v",f) | |
} |
# Private Keys and Certificates in this file generated with the commands below | |
openssl genrsa 2048 > ca-key.pem | |
openssl req -new -x509 -nodes -days 365000 \ | |
-key ca-key.pem \ | |
-out ca-cert.pem \ | |
-addext "subjectAltName = IP:127.0.0.1" | |
openssl req -newkey rsa:2048 -nodes -days 365000 \ |
# distro prints the detected operating system including linux distros. | |
# Also parses ID_LIKE for common distro bases. | |
# | |
# Example outputs: | |
# - macos -> macos | |
# - freebsd -> freebsd | |
# - ubuntu, raspbian, debian ... -> debian | |
# - amzn, centos, rhel, fedora, ... -> fedora | |
# - opensuse-{leap,tumbleweed} -> opensuse | |
# - alpine -> alpine |