Skip to content

Instantly share code, notes, and snippets.

View mlabieniec's full-sized avatar

Michael Labieniec mlabieniec

View GitHub Profile
:host {
opacity: 0.8;
}
.content {
margin: 0.5em;
text-align: center;
}
.full-width {
margin-top: 1em;
width: 100%;
@mlabieniec
mlabieniec / predictions.md
Last active August 2, 2019 13:02
Sample Ionic App

Sample Ionic app

First, be sure you have the latest Ionic CLI installed, then generate a new app (for this example you can use any template, but it's simplest to start with the Blank template to start):

$ npm i -g ionic
$ ionic start predictions blank # the first argument is your project name, the second the template

Update the src/polyfills.ts and add to the top of the file (window as any).global = window;. Then, update the src/tsconfig.app.json file and add the "node" types:

@mlabieniec
mlabieniec / facetimehd.sh
Last active December 8, 2020 23:05
Macbook Pro Facetime HD Webcam fix in Ubuntu 12.04+
sudo apt-get install git
sudo apt-get install curl xzcat cpio
git clone https://github.com/patjak/facetimehd-firmware.git
cd facetimehd-firmware
make
sudo make install
cd ..
sudo apt-get install kmod libssl-dev checkinstall
git clone https://github.com/patjak/bcwc_pcie.git
cd bcwc_pcie
@mlabieniec
mlabieniec / fix-suspend.sh
Created December 8, 2020 23:07
Macbook Pro Ubuntu 20.10+ suspend fix
#!/bin/sh -e
# Disables the lid (you would need to use the power button)
# echo LID0 > /proc/acpi/wakeup
# Disables (I think) the yubikey usb which i think fires the wake event causing suspend to not work
echo XHC1 > /proc/acpi/wakeup