Skip to content

Instantly share code, notes, and snippets.

View mattronix's full-sized avatar

Matthew Frost mattronix

View GitHub Profile
@mattronix
mattronix / kaybase.md
Created August 5, 2014 17:57
keybase.md

Keybase proof

I hereby claim:

  • I am mattronix on github.
  • I am mattronix (https://keybase.io/mattronix) on keybase.
  • I have a public key whose fingerprint is 3E6F 9570 9C6C 6F0F DC4F C5B2 1F5C 8E8A 1881 68FD

To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am mattronix on github.
  • I am mattronix (https://keybase.io/mattronix) on keybase.
  • I have a public key whose fingerprint is 4B40 7AE9 F989 204F 4F96 92C4 3C82 E5A8 D2E8 DE01

To claim this, I am signing this object:

@mattronix
mattronix / arch-linux-install
Last active October 6, 2015 11:26 — forked from mattiaslundberg/arch-linux-install
Minimal instructions for installing arch linux on an UEFI system with full system encryption using dm-crypt and luks
# Install ARCH Linux with encrypted file-system and UEFI
# The official installation guide (https://wiki.archlinux.org/index.php/Installation_Guide) contains a more verbose description.
# Download the archiso image from https://www.archlinux.org/
# Copy to a usb-drive
dd if=archlinux.img of=/dev/sdX bs=16M && sync # on linux
# Boot from the usb. If the usb fails to boot, make sure that secure boot is disabled in the BIOS configuration.
# Set swedish keymap
@mattronix
mattronix / awesome-gnome3
Created October 29, 2015 20:30 — forked from esimionato/awesome-gnome3
Awesome with Gnome 3
1. System Settings -> System Info -> Graphics -> Forced Fallback Mode ON
2. .gnomerc in your $HOME
export WINDOW_MANAGER=/usr/local/bin/awesome-wm
3. /usr/local/bin/awesome-wm
#!/bin/sh
awesome &
4. /usr/share/gnome-session/sessions/awesome.session
[GNOME Session]
Name=Awesome session
RequiredComponents=gnome-settings-daemon;
<?php
function SpaceState($url){
$json = file_get_contents($url);
$json_data = json_decode($json);
$json_data->{'open'};
if ($json_data->{'open'}) {
return "Open";
}
if ($json_data->{'open'} == false) {
return "Closed";
@mattronix
mattronix / BMW API Mapping
Last active December 27, 2016 13:52
BMW API Mapping
To use the BMW API all you need is your bearear auth token that you can get from using the remote services interface and intercepting your own traffic:
replace <VINNUMBER> with actual vin number
Flash Headlights:
Endpoint: https://www.bmw-connecteddrive.nl/api/vehicle/remoteservices/v1/<VINNUMBER>/RLF
Type: GET
Sound Horn:

Keybase proof

I hereby claim:

  • I am mattronix on github.
  • I am mattronix (https://keybase.io/mattronix) on keybase.
  • I have a public key ASDjZ9vPt3xtkcMsng-FlBeD23fvOMSqswAD9I1nfJXQdQo

To claim this, I am signing this object:

@mattronix
mattronix / installsha2017.org.sh
Last active March 20, 2017 18:53
install sha2017.org website.
#! /bin/bash
mkdir sha2017.org
cd sha2017.org
curl -O https://bolt.cm/distribution/bolt-latest.tar.gz
tar -xzf bolt-latest.tar.gz --strip-components=1
php app/nut init
git clone https://github.com/sha2017/sha2017.org public/theme/sha2017.org
sed -ie 's/base-2016/sha2017.org/g' app/config/config.yml
echo "Run'cd sha2017.org' and then run 'php app/nut server:run' to start the development web server."
@ECHO OFF
:: Jacob Salmela
:: Matthew Frost
:: 2016-03-09
:: Deploy WindowsServer 2016
wpeinit
echo ** Selecting first disk and reformatting...
echo select disk 0 > diskpart%ID%.txt
#!/bin/sh
# /etc/NetworkManager/dispatcher.d/pre-up.d/randomize-mac-addresses.sh
# Orignal Article:
# See https://www.paulfurley.com/randomize-your-wifi-mac-address-on-ubuntu-1604-xenial/
export PATH=$PATH:/usr/bin:/bin