Skip to content

Instantly share code, notes, and snippets.

View Patola's full-sized avatar

Patola Patola

  • MakerLinux
  • Wrocław, Poland
View GitHub Profile
@Meister1593
Meister1593 / patch_bindings_spam.sh
Last active October 24, 2024 20:50
SteamVR patcher to remove websocket spam
#!/bin/bash
echo "Latest known working version for patching: 2.3.5"
if [[ -z "$1" ]]; then
echo 'Enter absolute path to SteamVR (for example, /home/user/.local/share/Steam/steamapps/common/SteamVR)'
read STEAMVR_PATH
else
STEAMVR_PATH="$1"
fi
#!/usr/bin/python3
from bluepy import btle
import sys
class DiscoLH(btle.DefaultDelegate):
def __init__(self):
self.devices = []
btle.DefaultDelegate.__init__(self)
@lbssousa
lbssousa / Vagrantfile
Last active March 8, 2019 16:36
Configurando uma máquina virtual minimalista do Ubuntu 16.04 no VirtualBox para Internet Banking da Caixa Econômica Federal
# -*- mode: ruby -*-
# vi: set ft=ruby :
$script = <<ENDSCRIPT
Home="/home/ubuntu"
# Altere os valores abaixo de acordo com o seu banco
Modulo="GBPCEFwr64.deb"
UrlModulo="https://cloud.gastecnologia.com.br/cef/warsaw/install/${Modulo}"
UrlBanco="http://www.caixa.gov.br"
@spences10
spences10 / github-cheat-sheet.md
Last active March 22, 2022 17:59
GitHub Cheat Sheet

Useful Git commands

This is just stuff that I have put down that I find I use a lot of the time for my own reference.

Latest changes from repo to your machine

$ git pull
@5263
5263 / blender-nurbs-selfcontained.py
Last active March 20, 2023 12:07
NURBS export for Blender and import for FreeCAD
#!/usr/bin/env python
freecadfunctions="""#!/usr/env/bin python
#python 2
import FreeCAD,Part
def pointstopoles1D(points):
return zip(*[(FreeCAD.Vector(point[0:3]),point[3]) for point in points])
def pointstopoles(points,cu):
poles=[]