Skip to content

Instantly share code, notes, and snippets.

View un4ckn0wl3z's full-sized avatar
🖕
An idiot admires complexity; a genius admires simplicity

Anuwat Khongchuai un4ckn0wl3z

🖕
An idiot admires complexity; a genius admires simplicity
View GitHub Profile

redirect traffic incoming on a specific port to a different IP address / another server

2.2.2.2:4000 -> 1.1.1.1:3000

Solution

iptables -t nat -A PREROUTING -p tcp --dport 4000 -j DNAT --to-destination 1.1.1.1:3000
iptables -t nat -A POSTROUTING -p tcp -d 2.2.2.2 --dport 4000 -j SNAT --to-source 1.1.1.1
iptables -t nat -A POSTROUTING -j MASQUERADE
@coolaj86
coolaj86 / rip-blu-rays-with-libredrive.md
Created July 12, 2021 21:27
Want to rip backups of your blu-rays? In short, get the LG WH16NS40 + Unitek ‎Y-1099NEW + WH16NS40-SVC50 v1.0.5 (via SDFTool) combo. It'll work.
title description date updated uuid categories permalink
How to Rip Blu-Rays with a LibreDrive
In short, get the LG WH16NS40 + Unitek Y-1099NEW + WH16NS40-SVC50 v1.0.5 (via SDFTool) combo. It'll work.
2021-06-29 5:33:34 pm
2021-07-09 10:33:00 am
4276bef0-c857-47b0-8c86-1e83701d89d9
Nerdom
/articles/how-to-rip-blurays-with-a-libredrive/
#################################
# K3d #
# How to run Kubernetes locally #
# https://youtu.be/mCesuGk-Fks #
#################################
# Referenced videos:
# - How to run local multi-node Kubernetes clusters using kind: https://youtu.be/C0v5gJSWuSo
# - Kaniko - Building Container Images In Kubernetes Without Docker: https://youtu.be/EgwVQN6GNJg
@ridvanaltun
ridvanaltun / SCAN_CORRUPTED_VIDEOS.md
Last active December 3, 2023 11:32
How to check if a video file is corrupted?

Download ffmpeg from here, download *-win64-gpl.zip for Windows.

Install ffmpeg for Ubuntu

sudo apt install ffmpeg

Below command will give you a log file. If no error found, the log file will be empty.

@djad442
djad442 / state.dart
Created November 29, 2020 12:55
use of state mixin in getx
import 'package:flutter/material.dart';
import 'package:get/get.dart';
import 'package:dio/dio.dart';
void main() {
runApp(GetMaterialApp(
initialRoute: '/home',
getPages: [
GetPage(
name: '/home',
@FatRodzianko
FatRodzianko / my-am-bypass.ps1
Last active March 19, 2024 23:38
small modification to Rastemouse's AmsiScanBuffer bypass to use bytes. Uses different opcode bytes
$Win32 = @"
using System;
using System.Runtime.InteropServices;
public class Win32 {
[DllImport("kernel32")]
public static extern IntPtr GetProcAddress(IntPtr hModule, string procName);
[DllImport("kernel32")]
@muff-in
muff-in / resources.md
Last active April 18, 2024 13:08
A curated list of Assembly Language / Reversing / Malware Analysis / Game Hacking-resources
@RickyCook
RickyCook / _notes.md
Last active November 2, 2023 20:28
Quick bastion Wireguard VPN

Quick and dirty Wireguard bastion VPN

Enable IPv4 forwarding

sysctl -w net.ipv4.ip_forward=1 or echo 1 > /proc/sys/net/ipv4/ip_forward

/etc/sysctl.conf: net.ipv4.ip_forward = 1

Check IPv4 forwarding

@smijar
smijar / k3d-lb-demo.md
Last active July 13, 2023 01:14
k3d loadbalancer demo
@ahmetonurslmz
ahmetonurslmz / updating-nested-array-inside-array-mongodb.md
Last active August 15, 2023 03:11
Updating nested array inside array mongodb

Updating nested array inside array mongodb

For example: We have a document like this one;

clubs:{
cid: 1,
cname: "Fenerbahce",
cplayers: [{

pid: 1,