Skip to content

Instantly share code, notes, and snippets.

View ajusa's full-sized avatar

Arham Jain ajusa

View GitHub Profile
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<script src="hyperscript.js"></script>
<link rel="stylesheet" href="https://unpkg.com/@picocss/pico@latest/css/pico.min.css">
<link rel="stylesheet" href="https://unpkg.com/tachyons@4.12.0/css/tachyons.min.css"/>
<script type="text/hyperscript">
init fetch words.json as json then set $allwords to it then trigger reset(count: 50) on #words
def nextWord(value)
@ajusa
ajusa / all.nim
Created October 30, 2021 02:47
Nim CTF Snippets (Hack The Planet)
import stew/byteutils, strutils
proc decrypt(input: seq[byte], key: byte): string =
var tmp: seq[byte]
for byte in input:
tmp.add(byte xor key)
return cast[string](tmp)
var key: seq[byte]
for line in "./rand.txt".lines:
key.add(line.parseInt.byte)
@ajusa
ajusa / Melon Fix
Last active August 29, 2015 14:23
Temp fix for melons
--Make a folder called Melon Fix and place this file in it. Add Melon Fix to your list of plugins, and reload
function Initialize(Plugin)
Plugin:SetName("Melon Fix")
Plugin:SetVersion(1)
cPluginManager:AddHook(cPluginManager.HOOK_PLAYER_BREAKING_BLOCK, melonBreak);
cPluginManager:AddHook(cPluginManager.HOOK_PLAYER_BREAKING_BLOCK, pumpkinBreak);
LOG("Initialised " .. Plugin:GetName() .. " v." .. Plugin:GetVersion())
return true
mingw32-make[2]: *** No rule to make target 'deps/curl/lib/libcurl.dll', needed
by 'craft.exe'. Stop.
CMakeFiles\Makefile2:59: recipe for target 'CMakeFiles/craft.dir/all' failed
mingw32-make[1]: *** [CMakeFiles/craft.dir/all] Error 2
Makefile:116: recipe for target 'all' failed
mingw32-make: *** [all] Error 2
@ajusa
ajusa / Error
Created December 28, 2014 02:10
Error
Linking C executable craft.exe
CMakeFiles\craft.dir/objects.a(auth.c.obj):auth.c:(.text+0xae): undefined refere
nce to `_imp__curl_easy_init'
CMakeFiles\craft.dir/objects.a(auth.c.obj):auth.c:(.text+0x119): undefined refer
ence to `_imp__curl_easy_setopt'
CMakeFiles\craft.dir/objects.a(auth.c.obj):auth.c:(.text+0x188): undefined refer
ence to `_imp__curl_easy_perform'
CMakeFiles\craft.dir/objects.a(auth.c.obj):auth.c:(.text+0x1a3): undefined refer
ence to `_imp__curl_easy_getinfo'
CMakeFiles\craft.dir/objects.a(auth.c.obj):auth.c:(.text+0x1ac): undefined refer
C:\Users\MYUSER\Desktop\Craft\Craft-Dev\Craft\src\api.c: In function 'clua_init':
C:\Users\MYUSER\Desktop\Craft\Craft-Dev\Craft\src\api.c:82:66: error: 'sDir' unde
clared (first use in this function)
fprintf(stderr, "[Lua] Module folder not found: [%s]\n", sDir);
^
C:\Users\MYUSER\Desktop\Craft\Craft-Dev\Craft\src\api.c:82:66: note: each undecla
red identifier is reported only once for each function it appears in
CMakeFiles\craft.dir\build.make:54: recipe for target 'CMakeFiles/craft.dir/src/
api.c.obj' failed