Skip to content

Instantly share code, notes, and snippets.

@MakiseKurisu
MakiseKurisu / ssh.txt
Last active April 5, 2020 22:25
SSH Tunnel
# Scenario
# You have control of one computer <remote_address> behind NAT and its public internet facing router <sshd_address>.
# You want to access them from another computer <local_address> that is behind another uncontrolled NAT,
# and also from <remote_address> to this <local_address>.
# Run following command in <local_address>.
# Enable sock5 proxy and allow remote access of local RDP
ssh -R 0.0.0.0:2222:127.0.0.1:3389 -D 8765 -N <sshd_address>
# Access remote SSH and another computer's RDP
@shad94
shad94 / json
Last active March 7, 2023 05:54
config.json
{
"run_name": "ljspeech",
"run_description": "Tacotron ljspeech release training",
"audio":{
// Audio processing parameters
"num_mels": 80, // size of the mel spec frame.
"num_freq": 1025, // number of stft frequency levels. Size of the linear spectogram frame.
"sample_rate": 16000, // DATASET-RELATED: wav sample-rate. If different than the original data, it is resampled.
"frame_length_ms": 50, // stft window length in ms.
@shad94
shad94 / gist:73e89df4434ad78ed5def8ad47d81005
Created November 26, 2019 10:39
config.json Mozilla/TTS
{
"run_name": "ljspeech",
"run_description": "Tacotron ljspeech release training",
"audio":{
// Audio processing parameters
"num_mels": 80, // size of the mel spec frame.
"num_freq": 1025, // number of stft frequency levels. Size of the linear spectogram frame.
"sample_rate": 22050, // DATASET-RELATED: wav sample-rate. If different than the original data, it is resampled.
"frame_length_ms": 50, // stft window length in ms.
@JonathanLPoch
JonathanLPoch / nmap-diff.sh
Last active October 4, 2022 15:56
Lightweight Nmap Topology Scanning
#!/bin/sh
DEFAULTNMAPOPTIONS="-T4 -sV -Pn --top-ports 5000 -R"
NMAPOPTIONS="$DEFAULTNMAPOPTIONS"
die() {
printf '\033[38;5;9m%s\033[0m\n\n' "$1" >&2
display_usage
exit 1
}
@soediro
soediro / ubuntu-kernel-tuning.sh
Last active May 30, 2023 09:29
ubuntu kernel tuning script
#!/bin/bash
#vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4:
#
# Author : Nicolas Brousse <[email protected]>
# From : https://www.shell-tips.com/2010/09/13/linux-sysctl-configuration-and-tuning-script/
#
# Added kernel version < 2.6.33 set net.ipv4.tcp_congestion_control=htcp
# Notes :
# This script is a simple "helper" to configure your sysctl.conf on linux
# There is no silver bullet. Don't expect the perfect setup, review comments
@Pulimet
Pulimet / AdbCommands
Last active May 1, 2025 04:50
Adb useful commands list
Hi All!
I've recently launched a tool that wraps many of the commands here with a user interface. This desktop application is currently available for macOS. There's a roadmap outlining planned features for the near future.
Feel free to request any features you'd like to see, and I'll prioritize them accordingly.
One of the most important aspects of this application is that every command executed behind the scenes is displayed in a special log section. This allows you to see exactly what’s happening and learn from it.
Here's the link to the repository: https://github.com/Pulimet/ADBugger
App Description:
ADBugger is a desktop tool designed for debugging and QA of Android devices and emulators. It simplifies testing, debugging, and performance analysis by offering device management, automated testing, log analysis, and remote control capabilities. This ensures smooth app performance across various setups.
@JamesHagerman
JamesHagerman / DisassembleARMBinaryInR2.md
Last active March 30, 2023 06:43
Some quick notes on disassembling 16bit ARM (STM32F4) code using radare2

Disassembling 1bitsy examples using radare2

Note that because radare2 uses Capstone to disassemble ARM code, there are issues with the disassembly. arm-none-eabi-objdump -d compiledbinary.elf actually does a better job in some cases. For example, msr isn't decompiled correctly...

First, you have to either strip the default ELF binaries the default Makefiles build when you run make OR you need to just compile .bin files using something like:

make binaryname.bin
@jmakeig
jmakeig / marklogic-eval.sh
Last active May 9, 2020 11:42
Evaluates JavaScript against MarkLogic from the command line
#!/usr/bin/env bash
# Pipes stdin as the JavaScript body of a REST Client API eval request
#
# Usage:
# cat mycode.sjs | marklogic-eval.sh
# pbpaste | marklogic-eval.sh
cat <(echo 'javascript=') <(cat -) | curl http://localhost:8000/v1/eval \
--digest -u admin:admin -X POST \
@PSJoshi
PSJoshi / sysctl.conf
Last active June 3, 2024 16:12
linux kernel tunning - sysctl.conf
# Configuration file for runtime kernel parameters.
# See sysctl.conf(5) for more information.
# See also http://www.nateware.com/linux-network-tuning-for-2013.html for
# references:
#
# https://config.securix.org/config/securix-conf/etc/sysctl.conf
# https://github.com/minhdanh/Linux-Kernel-Tuning-and-Hardening/blob/master/kernel_hardening_tuning.sh
# https://gist.github.com/sokratisg/98d03e20fca76d4b699f