Skip to content

Instantly share code, notes, and snippets.

View louis-e's full-sized avatar
:octocat:
0xDEADBEEF

Louis Erbkamm louis-e

:octocat:
0xDEADBEEF
View GitHub Profile
@chippydip
chippydip / grasshopper.ks
Created February 2, 2017 07:47
kOS Suicide Burn Script
@lazyglobal off.
function countdown {
parameter i.
lock STEERING to LOOKDIRUP(UP:VECTOR, FACING:TOPVECTOR).
lock THROTTLE to 1.
until i <= 0 {
HUDTEXT(i, 1, 4, 100, RED, false).
@mowings
mowings / gist:7210816c88fb3328b3ad
Last active December 3, 2021 08:34
Raspberry Pi raspivid output to mp4
# Stream 60 seconds of video to an mp4 file
sudo raspivid -o - -t 60000 -ex night -br 50 -w 1920 -h 1080 -rot 279 -fps 8 | sudo ffmpeg -r 8 -i - -y -vcodec copy /mnt/pi/camera/foo.mp4
@leommoore
leommoore / nano_js_syntax_highlighting.md
Last active October 5, 2023 21:21
nano javascript syntax highlighting

#nano javascript syntax highlighting

The existing syntax highlighting is located in /usr/share/nano/

To add a new language

sudo nano /usr/share/nano/javascript.nanorc

Put the following in the contents:

@ewpratten
ewpratten / hosts-yt-ads
Last active November 30, 2023 18:45
youtube ads hosts file
This project has been moved to a GitHub repository to allow Pull Requests.
See: https://github.com/Ewpratten/youtube_ad_blocklist
@sid24rane
sid24rane / net.js
Last active February 7, 2024 08:05
Simple TCP Client and Server in Node.js (Covering all useful Properties & Methods)
var net = require('net');
// creates the server
var server = net.createServer();
//emitted when server closes ...not emitted until all connections closes.
server.on('close',function(){
console.log('Server closed !');
});
@tedmiston
tedmiston / nodejs-tcp-example.js
Last active February 19, 2024 21:55
Node.js TCP client and server example
/*
In the node.js intro tutorial (http://nodejs.org/), they show a basic tcp
server, but for some reason omit a client connecting to it. I added an
example at the bottom.
Save the following server in example.js:
*/
var net = require('net');
@darkguy2008
darkguy2008 / UDPSocket.cs
Last active April 21, 2024 14:48
Simple C# UDP server/client in 56 lines
using System;
using System.Net;
using System.Net.Sockets;
using System.Text;
namespace UDP
{
public class UDPSocket
{
private Socket _socket = new Socket(AddressFamily.InterNetwork, SocketType.Dgram, ProtocolType.Udp);
@danielbierwirth
danielbierwirth / TCPTestClient.cs
Last active April 27, 2024 20:24
TCP Client-Server Connection Example | Unity | C# | Bidirectional communication sample: Client can connect to server; Client can send and receive messages: Server accepts clients; Server reads client messages; Server sends messages to client
// This work is licensed under the Creative Commons Attribution-ShareAlike 4.0 International License.
// To view a copy of this license, visit http://creativecommons.org/licenses/by-sa/4.0/
// or send a letter to Creative Commons, PO Box 1866, Mountain View, CA 94042, USA.
using System;
using System.Collections;
using System.Collections.Generic;
using System.Net.Sockets;
using System.Text;
using System.Threading;
using UnityEngine;
@agrawalsuneet
agrawalsuneet / NativeAndroidTextSharingInUnity.cs
Last active May 5, 2024 01:03
Native Android text Share in Unity
using UnityEngine;
using UnityEngine.UI;
using System.Collections;
public class NativeAndroidTextSharingInUnity : MonoBehaviour {
public Button shareButton;
private bool isFocus = false;
private bool isProcessing = false;
@nicolasdao
nicolasdao / open_source_licenses.md
Last active May 9, 2024 10:14
What you need to know to choose an open source license.