Skip to content

Instantly share code, notes, and snippets.

View luisvgs's full-sized avatar
😵‍💫
Hey

Luis luisvgs

😵‍💫
Hey
  • Venezuela
View GitHub Profile
@pdarragh
pdarragh / papers.md
Last active April 17, 2024 19:29
Approachable PL Papers for Undergrads

Approachable PL Papers for Undergrads

On September 28, 2021, I asked on Twitter:

PL Twitter:

you get to recommend one published PL paper for an undergrad to read with oversight by someone experienced. the paper should be interesting, approachable, and (mostly) self-contained.

what paper do you recommend?

@ecosse3
ecosse3 / update-neovim-nightly.sh
Last active December 21, 2023 19:02
Update Neovim Nightly from latest github release
#!/bin/bash
# Colors definitions
RED='\033[0;31m'
GREEN='\033[0;32m'
NC='\033[0m' # No Color
BOLD=$(tput bold)
NORMAL=$(tput sgr0)
# Check if necessary applications are installed
#!/usr/bin/awk -f
# This program is a copy of guff, a plot device. https://github.com/silentbicycle/guff
# My copy here is written in awk instead of C, has no compelling benefit.
# Public domain. @thingskatedid
# Run as awk -v x=xyz ... or env variables for stuff?
# Assumptions: the data is evenly spaced along the x-axis
# TODO: moving average

Rust Error Handling Cheatsheet - Result handling functions

Introduction to Rust error handling

Rust error handling is nice but obligatory. Which makes it sometimes plenty of code.

Functions return values of type Result that is "enumeration". In Rust enumeration means complex value that has alternatives and that alternative is shown with a tag.

Result is defined as Ok or Err. The definition is generic, and both alternatives have

@u8989332
u8989332 / LeetCode206.cpp
Created August 24, 2019 15:26
LeetCode - 206 Reverse Linked List (C++ code)
#include <iostream>
using namespace std;
/**
* definition for singly-linked list.
*
*/
struct ListNode {
@TalissonBento
TalissonBento / recursive_quicksort.cpp
Last active March 22, 2020 20:47
Recursive Quicksort C++ Implementation
//============================================================================
// Name : QuickSort.cpp
// Author : Talisson Bento
// Version :
// Copyright : Your copyright notice
// Description : Sort in C++, Ansi-style
//============================================================================
#include <iostream>
#include <vector>
@YahiaBakour
YahiaBakour / BST.cpp
Created May 15, 2018 06:24
Binary Search Tree C++ Implementation
/*BST CLASS AND FUNCTIONS BY YOUR BOI: YAHIA B.
All of this code is open_Source so feel free to take whatever you'd like.
Note: disp() and display(Node* P, int indent) logic and code are NOT mine.
*/
#include "Bst.h"
#include <iomanip>
int numberofnodes;
@bkth
bkth / Insomnihack pwn arena
Last active April 27, 2020 07:08
Write-ups for the game challenges at Insomni'hack 2018 CTF
As was the case last year, this year's Insomni'hack featured a multi-player game and 3 challenges requiring us to
hack the game in order to get the flags
It was a Unity based game and was written in C#, the core of the game logic was in the Assembly-CSharp.dll and I used dnSpy
(https://github.com/0xd4d/dnSpy) to decompile the DLL and understand the logic and modify the game.
Nightcrawler:
This challenge required us to activate 4 buttons within a 6 second window, the game used a master client architecture
where activating a button would trigger an RPC call to the master client which would keep track of the challenges based

NULL ( 17-18 solves)

Challenge makes a thread to do the job. So , a thread_arena is created on a new mmap_segment.

Bug

Overflow in read function :

 for ( i = 0LL; ; i += v3 )
 {