Skip to content

Instantly share code, notes, and snippets.

Avatar

Ryan Lahfa RaitoBezarius

View GitHub Profile
@williballenthin
williballenthin / auto_shellcode_hashes.py
Last active Aug 30, 2021
automatically resolve shellcode hashes into symbolic names using emulation, example: https://asciinema.org/a/EaHLv3yy7nGnh7mfHQ5DVy1LJ
View auto_shellcode_hashes.py
import os
import sys
import logging
import pefile
import ucutils
import unicorn
import capstone
import argparse
@ugiacoman
ugiacoman / Client-Loading-Example.md
Last active Jan 6, 2021
SSR + CSR using next.js
View Client-Loading-Example.md

Whether your component relies on client-side features or you are using 3rd party components that are not designed for server-side rendering, sometimes you'll want to defer rendering until on the client. For our example, we'll be using react-chart-2 to load a Doughnut chart.

Doughnut

You'll need a next project and to install chart.js + react-chartjs-2.

$ npm install --save chart.js react-chartjs-2  
@bishboria
bishboria / springer-free-maths-books.md
Last active Aug 27, 2021
Springer made a bunch of books available for free, these were the direct links
@kristopolous
kristopolous / hn_seach.js
Last active Jul 22, 2021
hn job query search
View hn_seach.js
function query() {
var
// HN is done with very unsemantic classes.
job_list = Array.prototype.slice.call(document.querySelectorAll('.c5a,.cae,.c00,.c9c,.cdd,.c73,.c88')),
query_list = Array.prototype.slice.call(arguments),
shown = 0, total = job_list.length;
// Traverses up the dom stack trying to find a match of a specific class
function up_to(node, klass) {
if (node.classList.contains(klass)) {