Skip to content

Instantly share code, notes, and snippets.

Avatar
💭
Grey and dismal... and the weather too

Mike Preston Darkflib

💭
Grey and dismal... and the weather too
View GitHub Profile
View gist:df2c425cddbd0378fb8666cbd948a448
/*********
Rui Santos
Complete project details at https://randomnerdtutorials.com
*********/
#include <WiFi.h>
#include <PubSubClient.h>
#include <Wire.h>
//include <Adafruit_BME280.h>
//include <Adafruit_Sensor.h>
View user-data
#cloud-config
# This is the user-data configuration file for cloud-init. By default this sets
# up an initial user called "ubuntu" with password "ubuntu", which must be
# changed at first login. However, many additional actions can be initiated on
# first boot from this file. The cloud-init documentation has more details:
#
# https://cloudinit.readthedocs.io/
#
# Some additional examples are provided in comments below the default
@Darkflib
Darkflib / socat_socks_proxy.sh
Created Sep 11, 2019 — forked from lene/socat_socks_proxy.sh
Using tor as SOCKS proxy with SOCAT
View socat_socks_proxy.sh
socat TCP-LISTEN:<localport> SOCKS4A:localhost:<host>:<remoteport>,socksport=9050
# for example, to ssh into secret.shell.server.org via tor, do:
$ socat TCP-LISTEN:22222 SOCKS4A:localhost:secret.shell.server.org:22,socksport=9050 &
$ ssh localhost -p 22222
View bashrc
# Set the window title
function title {
echo -ne "\033]0;"$*"\007"
}
title "MBP"
# autossh
function as() {
View docker-compose.yml
version: "2"
networks:
gitea:
external: false
services:
gitea:
image: gitea/gitea:latest
environment:
View build.sh
#!/bin/bash
# Install dependencies (debootstrap)
sudo apt-get install debootstrap
# Fetch the latest Kali debootstrap script from git
curl "http://git.kali.org/gitweb/?p=packages/debootstrap.git;a=blob_plain;f=scripts/kali;hb=HEAD" > kali-debootstrap &&\
sudo debootstrap kali-rolling ./kali-root http://http.kali.org/kali ./kali-debootstrap &&\
# Import the Kali image into Docker
sudo tar -C kali-root -c . | sudo docker import - darkflib/kali-rolling &&\
sudo rm -rf ./kali-root &&\
View wireguard.sh
echo "deb http://deb.debian.org/debian/ unstable main" > /etc/apt/sources.list.d/unstable-wireguard.list
printf 'Package: *\nPin: release a=unstable\nPin-Priority: 90\n' > /etc/apt/preferences.d/limit-unstable
apt update
apt install wireguard
mkdir -p /etc/wireguard
wg genkey | tee /etc/wireguard/test-private.key | wg pubkey > /etc/wireguard/test-public.key
View Tools
Storage
https://rclone.org/docs/
https://www.minio.io/
https://github.com/s3fs-fuse/s3fs-fuse
CLI
https://github.com/Bash-it/bash-it
autossh
tmux
aws-cli
@Darkflib
Darkflib / on mac
Last active Oct 9, 2018
Remote notifications
View on mac
while true; do nc -l 12345 | say; done
You can’t perform that action at this time.