Skip to content

Instantly share code, notes, and snippets.

View ivakyb's full-sized avatar
💭
🍯

kyb ivakyb

💭
🍯
View GitHub Profile
@hostilefork
hostilefork / listener.c
Last active April 16, 2024 15:32
Simple listener and sender for UDP multicast
//
// Simple listener.c program for UDP multicast
//
// Adapted from:
// http://ntrg.cs.tcd.ie/undergrad/4ba2/multicast/antony/example.html
//
// Changes:
// * Compiles for Windows as well as Linux
// * Takes the port and group on the command line
//
@nk9
nk9 / largestFiles.py
Last active November 14, 2023 09:47
Python script to find the largest files in a git repository.
#!/usr/bin/python
# -*- coding: utf-8 -*-
# Python script to find the largest files in a git repository.
# The general method is based on the script in this blog post:
# http://stubbisms.wordpress.com/2009/07/10/git-script-to-show-largest-pack-objects-and-trim-your-waist-line/
#
# The above script worked for me, but was very slow on my 11GB repository. This version has a bunch
# of changes to speed things up to a more reasonable time. It takes less than a minute on repos with 250K objects.
#
@henryhuypham
henryhuypham / Bash - Expect
Last active March 15, 2022 12:55
Bash script using Expect - providing input for bash script beforehand.
#!/bin/bash
client="client_000"
country=""
state=""
locality=""
org=""
org_unit=""
common_name=""
name=""