Skip to content

Instantly share code, notes, and snippets.

View Nibba2018's full-sized avatar
🪲
Squashing Bugs.

Soham Biswas Nibba2018

🪲
Squashing Bugs.
View GitHub Profile
@giefko
giefko / FileTransferTCPClient
Last active October 23, 2022 22:40
Python File Transfer over TCP
import socket # Import socket module
s = socket.socket() # Create a socket object
host = "1somehing.11somehing." #Ip address that the TCPServer is there
port = 50000 # Reserve a port for your service every new transfer wants a new port or you must wait.
s.connect((host, port))
s.send("Hello server!")
with open('received_file', 'wb') as f:
@carlos-jenkins
carlos-jenkins / vg.c
Created February 7, 2014 23:17
Valgrind test program to demostrate memory access violation, memory leak or double free problems in a C program.
#include <stdlib.h>
#include <stdio.h>
// Compile with:
// gcc -std=c99 -g -Wall -O0 -o vg vg.c
// Run with:
// valgrind --leak-check=full ./vg [1|2|3]
int read_and_write(int* buff, int size, int seed)
{
@jasonkarns
jasonkarns / readme.md
Last active March 11, 2024 23:26
Git send-email using Gmail
  1. Configure git.
# ~/.config/git/config
[sendemail]
  confirm = auto
  smtpServer = smtp.gmail.com
  smtpServerPort = 587
  smtpEncryption = tls
  smtpUser = <gmail email address>