Skip to content

Instantly share code, notes, and snippets.

View lovmoon3k's full-sized avatar
💭
I may be slow to respond.

LovMoon3k lovmoon3k

💭
I may be slow to respond.
View GitHub Profile
@MuhammadSaim
MuhammadSaim / rarreg.key
Last active April 28, 2025 00:59
Step 1: Create a file called rarreg.key Step 2: Paste into the file the raw content of this gist Step 3: Go to Winrar install directory (by default => c:\ProgramFiles\WinRAR\ ) Step 4: Paste the rarreg.key into WinRAR directory Step 5: Enjoy
RAR registration data
WinRAR
Unlimited Company License
UID=4b914fb772c8376bf571
6412212250f5711ad072cf351cfa39e2851192daf8a362681bbb1d
cd48da1d14d995f0bbf960fce6cb5ffde62890079861be57638717
7131ced835ed65cc743d9777f2ea71a8e32c7e593cf66794343565
b41bcf56929486b8bcdac33d50ecf773996052598f1f556defffbd
982fbe71e93df6b6346c37a3890f3c7edc65d7f5455470d13d1190
6e6fb824bcf25f155547b5fc41901ad58c0992f570be1cf5608ba9
@hyrious
hyrious / restore-desktop-ini.md
Last active April 22, 2025 22:36
restore desktop.ini if some guy messed them up

Take %UserProfile%\Desktop\desktop.ini for example.

  1. Create a desktop.ini file with content below and saved in UTF-16 LE with BOM. Hopefully notepad.exe has such choice to use the right encoding.
[.ShellClassInfo]
LocalizedResourceName=@%SystemRoot%\system32\shell32.dll,-21769
IconResource=%SystemRoot%\system32\imageres.dll,-183
@stecman
stecman / dump-pyc-with-gdb.md
Last active March 19, 2025 18:22
Dumping all bytecode from a packaged Python application

This is a technique for extracting all imported modules from a packaged Python application as .pyc files, then decompiling them. The target program needs to be run from scratch, but no debugging symbols are necessary (assuming an unmodified build of Python is being used).

This was originally performed on 64-bit Linux with a Python 3.6 target. The Python scripts have since been updated to handle pyc files for Python 2.7 - 3.9.

Theory

In Python we can leverage the fact that any module import involving a .py* file will eventually arrive as ready-to-execute Python code object at this function:

PyObject* PyEval_EvalCode(PyObject *co, PyObject *globals, PyObject *locals);
@ankitmundada
ankitmundada / download_gdrive
Last active April 17, 2022 23:11
Shell Script to download Publicly shared Google drive files
#!/bin/bash
# Get files from Google Drive
# Source: https://stackoverflow.com/a/50573452/2382312
# Usage: download_gdrive FILE_ID DESTINATION_PATH
# $1 = file ID
# $2 = file name
URL="https://drive.google.com/uc?export=download&id=$1"
@Carm01
Carm01 / OfficeSettings.cmd
Last active July 1, 2022 09:36
These settings are designed to allow a user a better exxperience by removing annoyances. This works for Office 2016 and 2019
:: remove settings for individual and common apps
REG delete HKCU\Software\Microsoft\Office\16.0\Common\General /v "DisableBootToOfficeStart" /f
REG delete HKCU\Software\Microsoft\Office\16.0\Common\General /v "FirstRun" /f
REG delete HKCU\Software\Microsoft\Office\16.0\Common\General /v "AlertIfNotDefault" /f
REG delete HKCU\Software\Microsoft\Office\16.0\Excel\Options /v "AlertIfNotDefault" /f
REG delete HKCU\Software\Microsoft\Office\16.0\Excel\Options /v "DisableBootToOfficeStart" /f
REG delete HKCU\Software\Microsoft\Office\16.0\PowerPoint\Options /v "AlertIfNotDefault" /f
REG delete HKCU\Software\Microsoft\Office\16.0\PowerPoint\Options /v "DisableBootToOfficeStart" /f
REG delete HKCU\Software\Microsoft\Office\16.0\Word\Options /v "AlertIfNotDefault" /f
REG delete HKCU\Software\Microsoft\Office\16.0\Word\Options /v "DisableBootToOfficeStart" /f
@arjunv
arjunv / keyevents.json
Created December 2, 2018 00:01
All Android Key Events for usage with adb shell
{
"key_events": {
"key_unknown": "adb shell input keyevent 0",
"key_soft_left": "adb shell input keyevent 1",
"key_soft_right": "adb shell input keyevent 2",
"key_home": "adb shell input keyevent 3",
"key_back": "adb shell input keyevent 4",
"key_call": "adb shell input keyevent 5",
"key_endcall": "adb shell input keyevent 6",
"key_0": "adb shell input keyevent 7",
@hvnsweeting
hvnsweeting / js_containers.md
Last active June 26, 2022 09:34
JavaScript containers - Array | Object | Dict

Array

Array là kiểu dữ liệu tương tự list của Python, dùng để chứa nhiều object, cú pháp tạo Array giống list Python:

>> let xs = [1,3, "hello"]
undefined
>> xs
Array(3) [ 1, 3, "hello" ]
>> xs.length
3 
@tingplenting
tingplenting / ffmpeg_tuts.md
Last active August 20, 2024 06:59
ffmpeg cli for youtube

Extract audio from a YouTube video file

ffmpeg -i INPUT.mp4 -ab 256k OUTPUT.mp3

Cut 3s length

ffmpeg -y -ss 00:00:03 -i INPUT.mp4 -codec copy OUTPUT.mp4
@kzelda
kzelda / ReadWriteExcel.cs
Last active March 26, 2024 10:27 — forked from ram-sagar-mourya/ReadWriteExcel.cs
Read and Write Excel using open xml in c#
using DocumentFormat.OpenXml.Packaging;
using DocumentFormat.OpenXml.Spreadsheet;
using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ReadWriteExcelUsingOpenXml.Shared
@innat
innat / FFmpeg | Basic Operation on Subtitles.md
Last active February 18, 2025 15:55
Remove hard subtitles from video file || Integrate subtitles into a video file || Generate .srt file from a video file.

Download FFmpeg for Windows

Steps

  • Download FFmpeg
  • Extract it and save it to C drive ( choose any location - it's optional )
  • Set environment variable - copy the location of bin folder which is inside the extracted file and set the location on system path variable.
  • Done!