Skip to content

Instantly share code, notes, and snippets.

View GenesisFR's full-sized avatar

David GenesisFR

View GitHub Profile
@GenesisFR
GenesisFR / TheTaoOfBadass-HackingAttraction.txt
Last active December 23, 2021 08:44
Some notes about the Hacking Attraction module of The Tao Of Badass
**Hacking your body**
- 3 points: who am I? who are you? how can I show you who I am?
- 3 things you should never think, these are knowledge/progress killer: "but that's not me", "that's not true" and "I already know this"
- accept your strengths, then improve your weaknesses
- pre-typing questions to know how you process information to reveal more about yourself:
- how do you energize? by spending time alone -> introvert (I)
- how do you take in information? I'm alone in my bedroom at night, eating in front of the computer, taking notes while watching a video about self-development -> sensor (S)
- how do you evaluate things? I rationalize things, I process more in my brain first -> thinker (T)
- how do you view time? I'm always late -> spontaneous perceiver (P)
@GenesisFR
GenesisFR / Books.txt
Last active September 15, 2023 09:56
These are all the books I've read in my life, along with the ones I'd like to read.
x All About Women (Giuseppe Notte)
x How to Win Friends and Influence People (Dale Carnegie)
- Models: Attract Women Through Honesty (Mark Manson)
- Rich Dad Poor Dad (Robert T. Kiyosaki and Sharon Lechter)
x The 4-Hour Workweek (Timothy Ferriss)
x The Magic of Thinking Big (David J. Schwartz)
x The Tao of Badass (Joshua Pellicer)
x You, Inc (Burke Hedges)
@GenesisFR
GenesisFR / Music.txt
Last active March 16, 2024 10:13
These are all the bands I've listened to in my life, along with the ones I'd like to listen to.
Note: bands I completely listened to are specified using a 'x' character.
x +44
x 10cc
- 2Pac
x 3 Doors Down
x 888
- A.R. Rahman
x A Beacon School
x A Broken Silence
@GenesisFR
GenesisFR / Movies.txt
Last active March 24, 2024 10:02
These are all the movies I've watched in my life, along with the ones I'd like to watch.
Note: movies watched are specified using a 'x' character, series in progress/unfinished have a '*' character.
Movies:
x 100 Girls
x 101 Dalmatians (https://www.imdb.com/title/tt0115433)
x 127 Hours
x 1408
x 17 Again
x 1917
Note: mods are specified using a '-' character. 100% means all achievements unlocked.
Games finished (most of them on stream), hardest difficulty:
- 35MM
- 8Bit Killer
- A Date in the Park (100%)
- A Way Out
- Aerinde
- Afterfall InSanity
Note: mods are specified using a '-' character.
Braid mods backlog:
- Braid - Modyssee
- Braid - More now than ever
- Braid - Nyx
- Braid - Silverbraid
Half-Life 1 mods backlog:
@GenesisFR
GenesisFR / ConditionalBreakpoint.cpp
Created March 7, 2019 00:07
VS2017 conditional breakpoint (strings)
strcmp(myString._Mypair._Myval2._Bx._Buf, "test") == 0
#define _IN_FILE "in.txt"
#define _OUT_FILE "out.txt"
#include <fstream>
#include <string>
#include <vector>
#include <algorithm>
#include <windows.h>
using namespace std;
@GenesisFR
GenesisFR / StringReplace.cpp
Created December 4, 2018 03:47
C++ function to replace all occurrences of a substring in a string
using namespace std;
string replaceAll(string str, const string &from, const string &to)
{
size_t start_pos = 0;
while ((start_pos = str.find(from, start_pos)) != string::npos)
{
str.replace(start_pos, from.length(), to);
start_pos += to.length(); // Handles case where 'to' is a substring of 'from'
}
@GenesisFR
GenesisFR / ToBinary.c
Created November 23, 2018 13:20
C function to convert an integer to a binary string
#include <stdio.h>
#include <stdlib.h>
char * toBinary(int n)
{
const int size = sizeof(n) * 8;
char * str = (char*)malloc(sizeof(char) * (size + 1));
if (str)
{