Skip to content

Instantly share code, notes, and snippets.

Update 28 July 2019: An updated version of this guide for Ubuntu Server 18.04 LTS is now available. Feel free to check it out.

Update 23 May 2020: This guide is ALREADY OUTDATED and might no longer work with new versions of Ubuntu and VirtualBox. Please consider switching to the updated guide instead. I will no longer respond to the replies to this gist. Thank you.

Mounting VirtualBox shared folders on Ubuntu Server 16.04 LTS

This guide will walk you through steps on how to setup a VirtualBox shared folder inside your Ubuntu Server guest. Tested on Ubuntu Server 16.04.3 LTS (Xenial Xerus)

@linxon
linxon / TimerTest.ino
Created March 6, 2022 07:10 — forked from balrog-kun/TimerTest.ino
Simple avr timer api
#include "Timers.h"
void simple_timeout(void) {
Serial.println("simple timeout elapsed");
}
class Example {
void objectTimeout(void) {
Serial.println("object timeout elapsed");
}
@linxon
linxon / hex_dump.c
Created August 22, 2021 05:47 — forked from domnikl/LICENSE
C function to dump memory
void hexDump(char *desc, void *addr, int len)
{
int i;
unsigned char buff[17];
unsigned char *pc = (unsigned char*)addr;
// Output description if given.
if (desc != NULL)
printf ("%s:\n", desc);
@linxon
linxon / Makefile
Created July 20, 2021 16:41 — forked from holachek/Makefile
AVR Tutorial Makefile
# Name: Makefile
# Author: <insert your name here>
# Copyright: <insert your copyright message here>
# License: <insert your license reference here>
# DEVICE ....... The AVR device you compile for
# CLOCK ........ Target AVR clock rate in Hertz
# OBJECTS ...... The object files created from your source files. This list is
# usually the same as the list of source files with suffix ".o".
# PROGRAMMER ... Options to avrdude which define the hardware you use for
@linxon
linxon / transmission_remove_finished.sh
Created January 28, 2021 12:37 — forked from pawelszydlo/transmission_remove_finished.sh
Script to clear finished torrents from transmission-daemon
#!/bin/bash
# Clears finished downloads from Transmission.
# Version: 1.1
#
# Newest version can always be found at:
# https://gist.github.com/pawelszydlo/e2e1fc424f2c9d306f3a
#
# Server string is resolved in this order:
# 1. TRANSMISSION_SERVER environment variable
adb shell setprop ctl.stop media
adb shell setprop ctl.stop zygote
adb shell setprop ctl.stop surfaceflinger
adb shell setprop ctl.stop drm
adb shell
@linxon
linxon / Android - Enable ADB from recovery.md
Created September 5, 2020 05:21 — forked from varhub/Android - Enable ADB from recovery.md
Android - Enable ADB from recovery

Android - Enable ADB from recovery

Credits to @TheOnlyAnil-@Firelord[^stackoverflow]

  • Requirements: a) stock recovery + rooted phone b) custom recovery

  • Files changed:

@linxon
linxon / extract android kernel.md
Created September 4, 2020 12:16 — forked from evopen/extract android kernel.md
How to Extract Android Kernel And Modify The Boot Ramdisk (Android 4.4)

Extracting Existing Kernel + Ramfs

Enter the machine using adb shell

Run cat /proc/partitions

  #  Path                     Purpose        Size
  0 /dev/block/mmcblk0                       7761920
  1 /dev/block/mmcblk0p1      data           6085631
@linxon
linxon / minecraft.sh
Created March 31, 2020 04:01 — forked from crabdancing/minecraft.sh
Minecraft Launcher alternative with no bullshit calling home
#!/usr/bin/env bash
# Copyleft (C) Alexandria Pettit
# GNU GPL v3
# This is a script to load Minecraft on Linux machines without using Mojang's crappy launcher.
# It is currently pretty much unusable for anyone but me, but I'm going to hopefully fix that soon!
# it'll require quite a lot of reverse engineering however.
# TODO: figure out how to better dynamicize .jar lib loading
#!/usr/bin/env bash
while read i ; do \
if [[ -n "$(qdepends -Q $i)" ]]; then \
echo '' ; echo 'checking '$i ;
if [[ -n "$(emerge -p --quiet --depclean $i)" ]]; then \
echo $i' needs to stay in @world'
else
echo $i' can be deselected'
echo $i >> /tmp/deselect