Skip to content

Instantly share code, notes, and snippets.

View typable's full-sized avatar
🛠️
building stuff

Andreas typable

🛠️
building stuff
View GitHub Profile
@Adron
Adron / install-golang-apt-get.sh
Last active March 27, 2024 22:10
Installing golang via apt-get
sudo add-apt-repository ppa:ubuntu-lxc/lxd-stable
sudo apt-get update
sudo apt-get -y upgrade
sudo apt-get install golang
# Usually this is good to install golang, but alas the apt-get repo is usually out of sync with the latest.
@justinian
justinian / linux-x64-nasm-cheatsheet.md
Last active March 26, 2024 20:07
x64 NASM Cheat Sheet

x64 NASM cheat sheet

Registers

64 bit 32 bit 16 bit 8 bit
A (accumulator) RAX EAX AX AL
B (base, addressing) RBX EBX BX BL
C (counter, iterations) RCX ECX CX CL
D (data) RDX EDX DX DL
@pbojinov
pbojinov / README.md
Last active December 8, 2023 21:09
Two way iframe communication- Check out working example here: http://pbojinov.github.io/iframe-communication/

Two way iframe communication

The main difference between the two pages is the method of sending messages. Recieving messages is the same in both.

Parent

Send messages to iframe using iframeEl.contentWindow.postMessage Recieve messages using window.addEventListener('message')

iframe

@crazybyte
crazybyte / encrypt_openssl.txt
Created November 25, 2012 10:10
File encryption using OpenSSL
For symmetic encryption, you can use the following:
To encrypt:
openssl aes-256-cbc -salt -a -e -in plaintext.txt -out encrypted.txt
To decrypt:
openssl aes-256-cbc -salt -a -d -in encrypted.txt -out plaintext.txt
For Asymmetric encryption you must first generate your private key and extract the public key.
@simonjenny
simonjenny / slideshow.py
Last active May 18, 2023 14:52
Slideshow for Raspberry Pi (or any other Python capable OS)
# -*- coding: utf-8 -*-
import os, pygame, random
pygame.init()
pygame.mouse.set_visible(False)
BACKGROUND = (0,0,0)
INTERVAL = os.getenv('INTERVAL', 60)
IMAGEFOLDER = os.getenv('IMAGEFOLDER', 'images')
@bartosjiri
bartosjiri / raspbian-64bit-headless.md
Created April 9, 2020 20:44
Raspberry Pi Raspbian 64bit headless setup

Raspberry Pi Raspbian 64bit headless setup

A step-by-step guide for running a headless Raspbian 64bit kernel and OS on Raspberry Pi. The provided configuration has been tested on models 3B, 3B+ and 4B.

Instructions

  1. Download the Raspberry Pi Imager application.

  2. Use the application to download Raspbian Lite (under Raspbian (other)) and write the image on your SD card.

  3. Setup wireless connection configuration by creating wpa_supplicant.conf file in the boot folder:

@synox
synox / install SonarQube on Raspberry Pi
Last active October 4, 2022 12:06
How to install SonarQube on Raspberry PI
SonarQube does currently not support Raspberry PI.
This is a workaround. It compiles a armv6 compatible version of the java-wrapper and configures sonarqube to use it.
(Testet with Raspbian, wheezy, 3.6)
Compile java-wrapper for ARMv6
============================
Download latest version of " wrapper_prerelease_XY.tar" from http://wrapper.tanukisoftware.com/downloads/ (for me 3.5.17 works)
@hrpunio
hrpunio / tcx2gpx
Created July 24, 2013 09:46
Convert TCX (Garmin Edge) to GPX with gpsbabel
#!/bin/bash
# Convert TCX (Garmin Edge) to GPX with gpsbabel
# Usage: tcx2gpx tcx-file-name [-o gpx-file-name] -max 999
# -o -- gpx-file-name, if not given, computed from tcx-file-name (it is assumed YYYY-MM-DD*.tcx)
# -max -- produce simplified track with maximum 999 trkpoints
#
SIMPLIFY=""
if [ $# -eq 0 ]; then
@anson-vandoren
anson-vandoren / pygame_chromebook.md
Last active February 11, 2021 22:48
Installing Pygame on ARM chromebook (Samsung Chromebook 2)
  1. Install Linux (crostini)
  2. Update package manager lists
$ sudo apt-get update
  1. Install python3
$ sudo apt-get install python3 python3-pip
  1. Install dependencies
@surtic86
surtic86 / minecraft
Created April 4, 2011 06:41
Minecraft Start / Stop / Update .... Script
#!/bin/bash
# /etc/init.d/minecraft
# Parameter
USERNAME='bukkit'
MCPATH='/opt/minecraft/'
BACKUPPATH='/opt/backup/'
RAM='1G'
FILENAME='craftbukkit-0.0.1-SNAPSHOT.jar'
START="java -Xincgc -Xmx$RAM -jar $FILENAME"