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
#!/usr/bin/env python | |
# Based on https://www.openwall.com/lists/oss-security/2018/08/16/1 | |
# untested CVE-2018-10933 | |
import sys, paramiko | |
import logging | |
username = sys.argv[1] | |
hostname = sys.argv[2] | |
command = sys.argv[3] |
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
/* base32 */ | |
/* | |
Copyright (c) 2011, Chris Umbel | |
Permission is hereby granted, free of charge, to any person obtaining a copy | |
of this software and associated documentation files (the "Software"), to deal | |
in the Software without restriction, including without limitation the rights | |
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
copies of the Software, and to permit persons to whom the Software is | |
furnished to do so, subject to the following conditions: |
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
// Get the key from the "DSN" at: https://sentry.io/settings/<org>/projects/<project>/keys/ | |
// The "DSN" will be in the form: https://<SENTRY_KEY>@sentry.io/<SENTRY_PROJECT_ID> | |
// eg, https://0000aaaa1111bbbb2222cccc3333dddd@sentry.io/123456 | |
const SENTRY_PROJECT_ID = '123456' | |
const SENTRY_KEY = '0000aaaa1111bbbb2222cccc3333dddd' | |
// Useful if you have multiple apps within a project – not necessary, only used in TAGS and SERVER_NAME below | |
const APP = 'my-app' | |
// https://docs.sentry.io/error-reporting/configuration/?platform=javascript#environment |
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
# Origin whitelist | |
map $http_origin $allowed_origin { | |
default "false"; | |
"~*\.?test\.com" "true"; | |
"~*\.?example\.com" "true"; | |
} | |
# Methods | |
map $request_method $cors { |
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
#!/bin/env python3 | |
""" | |
WSJT-X to Cloudlog QSO uploader. | |
This script reads QSO events from the WSJT UDP server and uploads the ADIF records to Cloudlog. | |
No non-standard library packages are required to run this. | |
usage: wsjt_cloudlog.py [-h] [--wsjt-port WSJT_PORT] [--wsjt-host WSJT_HOST] [--verbose] url api_key station_id | |
positional arguments: |
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
#cloud-config | |
# vim: syntax=yaml | |
disable_root: false | |
ssh_authorized_keys: [] | |
write_files: | |
- path: "/etc/ssh/sshd_config.d/permit_root" | |
owner: "root:root" | |
permissions: "0644" | |
content: | |
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
package main | |
import ( | |
"fmt" | |
"math/rand" | |
"os" | |
"github.com/miekg/dns" | |
) |
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 debian:latest | |
RUN apt-get update && apt-get install -y \ | |
git \ | |
build-essential \ | |
wget \ | |
python3 | |
WORKDIR /build |
OlderNewer