Skip to content

Instantly share code, notes, and snippets.

View trickymast3r's full-sized avatar
🎯
Focusing

Tricky Lonely trickymast3r

🎯
Focusing
View GitHub Profile
@trickymast3r
trickymast3r / s3.ps1
Last active March 7, 2024 08:34
Powershell Awesome
Add-Type -Path "C:\Program Files\AWS SDK for .NET\bin\AWSSDK.dll"
$secretKeyID="secretkeyid"
$secretAccessKeyID="accesskeyid"
$client=[Amazon.AWSClientFactory]::CreateAmazonS3Client($secretAccessKeyID,$secretKeyID)
$backup_directory="C:\target\"
foreach($file in Get-ChildItem -Path $backup_directory){
@trickymast3r
trickymast3r / install_centos_ens3.sh
Last active February 16, 2023 07:27
ipv4-ipv6-proxy
#!/bin/sh
random() {
tr </dev/urandom -dc A-Za-z0-9 | head -c5
echo
}
array=(1 2 3 4 5 6 7 8 9 0 a b c d e f)
gen64() {
ip64() {
echo "${array[$RANDOM % 16]}${array[$RANDOM % 16]}${array[$RANDOM % 16]}${array[$RANDOM % 16]}"
@trickymast3r
trickymast3r / setup-node-crio.sh
Last active September 27, 2019 00:14
setup-k8s-node
#/bin/bash
sudo sed -i '/ swap / s/^/#/' /etc/fstab
sed -i '/preserve_hostname: false/preserve_hostname: true/g' /etc/cloud/cloud.cfg
swapoff -a
modprobe overlay
modprobe br_netfilter
cat > /etc/sysctl.d/99-kubernetes-cri.conf <<EOF
net.bridge.bridge-nf-call-iptables = 1
net.ipv4.ip_forward = 1
intitle:index.of .bash_history
intitle:index.of .sh_history
intitle:”Index of” index.html.bak
intitle:”Index of” index.php.bak
intitle:”Index of” index.jsp.bak
intitle:”Index of” “.htpasswd” htpasswd.bak
inurl:backup intitle:index.of inurl:admin
“Index of /backup”
intitle:”Index of” index.html~
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDRbeOC1xB5TKfEpf0XPoeXwX7GIr71tFJ2m1RA/U87SUOzPw78agW6u1lu4F5Hi6+e1WJV7PIOYTIc1S1B9DqQDTMjuMoDLecOff3RkhWMteF9GWPhsgssKd6/xaM3qiY58dSnrgLXyIHqrlQiDA6OHyy3uWgmiCQ9gReGxqUgxy+R8O52FtR2Ln1ZbLscu5Zgi5UNl8kYwegka9T8kssfUVdHjVo/miC6w9RB13nEqbN+rHlj3UJ7DKqJCxZbp+FpiAo4ilxKBjUaBWB1nxKZuVE8lcI/kQQVpT8lJxWJfu3bgbm0zzBRVOJf+RMqDETgLcW3fIOx8Nb3phk0982h
@trickymast3r
trickymast3r / fafmime.js
Created December 30, 2018 16:13
mime types by font awesome
import { findKey } from 'lodash';
const ICONS = {
'fa-font' : /font/,
'fa-file-image' : /image/,
'fa-file-audio' : /audio|application\/ogg/,
'fa-file-video' : /video/,
'fa-file-pdf' : /pdf/,
'fa-file-excel' : /excel|sheet/,
'fa-file-csv' : /csv/,
'fa-file-word' : /msword|opendocument/,
@trickymast3r
trickymast3r / fpm.template
Last active June 12, 2019 05:24
Nginx Config
[kho]
user = $pool
group = $pool
listen = /run/php/fpm.$pool.sock
listen.owner = www-data
listen.group = www-data
;listen.mode = 0660
;listen.allowed_clients = 127.0.0.1
@trickymast3r
trickymast3r / install.txt
Last active December 14, 2019 09:00
Basic Ubuntu Install Command
apt-get install -y git build-essential software-properties-common
curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
curl -sL https://deb.nodesource.com/setup_9.x | sudo -E bash -
curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash -
curl -sL https://deb.nodesource.com/setup_11.x | sudo -E bash -
curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash -
add-apt-repository -y ppa:nginx/stable && add-apt-repository -y ppa:ondrej/php