Skip to content

Instantly share code, notes, and snippets.

View stealthcopter's full-sized avatar

Matthew Rollings stealthcopter

View GitHub Profile
@nihathrael
nihathrael / kubuntu-to-neon.md
Last active July 11, 2023 15:58
How to upgrade kubuntu 16.04 -> KDE neon

This worked for me and might not work for your.

Try it at your own risk!

Add the neon repositories and install the neon desktop

$ wget -qO - 'http://archive.neon.kde.org/public.key' | sudo apt-key add -
$ sudo apt-add-repository http://archive.neon.kde.org/user
$ sudo apt-get update
$ sudo apt-get install neon-desktop
package com.example
import android.util.Log;
import android.view.KeyEvent;
/**
* Created by mat on 10/04/14.
*
* Allows a secret combination of volume up / volume down presses to trigger something.
* I.E. reveal a hided debug menu when a combination is entered
# Function to calculate the WPS checksum of a 7 digit number
def wps_checksum(pin):
accum = 0
while pin>0:
accum += 3 * (pin % 10);
pin /= 10;
accum += pin % 10;
pin /= 10;
return (10 - accum % 10) % 10