Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View Croydon's full-sized avatar
👨‍💻
Always code like your code will be preserved for 1000 years in the Arctic.

Michael Keck Croydon

👨‍💻
Always code like your code will be preserved for 1000 years in the Arctic.
View GitHub Profile
@Croydon
Croydon / enet.lua
Created December 16, 2022 17:34 — forked from sauerbraten/enet.lua
ENet Wireshark dissector. Place in ~/.local/lib/wireshark/plugins/.
-- Enet 1.3 Protocol Dissector For Wireshark
--
-- Cameron Gutman (aicommander@gmail.com)
-- fixes by Alexander Willing (willing.alexander@gmail.com)
-- Licensed under GPLv3
--
-- ENetProtocolHeader
enet_header_hassenttime = ProtoField.bool("enet.header.has_senttime", "Has Sent Time")
enet_header_compressed = ProtoField.bool("enet.header.is_compressed", "Compressed")
@Croydon
Croydon / 1.Instructions.md
Created January 10, 2021 16:09 — forked from WesThorburn/1.Instructions.md
Linux: Compile C++ to WebAssembly and JavaScript using Emscripten and CMake

Linux: Compile C++ to WebAssembly and JavaScript using Emscripten and CMake

Download and Install Emscripten

  • My preferred installation location is /home/user
  • Get the latest sdk: git clone https://github.com/emscripten-core/emsdk.git
  • Enter the cloned directory: cd emsdk
  • Install the lastest sdk tools: ./emsdk install latest
  • Activate the latest sdk tools: ./emsdk activate latest
  • Activate path variables: source ./emsdk_env.sh
  • Configure emsdk in your bash profile by running: echo 'source "/home/user/emsdk/emsdk_env.sh"' >> $HOME/.bash_profile
@Croydon
Croydon / linelength.py
Created March 19, 2020 18:16
Find longest line in all Python files in CCI
import glob
import os
record = 0
record_file = ""
for filename in glob.iglob(os.path.join(".", "recipes", "**"), recursive=True):
if os.path.isfile(filename) and filename.endswith(".py"):
print(filename)
current = len(max(open(filename), key=len))
@Croydon
Croydon / git-pushing-multiple.rst
Created March 19, 2020 16:31 — forked from rvl/git-pushing-multiple.rst
How to push to multiple git remotes at once. Useful if you keep mirrors of your repo.

Pushing to Multiple Git Repos

If a project has to have multiple git repos (e.g. Bitbucket and Github) then it's better that they remain in sync.

Usually this would involve pushing each branch to each repo in turn, but actually Git allows pushing to multiple repos in one go.

If in doubt about what git is doing when you run these commands, just

@Croydon
Croydon / InteractiveScrollView.java
Created November 16, 2017 18:38 — forked from marteinn/InteractiveScrollView.java
ScrollView with a OnBottomReachedListener for Android
package se.marteinn.ui;
import android.content.Context;
import android.util.AttributeSet;
import android.view.View;
import android.widget.ScrollView;
/**
* Triggers a event when scrolling reaches bottom.
@Croydon
Croydon / stylish.css
Last active March 22, 2017 03:43
Vertical Tabs Reloaded - Stylish - A way to modify the style
@import "resource://verticaltabsreloaded-at-go-dev-dot-de/data/template/basic/index.css"
@import "moz-extension://27c4f706-2646-481e-8da6-ce6af1eab0c9/data/template/basic/index.css";
@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
/* Note: This is likely stop working with Firefox v57,
but I'm working on build-in customization, see https://github.com/Croydon/vertical-tabs-reloaded/issues/40 */
/* Another note: Use !important to overwrite the existing vars for sure;
also users should have set the Dark or Light theme in their VTR settings */
{
"pages": [
{
"page_name": "Build",
"title": "Build",
"summary": null,
"action": "edited",
"sha": "89b81fd71acbec4f919246d4f9d5ac31cedd9eed",
"html_url": "https://github.com/inexor-game/code/wiki/Build"
}
1
00:00:00,860 --> 00:00:03,440
Labels kinda scared me for a long time.
2
00:00:03,680 --> 00:00:05,440
For a really long time, actually.
3
00:00:11,000 --> 00:00:15,219
1
00:00:00,860 --> 00:00:03,440
Labels haben mir für
eine lange Zeit ziemliche Angst gemacht.
2
00:00:03,680 --> 00:00:05,440
Für eine sehr lange Zeit.
3