Skip to content

Instantly share code, notes, and snippets.

View frednora's full-sized avatar
💧
Glitch and Leak

Fred Nora frednora

💧
Glitch and Leak
View GitHub Profile
@nishantmendiratta
nishantmendiratta / Time To Get Back To The Basics - How Browser Reads HTML, CSS, and JavaScript.md
Last active January 7, 2024 17:24
📖 Getting Back To The Basics - How Browser Reads HTML, CSS, and JavaScript?

What happens when a browser loads a website?

  1. It fetches the HTML page (index.html)
  2. Begin parsing the HTML
  3. The parser encounters a <script> tag referencing an external script file.
  4. The browser requests the script file. Meanwhile, the parser blocks and stops parsing the other HTML on your page.
  5. After some time the script is downloaded and subsequently executed.
  6. The parser continues parsing the rest of the HTML document.

(Step 4) It causes a bad user experience. Your website basically stops loading until you've downloaded all scripts. If there's one thing that users hate it's waiting for a website to load.

Group rules

  1. Section for faq and resources.
  2. Post gist / pastebin link to code excerpt and explain the problem and wanted outcome and what you’ve done or tried.
  3. Members are here to help not do all the work. Guidance is provided with some resources and possibly own help if commentor desires.
  4. Do some research first on Google, Stackoverflow, or other source.
  5. We’re all here to help and learn.
  6. If wanting to post a link to your own blog/site/work/video/tutorial ensure material is relevant and good to expand knowledge and understanding.
  7. Be kind and courteous to others, we were all beginners once.
@GasparVardanyan
GasparVardanyan / types_in_the_c18_language
Last active May 23, 2020 22:30
Types in the C18 language
basic types # complete object types
{
char
signed integer types
{
standard signed integer types
{
signed char
short
int
#include <stdio.h>
#include <stdlib.h>
int getint(int *number);
int main()
{
int n;
fputs("Digite um inteiro cara: ", stdout);
@davidlares
davidlares / rawInjection.py
Last active January 19, 2024 20:46
Raw Sockets with Python: Sniffing and network packet injections.
#!/usr/bin/python
import socket
import struct
# creating a rawSocket for communications
# PF_SOCKET (packet interface), SOCK_RAW (Raw socket) - htons (protocol) 0x08000 = IP Protocol
rawSocket = socket.socket(socket.PF_PACKET, socket.SOCK_RAW, socket.htons(0x0800))
# deciding interface - packet sniffing and then injection
@frednora
frednora / update_mouse_ok.c
Created January 23, 2019 13:37
Update Mouse OK
// Credits:
// Omar Mohammad. Maadi, Cairo, Egypt. (Original in Assembly)
// Wagner Teixeira
// Fred Nora
//==================================================================================
// Start - testing update_mouse
//==================================================================================
#define MOUSE_LEFT_BTN 0x01
/*
Bruno Soares Galdino
avaliação de expressões aritméticas - em desenvolvimento
*/
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
@fnky
fnky / ANSI.md
Last active May 3, 2024 17:31
ANSI Escape Codes

ANSI Escape Sequences

Standard escape codes are prefixed with Escape:

  • Ctrl-Key: ^[
  • Octal: \033
  • Unicode: \u001b
  • Hexadecimal: \x1B
  • Decimal: 27
@frednora
frednora / mouse-support.c
Last active September 11, 2018 01:08
mouse support
// gist para a rotina de mouse.
//
// ************* C *********************
//
//=======================================================
//++ Usadas pelo mouse.
// hardwarelib.inc
/********************
* Exemplo maluco por Luiz Felipe.
*
* https://github.com/Silva97
********************/
#include <stdio.h>
#define UCHARPTR (unsigned char *)