Skip to content

Instantly share code, notes, and snippets.

@FabianInostroza
FabianInostroza / socketcan-golang.go
Last active August 21, 2023 13:25
SocketCan in Golang
package main
import "fmt"
import "golang.org/x/sys/unix"
import "net"
import "log"
import "encoding/binary"
import "flag"
// CANMsg almacena un mensaje de la red CAN
@stephenlb
stephenlb / animated-gif.md
Last active October 31, 2020 22:57
DIY How to make your own HD Animated GIF Generator

HD Animated GIF Generator

You can make your own HD animated GIF generator.
Follow along with these commands to get started.

HD Animated GIF Generator

git clone git://source.ffmpeg.org/ffmpeg.git
cd ffmpeg
@pwuertz
pwuertz / PyQt5_OpenGl_TextureFromNumpy.py
Created October 27, 2014 09:44
PyQt5 Example: Create OpenGL texture from numpy array via mapped pixel buffer
from OpenGL import GL
from PyQt5 import QtWidgets, QtCore, QtGui, QtOpenGL
from OpenGL.GL.ARB.texture_rg import GL_R32F
import numpy as np
import ctypes
import time
w, h = 400, 400
class TestWidget(QtOpenGL.QGLWidget):
@stvnwlsn
stvnwlsn / file.md
Last active August 16, 2022 01:12
transmission-daemon FreeBSD

Install and setup transmission daemon

$ cd /usr/ports/net-p2p/transmission-daemon
$ sudo make install
$ sudo mkdir /srv/torrents/{autoload,data}
$ sudo chown -R transmission:transmission /srv/torrents/
$ sudo chmod -R go+w /srv/torrents/
$ sudo vim /etc/rc.conf
@raspi
raspi / smb.conf.ini
Last active March 12, 2021 16:24
FreeBSD ZFS Samba 4 config with recycle and read/write optimizations example
# Samba 4 config example
# Connected to existing remote Samba 4 Active Directory Directory Controller
# ZFS pool @ /storage
# Network is 192.168.101.0/24
# Samba is installed with:
# pkg install samba42
# and then joined to existing AD with:
# samba-tool domain join <params>
# After this /usr/local/etc/smb4.conf is edited and restarted with /usr/local/etc/rc.d/samba_server restart
@clemensg
clemensg / etc_make.conf
Last active June 1, 2020 21:37
My FreeBSD make.conf
# /etc/make.conf
# Clemens Gruber, 2017
#
# Nearby mirror
#MASTER_SITE_OVERRIDE="ftp://ftp.at.freebsd.org/pub/FreeBSD/ports/distfiles/"
#MASTER_SITE_OVERRIDE="ftp://ftp.de.freebsd.org/pub/FreeBSD/ports/distfiles/"
# Build
MAKE_JOBS_NUMBER?=8
@kimoto
kimoto / gist:524968
Created August 15, 2010 02:04
L4D2のHUD改造方法
//--------------------------------------------
// Subject: L4D2のHUD改造方法
// Author: KIMOTO
// Updated At: 2011/03/22
// Created At: 2010/08/15
//--------------------------------------------
■概要
Left4Dead2のHUD(Head Up Display)についての変更、カスタマイズ方法についてまとめた資料です