Skip to content

Instantly share code, notes, and snippets.

@random-robbie
random-robbie / install_go_pi.sh
Created April 26, 2018 14:16
Install Go Lang 1.10.1 on Raspberry Pi 3
wget https://storage.googleapis.com/golang/go1.10.1.linux-armv6l.tar.gz
sudo tar -C /usr/local -xvf go1.10.1.linux-armv6l.tar.gz
cat >> ~/.bashrc << 'EOF'
export GOPATH=$HOME/go
export PATH=/usr/local/go/bin:$PATH:$GOPATH/bin
EOF
source ~/.bashrc
@peabnuts123
peabnuts123 / them.js
Last active October 3, 2017 01:10
Naively replace gendered pronouns with non-gendered versions
/*
TITLE:
Them.js
VERSION:
0.1.0 (released 2017-10-03)
PURPOSE:
Replace gendered pronouns on web-pages with non-gendered versions in a non-intrusive way.
Not only do gendered pronouns subtly reinforce sexism and gender bias, I personally find that
@ali1234
ali1234 / quintic.py
Created June 3, 2016 01:42
Reverse engineering of budget fitness band using quintic qn9021...
#!/usr/bin/env python
#Connecting to: 08:7C:BE:8F:3C:FB, address type: public
#Service <uuid=Generic Attribute handleStart=12 handleEnd=15> :
# Characteristic <Service Changed>, hnd=0xd, supports READ INDICATE
# -> '\x01\x00\xff\xff'
#Service <uuid=Generic Access handleStart=1 handleEnd=11> :
# Characteristic <Device Name>, hnd=0x2, supports READ WRITE
# -> 'Quintic BLE'
# Characteristic <Appearance>, hnd=0x4, supports READ
@mlaily
mlaily / NativeMembers.cs
Last active November 28, 2023 06:05
Find which process have a file opened using the Restart Manager API
using System;
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using System.Linq;
using System.Runtime.InteropServices;
using System.Text;
using System.Threading.Tasks;
// ReSharper disable InconsistentNaming
namespace RestartManager