This file contains 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 ubuntu:20.04 as base | |
USER root | |
ENV DEBIAN_FRONTEND=noninteractive | |
RUN /usr/bin/apt-get update && /usr/bin/apt-get -y install meson \ | |
ninja-build \ | |
valac \ | |
libgtk-3-dev \ |
This file contains 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 os | |
import sys | |
import json | |
import requests | |
from base64 import b64encode | |
from bs4 import BeautifulSoup | |
from urllib.parse import urlparse | |
IMGUR_CLIENT_ID = "" |
This file contains 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 { | |
disable as darkreaderDisable, | |
enable as darkreaderEnable, | |
setFetchMethod as setFetch, | |
} from '@umijs/ssr-darkreader'; | |
import { ConfigProvider } from 'antd'; | |
const themeConfig = { | |
daybreak: '#1890ff', | |
dust: '#F5222D', |
This file contains 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
# Add your instance name in Values | |
$ip = aws ec2 describe-instances --filters "Name=tag-key,Values=windows_instance" --query 'Reservations[*].Instances[*].PublicIpAddress' --output text | |
mstsc /v:$ip |
This file contains 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
aws ec2 start-instances --instance-ids $((aws ec2 describe-instances --filters "Name=tag:name,Values=test" --query 'Reservations[].Instances[].InstanceId' --output json | ConvertFrom-Json)) | |
aws ec2 stop-instances --instance-ids $((aws ec2 describe-instances --filters "Name=tag:name,Values=test" --query 'Reservations[].Instances[].InstanceId' --output json | ConvertFrom-Json)) |
This file contains 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 pathlib | |
from typing import Callable, List | |
def crawl_dirs_for_condition(root: pathlib.Path, file_item_condition: Callable) -> List[pathlib.Path]: | |
"""Crawl root dir for files, | |
path file path to file_item_condition function, | |
if file_item_condition(file_path) returns true, | |
append file path to files. | |
Returns |
This file contains 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 binascii import unhexlify | |
PCAPNG_MAGIC = unhexlify('0a0d0d0a') | |
PCAP_MAGIC_BIG_ENDIAN_MICROSEND = unhexlify('a1b2c3d4') | |
PCAP_MAGIC_LITTLE_ENDIAN_MICROSECOND = unhexlify('d4c3b2a1') | |
PCAP_MAGIC_BIG_ENDIAN_NANOSECOND = unhexlify('a1b23c4d') | |
PCAP_MAGIC_LITTLE_ENDIAN_NANOSECOND = unhexlify('4d3cb2a1') | |
PACKET_CAPTURE_MAGICS = [ | |
PCAPNG_MAGIC, |
This file contains 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
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa |
This file contains 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
methods | heard | knows | college | |
---|---|---|---|---|
eavesdropping | 40 | 3 | 1 | |
smshijacking | 29 | 2 | 1 | |
locationtracking | 43 | 5 | 1 | |
dosattack | 19 | 1 | 1 | |
crackingenc | 11 | 0 | 1 | |
eavesdropping | 41 | 6 | 2 | |
smshijacking | 34 | 3 | 2 | |
locationtracking | 40 | 2 | 2 | |
dosattack | 17 | 0 | 2 |
This file contains 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 random, math | |
from pwn import * | |
def random_data_generator (max_r): | |
for i in xrange(max_r): | |
yield random.randint(0, max_r) | |
class Node(): | |
def __init__(self, key): |
NewerOlder