Skip to content

Instantly share code, notes, and snippets.

@heartbleeded
heartbleeded / srtfixer.html
Created November 24, 2020 21:24
SRT Fixer
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html;CHARSET=iso-8859-1">
<META ID="GENERATOR" Content="Visual Page 2.0 for Windows">
<TITLE>SRT-fixer - Online SRT Subtitle Resync Tool</TITLE>
</HEAD>
@heartbleeded
heartbleeded / yify.md
Created April 20, 2020 15:20 — forked from kuntau/yify.md
YIFY's Quality Encoding

For those that want to keep the YTS going (No, IDGAF about people that don't care for YTS quality) get HandbrakeCLI https://handbrake.fr/downloads... and use the following settings:

user@user:~$HandBrakeCLI -i /file/input.mp4 -o /file/out.mp4 -E fdk_faac -B 96k -6 stereo -R 44.1 -e x264 -q 27 -x cabac=1:ref=5:analyse=0x133:me=umh:subme=9:chroma-me=1:deadzone-inter=21:deadzone-intra=11:b-adapt=2:rc-lookahead=60:vbv-maxrate=10000:vbv-bufsize=10000:qpmax=69:bframes=5:b-adapt=2:direct=auto:crf-max=51:weightp=2:merange=24:chroma-qp-offset=-1:sync-lookahead=2:psy-rd=1.00,0.15:trellis=2:min-keyint=23:partitions=all

Reason to use CLI over GTK has to do with lack of support for advanced settings for Handbrake GTK

** Don't Re-encode already shitty encodes...get good source!**

class Tesseract < Formula
desc "OCR (Optical Character Recognition) engine"
homepage "https://github.com/tesseract-ocr/"
url "https://github.com/tesseract-ocr/tesseract/archive/4.1.1.tar.gz"
sha256 "2a66ff0d8595bff8f04032165e6c936389b1e5727c3ce5a27b3e059d218db1cb"
head "https://github.com/tesseract-ocr/tesseract.git"
bottle do
cellar :any
sha256 "81ff467946d9c85151c86819034cd183a983b4a3fa10374c7f039a5ec3ef0d82" => :catalina
@heartbleeded
heartbleeded / remove_accents.py
Created March 18, 2020 18:15 — forked from J2TEAM/remove_accents.py
Remove Vietnamese Accents - Xoá dấu tiếng việt in Python
s1 = u'ÀÁÂÃÈÉÊÌÍÒÓÔÕÙÚÝàáâãèéêìíòóôõùúýĂăĐđĨĩŨũƠơƯưẠạẢảẤấẦầẨẩẪẫẬậẮắẰằẲẳẴẵẶặẸẹẺẻẼẽẾếỀềỂểỄễỆệỈỉỊịỌọỎỏỐốỒồỔổỖỗỘộỚớỜờỞởỠỡỢợỤụỦủỨứỪừỬửỮữỰựỲỳỴỵỶỷỸỹ'
s0 = u'AAAAEEEIIOOOOUUYaaaaeeeiioooouuyAaDdIiUuOoUuAaAaAaAaAaAaAaAaAaAaAaAaEeEeEeEeEeEeEeEeIiIiOoOoOoOoOoOoOoOoOoOoOoOoUuUuUuUuUuUuUuYyYyYyYy'
def remove_accents(input_str):
s = ''
print input_str.encode('utf-8')
for c in input_str:
if c in s1:
s += s0[s1.index(c)]
else:
s += c
@heartbleeded
heartbleeded / quick.md
Last active February 19, 2020 21:59
quick setup env

The command line, in short…

wget -k -K -E -r -l 10 -p -N -F --restrict-file-names=windows -nH http://website.com/

…and the options explained

  • -k : convert links to relative
  • -K : keep an original versions of files without the conversions made by wget
  • -E : rename html files to .html (if they don’t already have an htm(l) extension)
  • -r : recursive… of course we want to make a recursive copy
  • -l 10 : the maximum level of recursion. if you have a really big website you may need to put a higher number, but 10 levels should be enough.
@heartbleeded
heartbleeded / windows10activation
Created July 19, 2019 15:38
Activate Windows 10 without Any Activator
1. Open CMD as Administrator
2. Paste the following commands into the Cmd: One by one, follow the order.
cscript slmgr.vbs /ipk "SERIAL NUMBER HERE"
Replace SERIAL NUMBER HER with any of these, according your Windows 10 installation type.
Home/Core TX9XD-98N7V-6WMQ6-BX7FG-H8Q99
Home/Core (Country Specific) PVMJN-6DFY6-9CCP6-7BKTT-D3WVR
Home/Core (Single Language) 7HNRX-D7KGG-3K4RQ-4WPJ4-YTDFH
@heartbleeded
heartbleeded / ida_bochs_mac.md
Last active September 12, 2018 17:11 — forked from you0708/ida_bochs_mac.md
Bochs Debugging on IDA for macOS

IDA Debugging with Bochs on macOS

This file describes how to debug with Bochs IDB mode on IDA for macOS.

Environment

IDA 7.0 macOS version + Bochs 2.6.9

Install

  1. Install IDA
  2. Download Bochs source code "bochs-2.6.9.tar.gz" from https://sourceforge.net/projects/bochs/files/bochs/2.6.9/
  3. Install Bochs 2.6.9 as below -- You can't use brew to install Bochs due to compile options
@heartbleeded
heartbleeded / mughthesec.pcap
Created August 10, 2017 15:10
mughthesec.pcap
http://download.mughthesec.com/in/e622f60d-e06c-e711-a367-f7801280a94b
GET http://download.mughthesec.com/in/e622f60d-e06c-e711-a367-f7801280a94b HTTP/1.1
Host: download.mughthesec.com
Accept: */*
Connection: close
HTTP/1.1 200 OK
Content-Type: application/zip
Content-Disposition: attachment; filename=Mughthesec.zip
Content-Length: 261282
Cache-Control: private, max-age=3600
@heartbleeded
heartbleeded / dropped.plist
Created August 10, 2017 15:07
Dropped plist
<code>9cf822e8d1102ebc_com.Mughthesec.plist 
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>com.Mughthesec</string>
<key>ProgramArguments</key>
<array>
<string>/Users/admin/Library/Application Support/com.Mughthesec/Mughthesec</string>