Skip to content

Instantly share code, notes, and snippets.

View Aceeri's full-sized avatar
💭
E

Aceeri Aceeri

💭
E
View GitHub Profile
#!/bin/sh
set -e;
while true
do
sleep 1;
for i in *.mov;
do
@Aceeri
Aceeri / Cargo.toml
Created December 10, 2022 21:40
bevy patch.crates-io
[patch.crates-io]
bevy = {git = "https://github.com/aceeri/bevy"}
bevy_animation = {git = "https://github.com/aceeri/bevy"}
bevy_app = {git = "https://github.com/aceeri/bevy"}
bevy_asset = {git = "https://github.com/aceeri/bevy"}
bevy_audio = {git = "https://github.com/aceeri/bevy"}
bevy_core = {git = "https://github.com/aceeri/bevy"}
bevy_core_pipeline = {git = "https://github.com/aceeri/bevy"}
bevy_derive = {git = "https://github.com/aceeri/bevy"}
bevy_diagnostic = {git = "https://github.com/aceeri/bevy"}
@Aceeri
Aceeri / networking.md
Created May 12, 2022 22:04
Networking Starter Kit
@Aceeri
Aceeri / relations.rs
Last active January 5, 2022 04:09
caching relations
use bevy::prelude::*;
use bevy::ecs::component::Component;
use std::marker::PhantomData;
use std::ops::{Deref, DerefMut};
use fxhash::FxHashMap;
#[derive(Clone, Debug)]
pub struct Relations<T>
static C:&str="println!(\"static C:&str={:?};\",C); println!(\"fn main(){{{}}}\",C);";
fn main(){println!("static C:&str={:?};",C); println!("fn main(){{{}}}",C);}
@Aceeri
Aceeri / shape_maker.rs
Created July 3, 2020 08:49
Rust Shape maker script
#[derive(Debug, Copy, Clone)]
enum Direction {
Top = 0,
Right = 1,
Bottom = 2,
Left = 3,
}
#[derive(Debug, Copy, Clone)]
enum ConnectionError {
for {
select {
case msg, ok := <-responseChan:
if !ok {
break
}
if msg == nil {
break
}
message = msg
func (statsd *StatsdProvider) ParsePacket(packet []byte) (*Depth, error) {
var depth Depth
parser := PacketParser{
buffer: packet,
index: 0,
}
word, err := parser.TakeUntilDelimiter(".")
if err != nil {
watched=()
pids=()
contains() {
local value=$1;
for pod in "${watched[@]}"
do
if [[ $pod == $value ]]
then
echo "1"
fi
pods='\n' read -r -a array <<< $(kubectl get pods -l app=$1 -o name | sed 's/pods\///g')
rm ~/kubefifo
mkfifo ~/kubefifo
for pod in "${array[@]}"
do
kubectl logs $pod -f > ~/kubefifo & echo "$pod following";
done
cat ~/kubefifo