Skip to content

Instantly share code, notes, and snippets.

@denise-amiga
denise-amiga / Crack Sublime Text Windows and Linux.md
Created October 27, 2021 12:12 — forked from JerryLokjianming/Crack Sublime Text Windows and Linux.md
Crack Sublime Text 3.2.2 Build 3211 and Sublime Text 4 Alpha 4098 with Hex

YouTube Channel https://www.youtube.com/c/jerrylokjianming


How to Crack Sublime Text 3.2.2 Build 3211 with Hex Editor (Windows | Without License) ↓

  1. Download & Install Sublime Text 3.2.2 Build 3211
  2. Visit https://hexed.it/
@denise-amiga
denise-amiga / asus-encrypt.c
Created June 12, 2020 13:23
asus encrypt dsl-n66u
//encrypt_asus
//Ren.B
#define ALIGN_SIZE 1024
#define DEFAULT_HEADER "DSL-N66U"
//must be the same structure in /apps/private/cfg_manager/utility.c
typedef struct romfile_header_s
{
char productName[16];
char keyWord[16]; //encryptRomfile
# https://bougui505.github.io/2016/02/29/zsh_string_manipulation-_split_string.html
Split string in a given word separator (ws)
For example _:
# x="foo_1"
# echo $x[(ws:_:)1]
foo
# echo $x[(ws:_:)2]
1
@denise-amiga
denise-amiga / hash.c
Created April 12, 2020 11:23 — forked from tonious/hash.c
A quick hashtable implementation in c.
/* Read this comment first: https://gist.github.com/tonious/1377667#gistcomment-2277101
* 2017-12-05
*
* -- T.
*/
#define _XOPEN_SOURCE 500 /* Enable certain library functions (strdup) on linux. See feature_test_macros(7) */
#include <stdlib.h>
#include <stdio.h>
@denise-amiga
denise-amiga / hashtable.c
Created April 12, 2020 11:23 — forked from phsym/hashtable.c
An hashtable implementation in C
/*
* Author : Pierre-Henri Symoneaux
*/
#include <stdlib.h>
#include <string.h>
//Hashtable element structure
typedef struct hash_elem_t {
struct hash_elem_t* next; // Next element in case of a collision
@denise-amiga
denise-amiga / SimpleList.bas
Created April 4, 2020 13:41
Simple generic list in freebasic using "any ptr" in the base class.
type listBucket
payload as any ptr
nextBucket as listBucket ptr
end type
type List extends object
private:
_start as listBucket ptr
_end as listBucket ptr
_mutex as any ptr
@denise-amiga
denise-amiga / DDS238-2 ZN-S Modbus.md
Created February 10, 2020 20:37 — forked from alphp/DDS238-2 ZN-S Modbus.md
Hiking DDS238-2 ZN/S energy meter

Hiking DDS238-2 ZN/S energy meter

Modbus holding registers:

Register(s) Meaning Scale Unit Data format R/W
0000h-0001h total energy 1/100 kWh unsigned dword
0002h-0003h reserved unsigned dword
0004h-0005h reserved unsigned dword
0006h-0007h reserved unsigned dword
@denise-amiga
denise-amiga / BoxOfTools.sh
Created January 13, 2020 12:11
BoxOfTools
mkdir Ahteam
cd Ahteam
wget http://qunpack.ahteam.org/wp-content/uploads/2007/03/quickunpack10rc1.zip
wget https://ahteam.org/files/oursoft/ASPR_Dumper_v0_1.zip
wget https://ahteam.org/files/oursoft/DeDe_PAS_Viewer_v1_0.zip
wget https://ahteam.org/files/oursoft/Easy_PatchMaker_v1_0.zip
wget https://ahteam.org/files/oursoft/EP_Protector_v0_3.zip
wget https://ahteam.org/files/oursoft/NFO_File_Maker_v2_2.zip
wget https://ahteam.org/files/oursoft/NFO_Viewer_v1_2_Final.zip
wget https://ahteam.org/files/oursoft/PlayIn_v0_9.zip
@denise-amiga
denise-amiga / visualsort.bas
Last active June 5, 2019 17:06
visual sort
#include "fbgfx.bi"
#if __FB_LANG__ = "fb"
Using FB '' Screen mode flags are in the FB namespace in lang FB
#endif
'' Sets screen mode 18 (640*480) with 32bpp color depth and 4 pages, in windowed mode; switching disabled
'Screen 18, 32, 4, (GFX_WINDOWED Or GFX_NO_SWITCH)
#Define inc += 1
#Define dec -= 1
### Run vcs_info selectively to increase speed in large repos ################
# The following example shows a possible setup for vcs_info which displays
# staged and unstaged changes in the vcs_info prompt and prevents running
# it too often for speed reasons.
# Allow substitutions and expansions in the prompt, necessary for
# using a single-quoted $vcs_info_msg_0_ in PS1, RPOMPT (as used here) and
# similar. Other ways of using the information are described above.
setopt promptsubst