<meta charset='UTF-8'>
<meta name='keywords' content='your, tags'>
<meta name='description' content='150 words'>
<meta name='subject' content='your website's subject'>
<meta name='copyright' content='company name'>
<meta name='language' content='ES'>
<meta name='robots' content='index,follow'>
This file contains hidden or 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
services: | |
projectsend: | |
image: linuxserver/projectsend | |
container_name: projectsend | |
environment: | |
- PUID=998 | |
- PGID=100 | |
- TZ=Europe/Paris | |
- MAX_UPLOAD=51200 | |
volumes: |
This file contains hidden or 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 cryptography.hazmat.primitives.ciphers import Cipher, algorithms, modes | |
from cryptography.hazmat.primitives.padding import PKCS7 | |
from cryptography.hazmat.backends import default_backend | |
import base64 | |
def aesencrypt(plaintext, key): | |
cipher = Cipher(algorithms.AES(key), modes.ECB(), backend=default_backend()) | |
encryptor = cipher.encryptor() | |
padder = PKCS7(algorithms.AES.block_size).padder() | |
padded_data = padder.update(plaintext) + padder.finalize() |
This file contains hidden or 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
def convert_coordinates(x, y, z): | |
src_crs = pyproj.CRS.from_epsg(4326) | |
dest_crs = pyproj.CRS.from_epsg(2154) | |
transformer = pyproj.Transformer.from_crs(src_crs, dest_crs, always_xy=True) | |
# Perform the transformation | |
dest_x, dest_y, dest_z = transformer.transform(x, y, z) | |
return dest_x, dest_y, dest_z |
This file has been truncated, but you can view the full file.
This file contains hidden or 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
o | |
v -350.9375 -202 7.996002197265625 | |
v -350.0625 -201 7.996002197265625 | |
v -347.3125 -197.5 7.996002197265625 | |
v -347.3125 -197.5 7.996002197265625 | |
v -347.0625 -197 7.996002197265625 | |
v -347.8125 -197.5 7.996002197265625 | |
v -351.0625 -201.5 7.996002197265625 | |
v -351.1875 -202.5 7.996002197265625 | |
v -350.9375 -202 7.996002197265625 |
This file contains hidden or 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
#!/bin/bash | |
echo "Instance Name ?" | |
read name | |
aws ec2 describe-instances --filters 'Name=tag:Name,Values='$name --query 'Reservations[*] .Instances[*].PublicIpAddress' --output text |
This file contains hidden or 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
char* GetRandomBuf() | |
{ | |
char tempFileName[MAX_PATH]; | |
char targetFileName[MAX_PATH]; | |
// random | |
size_t randomNum = 8; | |
WIN32_FIND_DATAA ffd; | |
DWORD size = 0; |
This file contains hidden or 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
import re | |
import requests | |
from bs4 import BeautifulSoup as BS | |
headers = { | |
'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.132 Safari/537.36 OPR/63.0.3368.71' | |
} | |
with open('links.txt') as f: | |
Lines = f.readlines() | |
count = 0 |
This file contains hidden or 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
defaults | |
timeout connect 5s | |
timeout client 24h | |
timeout server 24h | |
global | |
log /dev/log local0 | |
frontend ssl | |
log global |
This file contains hidden or 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
import re | |
import sys | |
key=sys.argv[1] | |
REGEX = { | |
"MD5 Hash":"[a-f0-9]{32}", | |
"Artifactory API Token":'(?:\s|=|:|"|^)AKC[a-zA-Z0-9]{10,}', | |
"Basic Auth Credentials":"(?<=:\/\/)[a-zA-Z0-9]+:[a-zA-Z0-9]+@[a-zA-Z0-9]+\.[a-zA-Z]+", | |
"Cloudinary Basic Auth":"cloudinary:\/\/[0-9]{15}:[0-9A-Za-z]+@[a-z]+", |
NewerOlder