Skip to content

Instantly share code, notes, and snippets.

View BigNerd95's full-sized avatar

Lorenzo Santina BigNerd95

View GitHub Profile
@wybiral
wybiral / noscript-tracking.go
Last active September 11, 2023 08:53
Tracking cursor position in real-time with remote monitoring (without JavaScript)
// Tracking cursor position in real-time without JavaScript
// Demo: https://twitter.com/davywtf/status/1124146339259002881
package main
import (
"fmt"
"net/http"
"strings"
)
@ciscorn
ciscorn / install_pillow_simd.sh
Created May 4, 2018 07:50
Install pillow-simd on Ubuntu
#!/bin/env bash
pip3 uninstall pillow
apt install \
libjpeg-turbo8-dev \
zlib1g-dev \
libtiff5-dev \
liblcms2-dev \
libfreetype6-dev \
@dennislwy
dennislwy / rsa.py
Last active April 12, 2023 03:46
Python helper class to perform RSA encryption, decryption, signing, verifying signatures & generate new keys
# RSA helper class for pycrypto
# Copyright (c) Dennis Lee
# Date 21 Mar 2017
# Description:
# Python helper class to perform RSA encryption, decryption,
# signing, verifying signatures & keys generation
# Dependencies Packages:
# pycrypto
@kuznero
kuznero / WinUSBFromLinux.md
Last active August 23, 2021 13:20
How to make Windows 7 USB flash install media from Linux?

How to make Windows 7 USB flash install media from Linux?

StackOverflow

  • Install ms-sys - if it is not in your repositories, get it here. Or alternatively, make sure lilo is installed (but do not run the liloconfig step on your local box if e.g. Grub is installed there!)
  • Check what device your USB media is assigned - here we will assume it is /dev/sdb. Delete all partitions, create a new one taking up all the space, set type to NTFS (7), and remember to set it bootable:
# cfdisk /dev/sdb
or fdisk /dev/sdb (partition type 7, and bootable flag)
@oxyflour
oxyflour / ssh-vpn.sh
Last active January 15, 2024 08:41
how to setup non-root ssh vpn tunnel
# remember to add
#PermitTunnel yes
# in /etc/ssh/sshd_config
# create tun device on both machines
# ref: http://www.k336.org/2013/04/non-root-ssh-vpn.html
sudo ip tuntap add dev tun0 mode tun user oxyflour group oxyflour
# delete tun
sudo ip tuntap del dev tun0 mode tun
@cspinetta
cspinetta / decompile-java-classes-cfr
Last active June 4, 2021 17:50
An script to decompile multiple java classes with CFR Java Decompiler: http://www.benf.org/other/cfr/
#!/usr/bin/env bash
# USAGE: ./decompile-java-classes.sh -d {cfr jar} -i {input directory} -n {fiel name pattern} -o {output directory}
# Output directory and file name is optional
# File name accepts wildcard such as '*'
OUTPUTDIR="/tmp/decompiled-classes/"
FILE_NAME="*"
@JelmerT
JelmerT / strings_ipcamn
Created March 15, 2016 00:24
Strings inside ipcamn process of Logilink WC0030A - Apexis APM-JP8015-WS
$ strings ipcamn
/lib/ld-uClibc.so.0
p UR
_fini
__uClibc_main
__deregister_frame_info
__register_frame_info
_Jv_RegisterClasses
getpid
msntp_deal
@yeokm1
yeokm1 / Read-only FS on Arch Linux ARM.md
Last active August 18, 2023 05:43
Set up Arch Linux ARM on Raspberry Pi to boot from and use a read-only file-system

Read-only FS on Arch Linux ARM

Unlike your typical computer where you usually shutdown properly, I cannot rely on this during the use of my Raspberry Pi. If the Raspberry Pi is improperly shutdown too many times, data corruption in the file system leading to unbootable SD card may result. So we should use a read-only file system.

Full instructions and explanations are obtained from this link but you can run these commands directly. I modified some of the instructions for personal convenience.

Login with default username: alarm, password: alarm

#Optionally enable root over SSH. The rest of these instructions assume u are in root.
@imandarabi
imandarabi / SNCEP521.pm
Created June 24, 2014 05:14
ZoneMinder Sony Network Camera SNC-EP521 Control Protocol Module
# ==========================================================================
#
# ZoneMinder Sony Network Camera SNC-EP521 Control Protocol Module, date: Sun Jun 22 10:26:25 IRDT 2014
# Copyright (C) 2013-2014 Iman Darabi <iman.darabi@gmail.com>
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
@kopiro
kopiro / postepay.php
Last active April 5, 2020 11:21
Check Postepay money via PHP & CURL
#!/usr/bin/php
<?php
/*
To install, just run this command:
sudo curl https://gist.github.com/kopiro/5720439/raw -o /usr/local/bin/postepay && sudo chmod +x /usr/local/bin/postepay
And, edit with:
sudo nano /usr/local/bin/postepay