Skip to content

Instantly share code, notes, and snippets.

View nicdgonzalez's full-sized avatar

Nicolas Gonzalez nicdgonzalez

  • Florida, USA
  • 07:37 (UTC -04:00)
View GitHub Profile
@ndavison
ndavison / socket-https-client.py
Created November 19, 2014 10:03
Python socket HTTPS client connection example
#!/bin/env python
"""
A simple example of using Python sockets for a client HTTPS connection.
"""
import ssl
import socket
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.connect(('github.com', 443))
@rueycheng
rueycheng / GNU-Make.md
Last active July 6, 2024 14:14
GNU Make cheatsheet
@fnky
fnky / ANSI.md
Last active July 19, 2024 08:06
ANSI Escape Codes

ANSI Escape Sequences

Standard escape codes are prefixed with Escape:

  • Ctrl-Key: ^[
  • Octal: \033
  • Unicode: \u001b
  • Hexadecimal: \x1B
  • Decimal: 27
@Lusamine
Lusamine / BDSP Mystery Gift Calculator.cs
Last active September 24, 2022 01:06
Go anywhere where the advances go +1 at a time. Delay is 0 on this script, or you can figure it out for yourself.
int FlawlessIVs = 0;
void Main()
{
// Initial state
// s0 should be s1, s0 from CS
// s1 should be s3, s2 from CS
ulong s0 = 0x0123456789ABCDEF;
ulong s1 = 0x0123456789ABCDEF;
@itsmaxymoo
itsmaxymoo / minecraft-launcher-desktop-creator.py
Last active June 19, 2024 20:11
Script to create a desktop file for the official Minecraft launcher
#!/bin/python3
# ------------------------------------
# For easy execution, run the command:
# curl https://gist.githubusercontent.com/itsmaxymoo/3ffd38ed8f4d896e67e7c5af25b40173/raw | python3 -
# ------------------------------------
import os