Skip to content

Instantly share code, notes, and snippets.

View charlesreid1's full-sized avatar

Chaz Reid charlesreid1

View GitHub Profile
@worawit
worawit / eternalblue8_exploit.py
Last active March 16, 2024 18:38
Eternalblue exploit for Windows 8/2012
#!/usr/bin/python
# This file has no update anymore. Please see https://github.com/worawit/MS17-010
from impacket import smb, ntlm
from struct import pack
import sys
import socket
'''
EternalBlue exploit for Windows 8 and 2012 by sleepya
The exploit might FAIL and CRASH a target system (depended on what is overwritten)
@mosquito
mosquito / README.md
Last active August 3, 2025 02:16
Add doker-compose as a systemd unit

Docker compose as a systemd unit

Create file /etc/systemd/system/[email protected]. SystemD calling binaries using an absolute path. In my case is prefixed by /usr/local/bin, you should use paths specific for your environment.

[Unit]
Description=%i service with docker compose
PartOf=docker.service
After=docker.service
@djg
djg / reading-list.md
Last active March 21, 2025 08:41
Fabian's Recommened Reading List
# 10/19/2017, with help from Luiz Irber
# ssh [email protected]
# start interactive job, get assigned a designated compute node
# srun -p high -t 24:00:00 --mem=20000 --pty bash
# on the farm cluster
# jupyter notebook is installed in anaconda, in home dir
# activate virtualenv
source ~/anaconda2/envs/py3.dammit/bin/activate
# change environment variable to change where tmp files are stored
export XDG_RUNTIME_DIR=/home/ljcohen/tmp
@betatim
betatim / Kubernetes cluster monitoring (binder-prod)-1516879011895.json
Created January 25, 2018 11:19
State of the grafana.mybinder.org panels.
{
"__inputs": [],
"__requires": [
{
"type": "grafana",
"id": "grafana",
"name": "Grafana",
"version": "4.6.3"
},
{
@hcmiya
hcmiya / install-tor-instance.md
Last active August 16, 2019 04:05
Example of building Tor instance
  • Install to Debian Buster
  • All of services needed to run Mastodon instance (tor, postgresql, redis, nginx) will be installed to the same server.

Install packages

# apt install postgresql redis nodejs npm ruby tor ffmpeg imagemagick git \
  nginx wget bundler protobuf-compiler iptables-persistent ncurses-term vim \
  gcc g++ make patch ruby-dev libprotobuf-dev libidn11-dev libpq-dev libicu-dev libxml2-dev libxslt1-dev 
@daybreaker
daybreaker / reactions.rb
Last active May 11, 2022 12:41
Ruby script to check slack reaction counts
require 'slack-ruby-client' # first, make sure you do: gem install slack-ruby-client
require 'date'
# Add your Slack API token here
token = [YOUR TOKEN HERE]
Slack.configure do |config|
config.token = token
end
@devils-ey3
devils-ey3 / webdev_online_resources.md
Created July 16, 2018 20:11 — forked from bradtraversy/webdev_online_resources.md
Online Resources For Web Developers (No Downloading)
@a6y3ap
a6y3ap / JosephusProblem.java
Last active February 2, 2025 15:35
Josephus Problem using Bitwise Operation (Java)
/*
* Solution of Josephus Problem using Bitwise Operation
* Shifting the most-significant set bit of n to the
* least significant bit will return the safe position.
*
* ====================== EXPLANATION ======================
*
* n (41) the number of people standing in the circle
* n = 101001
*
*READ THIS TOP TO BOTTOM BEFORE STARTING TO COOK*
*DO NOT BLINDLY FOLLOW THIS RECIPE WITHOUT READING IT END TO END FIRST*
*croissants are weird.*
500g all purpose flour
10g salt
80g sugar
10g yeast
300ml cool water
300g butter (NICE BUTTER. get salted kerrygold, or "european style" butter. this is where MOST of the flavor comes from. don't skimp here.