Skip to content

Instantly share code, notes, and snippets.

View lambdapioneer's full-sized avatar
🐡

Daniel Hugenroth lambdapioneer

🐡
View GitHub Profile
@lambdapioneer
lambdapioneer / ephemeral_guest_account.md
Last active July 8, 2019 10:08
Setting up an ephemeral guest account on Ubuntu 19.04

Ephemeral guest account on Ubuntu 19.04

Ephemeral guest account: a non-password guest account that does not persist any data accross sessions. This is helpful for borrowing the computer to someone without any fear that they might mess up anything when e.g. downloading files. Also gives them a privacy guarantee.

I use the following steps to setup an ephemeral guest account on Ubuntu 19.04 replicating the behaviour of previos Ubuntu versions. With 18.04 (?) the switch to GDM meant the removal of the previous guest account feature.

@0xjac
0xjac / private_fork.md
Last active May 10, 2024 12:56
Create a private fork of a public repository

The repository for the assignment is public and Github does not allow the creation of private forks for public repositories.

The correct way of creating a private frok by duplicating the repo is documented here.

For this assignment the commands are:

  1. Create a bare clone of the repository. (This is temporary and will be removed so just do it wherever.)

git clone --bare git@github.com:usi-systems/easytrace.git

@Shywim
Shywim / CursorRecyclerAdapter.java
Last active February 27, 2024 13:42
A custom Adapter for the new RecyclerView, behaving like the CursorAdapter class from previous ListView and alike. Now with Filters and updated doc.
/*
* The MIT License (MIT)
*
* Copyright (c) 2014 Matthieu Harlé
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is