Skip to content

Instantly share code, notes, and snippets.

@rambo
rambo / sc_pro_tips.md
Last active May 24, 2024 20:49
Collection of tutorials and good tips for Star Citizen

SC pro tips

3.23

Master Modes changes everything so a lot of the old tutorials for 3.22 and prior are no longer applicable.

@rambo
rambo / futures_test.py
Created January 20, 2019 10:10
concurrent.futures example where futures can generate more work to do
from concurrent.futures import ProcessPoolExecutor
import time
import random
def long_task(sleeptime):
print("Sleeping {}".format(sleeptime))
time.sleep(sleeptime)
if sleeptime < 1:
return []
if random.random() > 0.7:
@rambo
rambo / output.txt
Created January 18, 2019 19:12
Python class method recursion test
rambombp2015-674:Downloads rambo$ python2.7 rec_test.py
level is 0
level is 1
level is 2
level is 3
level is 4
level is 5
level is 6
level is 7
level is 8
@rambo
rambo / void_ptr.c
Created March 16, 2018 09:29
reminder to self on how to deref void pointer to integer
// gcc -Wall void_ptr.c -o void_ptr ; ./void_ptr
#include <stdio.h>
#include <stdint.h>
void muck_count(void* param)
{
uint8_t *foo = (uint8_t*)param;
printf("foo %u\n", *foo);
*foo = 0;
}
import time
from WSDiscovery import WSDiscovery, QName
from onvif import ONVIFCamera, ONVIFError
import urllib.parse
ONVIF_TYPE_NVT = QName('http://www.onvif.org/ver10/network/wsdl', 'NetworkVideoTransmitter')
try_auth = [
('admin', ''),
('admin', 'ms1234'),
]
@rambo
rambo / spuce.rb
Created April 7, 2017 20:51
Edited spuce formula to fix compile problems
class Spuce < Formula
desc "A C++ library for DSP filters"
homepage "http://pyspuc.com"
head "https://github.com/audiofilter/spuce.git"
url "https://github.com/audiofilter/spuce/archive/0.4.3.tar.gz"
version "0.4.3"
sha256 "5688e107b57640ba0485790d64eb16bff855f54f6fa5b2fdab568ee91f6dc687"
depends_on "cmake" => :build
depends_on :python
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 1e61faf..062914d 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -166,7 +166,7 @@ if(VSXU_DEBUG)
add_definitions(
-g
-Wall
- -mtune=nocona
+ -march=armv8-a
@rambo
rambo / lottacnc_nginx.txt
Created November 21, 2015 18:15
Autostart and proxy to port 80 for https://github.com/tanelikaivola/lottacnc
server {
listen 80;
location / {
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_pass http://localhost:5002;
}
}