Skip to content

Instantly share code, notes, and snippets.

@reecestart
reecestart / describe-rds-private-ips.py
Last active April 30, 2024 17:40
Will print out RDS DB Instance DB Identifiers with their ENI and Private IP. Will only work if one SG is used per RDS DB (EDIT: Updated to work for DB Clusters e.g. Aurora Serverless)
import boto3
ec2_client = boto3.client('ec2')
rds_client = boto3.client('rds')
rdsNetworkInterfaces = ec2_client.describe_network_interfaces(
Filters=[
{
'Name': 'attachment.instance-owner-id',
'Values': [
@chonthu
chonthu / gist:67b0e75edd6388f4dad10394ffdb84c7
Last active April 30, 2024 17:40
traefik2-tls-passthrough
version: "3.3"
services:
app:
image: nginx
ports:
- 80
- 443
restart: unless-stopped
tty: true
@lujanfernaud
lujanfernaud / problem_solving_for_developers.md
Last active April 30, 2024 17:35
Problem Solving for Developers
@renatofrota
renatofrota / init.php
Last active April 30, 2024 17:34
Adianti Debug - Funções d, dd, p, pp
<?php
// adicione estas funções no arquivo init.php
// uso: d($argumento1, $argumento2, ...);
// https://github.com/renatofrota
// dump
function d(...$args)
{
ob_start();
@kevin-smets
kevin-smets / iterm2-solarized.md
Last active April 30, 2024 17:33
iTerm2 + Oh My Zsh + Solarized color scheme + Source Code Pro Powerline + Font Awesome + [Powerlevel10k] - (macOS)

Default

Default

Powerlevel10k

Powerlevel10k

@1eedaegon
1eedaegon / install-vmware-player-with-vagrant.ps1
Last active April 30, 2024 17:33
Install vagrant with vmware for windows 11
# 1. Download and install go
https://golang.org/doc/install
# 2. Download and install VMware workstation player
https://www.vmware.com/products/workstation-player.html
# 3. Download and install vagrant
https://www.vagrantup.com/downloads
# 4. Download vagrant vmware utility
Written by Thanos Apostolou
http://askubuntu.com/questions/53822/how-do-you-run-ubuntu-server-with-a-gui
Some more info can be found here https://help.ubuntu.com/community/ServerGUI. I assume you start with a clean install of Ubuntu Server 16.04 (some modifications may be needed for older versions of Ubuntu). Depending on your needs you can do these:
Minimal GUI:
sudo apt install xorg
sudo apt install --no-install-recommends openbox
Run the command startx and openbox will start (you can open a terminal there and run any application you want)
@satnami
satnami / openvpn-install.sh
Created September 1, 2016 04:21
wget https://git.io/vpn -O openvpn-install.sh && bash openvpn-install.sh
#!/bin/bash
# OpenVPN road warrior installer for Debian, Ubuntu and CentOS
# This script will work on Debian, Ubuntu, CentOS and probably other distros
# of the same families, although no support is offered for them. It isn't
# bulletproof but it will probably work if you simply want to setup a VPN on
# your Debian/Ubuntu/CentOS box. It has been designed to be as unobtrusive and
# universal as possible.
@Quick104
Quick104 / readme.md
Last active April 30, 2024 17:31
Expose a server behind CG:NAT via Wireguard