Skip to content

Instantly share code, notes, and snippets.

View lourinaldi's full-sized avatar

Lou Rinaldi lourinaldi

  • Connecticut, USA
View GitHub Profile
@Stanoja
Stanoja / homm3m1m2.md
Last active February 13, 2024 05:33
HoMM3 For Mac M1/M2

HoMM3 for Mac M1/M2

Prerequisites:

  • Brew
  • HoMM3 GOG Version
  • HotA 1.7.0 (optional)
  • Any installed HOMM3 (can be copied over)

Wineskin Server:

@jgamblin
jgamblin / antiautosploit.py
Last active June 1, 2023 01:57
Blocks Shodan IPs From Scanning Your Servers.
#!/usr/bin/python3
import os
shodan = ["104.131.0.69", "104.236.198.48", "155.94.222.12","155.94.254.133", "155.94.254.143", "162.159.244.38", "185.181.102.18", "188.138.9.50", "198.20.69.74", "198.20.69.98", "198.20.70.114", "198.20.87.98", "198.20.99.130", "208.180.20.97", "209.126.110.38", "216.117.2.180", "66.240.192.138", "66.240.219.146", "66.240.236.119", "71.6.135.131", "71.6.146.185", "71.6.158.166", "71.6.165.200", "71.6.167.142", "82.221.105.6", "82.221.105.7", "85.25.103.50", "85.25.43.94", "93.120.27.62", "98.143.148.107", "98.143.148.135"]
for ip in shodan:
os.system("iptables -A INPUT -s {} -j DROP".format(ip))
@tonyerskine
tonyerskine / README.MD
Last active February 22, 2024 13:14
Windows Script to Convert Excel Files to CSV

Instructions

  1. Copy both files into the directory containing the files you want converted
  2. Run excel-to-csv.bat

Note: This script requires Excel to be installed.

@yifanlu
yifanlu / dynarec.c
Created August 2, 2016 18:57
Vita dynarec example
#include <psp2/kernel/sysmem.h>
int dynarec_test(void)
{
int block;
int ret;
void *base;
int (*func)(void);
// allocate block in VM domain
@xyzz
xyzz / toolchain.md
Last active January 21, 2018 21:23

Use latest prebuilt toolchain: https://goo.gl/QpX5zM (the one at the top)

New build step has been added, after vita-elf-create you need to run: vita-make-fself homebrew.velf eboot.bin You need to run vita-make-fself on the .velf, not .elf The resulting eboot.bin can then be put into a .vpk archive, read below

Homebrew installer uses a .vpk format which is just a ZIP file, start from this template: https://github.com/xyzz/Vita_Doom/releases/download/1.0/vitadoom.vpk (try installing it from the shell)

  • replace eboot.bin with your eboot.bin
  • you can also add template.xml and stuff like icon/background/etc that will be displayed in livearea, check out how it's done in molecular shell (launch it and go to app0)
  • make sure to run pngquant on all your png images https://pngquant.org/
  • to make param.sfo, use vita-mksfoex -s TITLE_ID=XXXX00001 "homebrew name" output/param.sfo
@caseywatts
caseywatts / MediawikionHeroku.md
Last active August 16, 2022 06:28
Mediawiki on Heroku
@colinmahns
colinmahns / otrdm.md
Last active March 31, 2021 19:33
HOWTO: Twitter DM with OTR

Twitter DM + OTR: A quick and dirty tutorial

With the recent removal of the 140-character limit in Direct Messages by Twitter, DM's have now become a much more useful platform for communicating between individuals and groups. Sadly, DM's are still sent in plaintext between users and Twitter has no plans currently on encrypting these messages, at least as of August 2015. Since these are stored in plaintext at rest, an adversary can see the content of the message you are sending, which the two parties might not wish to happen. Fortunately as a few applications with basic Twitter support which also have excellent support for OTR, all hope isn't lo

@caseywatts
caseywatts / slugify-for-pivotal-install.md
Last active June 10, 2017 17:47
Slugify Pivotal Ticket Name (for git branch name)
@smealum
smealum / qr.py
Created January 11, 2015 22:51
ninjhax stuff
import os
import sys
import struct
import ctypes
import compress
#compress.py from https://github.com/magical/nlzss/blob/master/compress.py
#slightly modified padding
def getWord(b, k, n=4):
return sum(list(map(lambda c: b[k+c]<<(c*8),range(n))))
@caseywatts
caseywatts / 0 - Chrome Workshop.md
Last active August 30, 2023 06:48
Chrome Extension Workshop