Skip to content

Instantly share code, notes, and snippets.

@macdja38
macdja38 / series9travelcase.md
Last active March 18, 2022 02:58
Oral b series 9 travel case

Not much information exists online about this travel case and what's inside it.

Opening it is likely possible to do without destroying it. there are lots of clips around the edge, but no glue.

Inside is one board, held down by 3 peices of melted plastic.

overview

It seems to have a coil, driven by the 12v source and a MOSFET.

I would avoid gigabyte's aorus lineup. Story time... (this is a personal story, I'm sure not every customer had their stuff break like this)...

I had a X3 13" QHD laptop at that point.

RMA 1:
Problem:
My screen started started to separate about a year in to owning the laptop

@macdja38
macdja38 / Confirm-gitlab-email.md
Created July 26, 2018 20:14
Confirm gitlab email by CLI

On your gitlab server run gitlab-rails console production

Find your user via user = User.find_by(email: "youroldemail@example.com")

Optionally change the user's email with user.email = "yournewemail@example.com" Then run user.save!

Get the user's token with user.confirmation_token

https://PutYourGitlabHere/users/confirmation?confirmation_token=PutYourTokenHere

@macdja38
macdja38 / foundation_db_tutorial_1
Created April 21, 2018 10:28
FoundationDB's python tutorial ported to python 3, running on a process pool instead of a 1 thread per student.
import itertools
import random
import fdb
from functools import partial
import time
from multiprocessing import Pool
@macdja38
macdja38 / Discord Join Messages
Created April 21, 2017 07:12
All the discord join messages
SYSTEM_MESSAGE_GUILD_MEMBER_JOIN: "[!!{username}!!](usernameOnClick) just joined the server - glhf!",
SYSTEM_MESSAGE_GUILD_MEMBER_JOIN_01: "[!!{username}!!](usernameOnClick) just joined. Everyone, look busy!",
SYSTEM_MESSAGE_GUILD_MEMBER_JOIN_02: "[!!{username}!!](usernameOnClick) just joined. Can I get a heal?",
SYSTEM_MESSAGE_GUILD_MEMBER_JOIN_03: "[!!{username}!!](usernameOnClick) joined your party.",
SYSTEM_MESSAGE_GUILD_MEMBER_JOIN_04: "[!!{username}!!](usernameOnClick) joined. You must construct additional pylons.",
SYSTEM_MESSAGE_GUILD_MEMBER_JOIN_05: "Ermagherd. [!!{username}!!](usernameOnClick) is here.",
SYSTEM_MESSAGE_GUILD_MEMBER_JOIN_06: "Welcome, [!!{username}!!](usernameOnClick). Stay awhile and listen.",
SYSTEM_MESSAGE_GUILD_MEMBER_JOIN_07: "Welcome, [!!{username}!!](usernameOnClick). We were expecting you ( ͡° ͜ʖ ͡°)",
SYSTEM_MESSAGE_GUILD_MEMBER_JOIN_08: "Welcome, [!!{username}!!](usernameOnClick). We hope you brought pi
### Keybase proof
I hereby claim:
* I am macdja38 on github.
* I am macdja38 (https://keybase.io/macdja38) on keybase.
* I have a public key whose fingerprint is BC72 6E30 6545 0C19 6DAD 3790 7377 808F 1689 DBB2
To claim this, I am signing this object:
@macdja38
macdja38 / make.js
Created January 15, 2017 21:07
dynamic config page db page init
r.db("tau").table("settingsMap").insert({id: "38383838338|97069403178278912", layout: {
type: 'pageSelector',
key: 'pageSelector',
defalut: 'ranks',
children: {
ranks: {
type: 'category',
name: 'ranks',
key: 'ranks',
description: 'joinable ranks',