Skip to content

Instantly share code, notes, and snippets.

View sponnusa's full-sized avatar
👻
Vicious Electron Journey!

Suri sponnusa

👻
Vicious Electron Journey!
View GitHub Profile
@AnatomicJC
AnatomicJC / android-backup-apk-and-datas.md
Last active November 22, 2025 18:54
Backup android app, data included, no root needed, with adb

Backup android app, data included, no root needed, with adb

Note: This gist may be outdated, thanks to all contributors in comments.

adb is the Android CLI tool with which you can interact with your android device, from your PC

You must enable developer mode (tap 7 times on the build version in parameters) and install adb on your PC.

Don't hesitate to read comments, there is useful tips, thanks guys for this !

@haidv35
haidv35 / Gzinflate Base64 Encode And Decode
Created September 22, 2019 15:16
Gzinflate Base64 Encode And Decode
<?php
function encode2($str) {
for ($i = 1;$i <= $_POST['num'];$i++) {
$str = 'eval(gzinflate(base64_decode("'.base64_encode(gzdeflate($str)).'")));';
}
return $str;
}
function encode3($str) {
$mh_1 = str_replace("gzinflate", "\$_X", $str);
$mh_2 = str_replace("base64_decode", "\$_T", $mh_1);
@JoeyBurzynski
JoeyBurzynski / 55-bytes-of-css.md
Last active October 28, 2025 06:41
58 bytes of css to look great nearly everywhere

58 bytes of CSS to look great nearly everywhere

When making this website, i wanted a simple, reasonable way to make it look good on most displays. Not counting any minimization techniques, the following 58 bytes worked well for me:

main {
  max-width: 38rem;
  padding: 2rem;
  margin: auto;
}
@francoism90
francoism90 / 99-sysctl.conf
Created March 28, 2019 09:27
Linux performance tweaks (TCP/UDP, swap, VFS)
# https://docs.continuent.com/tungsten-clustering-5.0/performance-networking.html
# https://wiki.archlinux.org/index.php/Sysctl
# https://pubs.vmware.com/continuent/tungsten-replicator-3.0/performance-networking.html
# https://www.vultr.com/docs/how-to-setup-tcp-optimization-on-linux
# https://russ.garrett.co.uk/2009/01/01/linux-kernel-tuning/
fs.file-max = 2097152
net.core.netdev_max_backlog = 250000
net.core.somaxconn = 1024
net.core.rmem_max = 67108864
@vi
vi / split_by_silence.sh
Last active February 23, 2024 13:18
Using FFmpeg to split multimedia file into parts based on audio volume level
#!/bin/bash
IN=$1
OUT=$2
true ${SD_PARAMS:="-55dB:d=0.3"};
true ${MIN_FRAGMENT_DURATION:="20"};
export MIN_FRAGMENT_DURATION
if [ -z "$OUT" ]; then

Recon and Attack Vectors from My Logs

This document contains excerpts from my web server logs collected over a period of 7 years that shows various kinds of recon and attack vectors.

There were a total of 37.2 million lines of logs out of which 1.1 million unique HTTP requests (Method + URI) were found.

$ sed 's/^.* - - \[.*\] "\(.*\) HTTP\/.*" .*/\1/' access.log &gt; requests.txt
@marta-krzyk-dev
marta-krzyk-dev / Create ECDSA certificate.txt
Last active April 2, 2025 18:32
Create self-signed ECDSA (ECC) certificate with private key inside in openssl
--- CREATE SELF-SIGNED ECDSA CERTIFICATE WITH PRIVATE KEY INSIDE ----
1. Open openssl.exe.
2. If you haven't chosen a curve, you can list them with this command:
ecparam -list_curves
I picked sect571r1 for this example. Use this to generate an EC private key if you don't have one already:
@Elrashid
Elrashid / 0ReadMe.md
Last active October 20, 2019 14:32
openssl genrate ca child private key and certificate

openssl genrate ca child private key and certificate

Step 01

We will open a Run window

On the keybord press

Windoes Key + R
@nneul
nneul / packt-sync.pl
Created December 19, 2018 00:42
Quick ugly script for bulk download of packt ebooks from your own account
#!/usr/bin/perl
$| = 1;
use URI::Escape;
use LWP;
use JSON;
my $user = '[email protected]';
my $pw = 'my-password';
my $download_path = "/home/myuser/packt";
@chrisswanda
chrisswanda / WireGuard_Setup.txt
Last active November 25, 2025 17:43
Stupid simple setting up WireGuard - Server and multiple peers
Install WireGuard via whatever package manager you use. For me, I use apt.
$ sudo add-apt-repository ppa:wireguard/wireguard
$ sudo apt-get update
$ sudo apt-get install wireguard
MacOS
$ brew install wireguard-tools
Generate key your key pairs. The key pairs are just that, key pairs. They can be