Skip to content

Instantly share code, notes, and snippets.

View boxiXia's full-sized avatar

BoxiXia boxiXia

  • Columbia University
View GitHub Profile
@stas00
stas00 / tb-rename-events.py
Created October 15, 2021 03:16
tensorboard rename event tags (based on https://stackoverflow.com/a/60080531/9201239)
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# this script renames event names in tensorboard log files
# it does the rename in place (so make back ups!)
#
# example:
#
# find . -name "*.tfevents*" -exec tb-rename-events.py {} "iteration-time" "iteration-time/iteration-time" \;
#
@hostilefork
hostilefork / listener.c
Last active May 31, 2024 03:02
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
//
@t-mat
t-mat / buidling-glfw3-with-vc2015-x64.md
Created March 13, 2016 09:34
Building GLFW with Visual C++ 2015 (x64)

Building GLFW with Visual C++ 2015 (x64)

cd /d "%USERPROFILE%"
git clone https://github.com/glfw/glfw
cd glfw
mkdir build_vs14_win64
cd build_vs14_win64
cmake -G "Visual Studio 14 2015 Win64" ..
@KartikTalwar
KartikTalwar / Documentation.md
Last active May 9, 2024 12:59
Rsync over SSH - (40MB/s over 1GB NICs)

The fastest remote directory rsync over ssh archival I can muster (40MB/s over 1gb NICs)

This creates an archive that does the following:

rsync (Everyone seems to like -z, but it is much slower for me)

  • a: archive mode - rescursive, preserves owner, preserves permissions, preserves modification times, preserves group, copies symlinks as symlinks, preserves device files.
  • H: preserves hard-links
  • A: preserves ACLs
@mminer
mminer / Console.cs
Last active March 28, 2024 22:23
Unity script to display in-game debug console. Actively maintained version: https://github.com/mminer/consolation
// NOTE: For an actively-maintained version of this script, see https://github.com/mminer/consolation.
using System.Collections.Generic;
using UnityEngine;
/// <summary>
/// A console to display Unity's debug logs in-game.
/// </summary>
public class Console : MonoBehaviour
{