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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
# Every Vagrant development environment requires a box. You can search for | |
# boxes at https://atlas.hashicorp.com/search. | |
BOX_IMAGE = "ubuntu/focal64" | |
NODE_COUNT = 2 | |
Vagrant.configure("2") do |config| | |
config.vm.define "master" do |subconfig| |
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 sys | |
from PIL import Image | |
from PIL.ExifTags import TAGS | |
imagename = sys.argv[1] | |
image = Image.open(imagename) | |
exifdata = image.getexif() | |
for tag_id in exifdata: |
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 python:alpine as base | |
FROM base as builder | |
RUN mkdir /install | |
WORKDIR /install | |
COPY requirements.txt /requirements.txt | |
RUN pip install --no-warn-script-location --prefix=/install -r /requirements.txt | |
FROM base | |
COPY --from=builder /install /usr/local |
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 sys | |
from PyQt4.QtGui import * | |
from PyQt4.QtCore import * | |
from PyQt4.QtWebKit import * | |
class Render(QWebPage): | |
def __init__(self, url): | |
self.app = QApplication(sys.argv) | |
QWebPage.__init__(self) | |
self.loadFinished.connect(self._loadFinished) |
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
section .data | |
whatToWrite db "Henlooo",10,0 | |
len equ $ - whatToWrite | |
whatToWrite1 db "fren",10,0 | |
len1 equ $ - whatToWrite1 | |
section .text | |
global _start |
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
"""" | |
Python script to parse the passwords listed on https://sites.google.com/site/saynamweb/password | |
""" | |
import bs4 | |
import requests | |
import sys | |
import itertools | |
response = requests.get("https://sites.google.com/site/saynamweb/password") |
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
template <typename Key> | |
const Key loadKey(const std::string& filename) | |
{ | |
Key key; | |
CryptoPP::ByteQueue queue; | |
CryptoPP::FileSource file(filename.c_str(), true); | |
file.TransferTo(queue); | |
queue.MessageEnd(); | |
key.Load(queue); |
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
{ | |
"Resources": { | |
"ProxyEC2": { | |
"Type": "AWS::EC2::Instance", | |
"Metadata": { | |
"AWS::CloudFormation::Init" : { | |
"configSets" : { | |
"full_install" : [ | |
"setup_epel", | |
"install_proxy" |
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 boto3 | |
from botocore.handlers import disable_signing | |
from botocore import UNSIGNED | |
from botocore.client import Config | |
bucket_name = 'nice try fbi' | |
s3_client = boto3.client('s3', config=Config(signature_version=UNSIGNED)) | |
s3_resource = boto3.resource('s3') | |
s3_resource.meta.client.meta.events.register('choose-signer.s3.*', disable_signing) |
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
{ | |
"Parameters": { | |
"AccessTokenParameter": { | |
"Type": "String", | |
"Description": "Personal access token for github" | |
} | |
}, | |
"Resources": { | |
"Mysite": { |