Skip to content

Instantly share code, notes, and snippets.

tmux cheatsheet

As configured in my dotfiles.

start new:

tmux

start new with session name:

@soheilhy
soheilhy / nginxproxy.md
Last active October 23, 2024 08:19
How to proxy web apps using nginx?

Virtual Hosts on nginx (CSC309)

When hosting our web applications, we often have one public IP address (i.e., an IP address visible to the outside world) using which we want to host multiple web apps. For example, one may wants to host three different web apps respectively for example1.com, example2.com, and example1.com/images on the same machine using a single IP address.

How can we do that? Well, the good news is Internet browsers

@joswr1ght
joswr1ght / disabledep.txt
Created October 25, 2015 11:35
Disable DEP/NX on Linux in Grub
Boot and interrupt the GRUB menu
Edit the boot configuration, changing the "linux" line by adding these two parameters to the end of the line:
noexec=off noexec32=off
Then boot by pressing Ctrl+x.
After booting, you can check to see if DEP/NX is turned off by running:
dmesg | grep NX
When DEP/NX is turned off you should see something similar to this output:
@gene1wood
gene1wood / all_aws_lambda_modules_python.md
Last active November 15, 2024 16:58
AWS Lambda function to list all available Python modules for Python 2.7 3.6 and 3.7
@AvasDream
AvasDream / oscp_prep.md
Last active October 11, 2024 21:17
Resource for OSCP like HTB Boxes with Ippsec Videos and Writeups.
@nourspace
nourspace / README.md
Last active November 12, 2024 15:22 — forked from robskillington/prometheus.proto
Example Python Prometheus remote write client

Python Prometheus remote-write Client

Requirements

python -m pip install -r requirements.txt

Add metrics in write