Skip to content

Instantly share code, notes, and snippets.

View tonylambiris's full-sized avatar

Tony Lambiris tonylambiris

  • Boston, MA
View GitHub Profile
@tonylambiris
tonylambiris / retropie_setup.sh
Created June 15, 2018 20:31
RetroPie setup script (configure IO scheduler, install golang and grab ROM cover art)
#!/bin/bash
set -xe
GOVERSION=1.10.3
export GOPATH="$HOME/go"
export PATH="$PATH:$GOPATH/bin"
test -d $GOPATH && rm -rf $GOPATH
@tonylambiris
tonylambiris / update_blocklist.sh
Created June 15, 2018 19:02
Grabs all blocklists from iblocklist.com
#!/bin/bash
curl -s https://www.iblocklist.com/lists.php | sed -n "s/.*value='\(http[^']*\)'.*/'\1'/p" | xargs -n 1 curl -sLo- | gunzip | egrep -v "^(#.*|^)$" | gzip > ~/www/blocklist.txt.gz
@tonylambiris
tonylambiris / alacritty-colors.yaml
Created June 3, 2018 12:08 — forked from pirey/alacritty-colors.yaml
alacritty theme collection
# Colors (Nord)
# colors:
# # Default colors
# primary:
# background: '0x2E3440'
# foreground: '0xD8DEE9'
#
# # Normal colors
# normal:
# black: '0x3B4252'
@tonylambiris
tonylambiris / bluetooth_fix.sh
Last active May 31, 2018 01:10
Fix bluetooth with pulse audio under gdm
cat <<-EOT | sudo tee /var/lib/gdm/.config/pulse/client.conf
autospawn = no
daemon-binary = /bin/true
EOT
sudo chown gdm: /var/lib/gdm/.config/pulse/client.conf
sudo sed -i '/load-module module-switch-on-port-available/a load-module module-switch-on-connect' /etc/pulse/default.pa
sudo sed -i -re 's/#AutoEnable=.*/AutoEnable=true/g' /etc/bluetooth/main.conf
@tonylambiris
tonylambiris / README.md
Created May 8, 2018 23:10 — forked from Gabelbombe/README.md
Bypass EFI / NVRAM lock settings in OSX 10.12~

OSX 10.12~ NVRAM Manipulation

Begining with OS X 10.11 El Capitan, a set of security mechanism, System Integrity Protection(SIP), has been enforced and it can only be configured or turned off in the recovery environment like Recovery HD. In the normal environment, SIP configuration will not be permitted even with root privilege. If so, the SIP would be useless since it can be easily turned off.

As many people may already noticed, the configuration of SIP status is stored in the NVRAM with a property called csr-active-config. Of course users wouldn’t be

@tonylambiris
tonylambiris / serverdemo.go
Created April 24, 2018 02:16 — forked from fkautz/serverdemo.go
A simple demo of mixing various go http server and rpc using mux
package main
import (
"bytes"
"fmt"
"github.com/gorilla/mux"
grpc "github.com/gorilla/rpc"
"github.com/gorilla/rpc/json"
"log"
"net/http"
@tonylambiris
tonylambiris / 0422-Add-PCI-device-entries-for-Killer-Wireless-AC-1550.patch
Created April 23, 2018 16:15
Patch for Linux 4.16.x to detect Killer Wireless-AC 1550
--- ./drivers/net/wireless/intel/iwlwifi/pcie/drv.c.orig 2018-04-22 21:57:31.940998832 -0400
+++ ./drivers/net/wireless/intel/iwlwifi/pcie/drv.c 2018-04-22 21:59:11.777822534 -0400
@@ -546,6 +546,8 @@
{IWL_PCI_DEVICE(0x2526, 0x1410, iwl9270_2ac_cfg)},
{IWL_PCI_DEVICE(0x2526, 0x1420, iwl9460_2ac_cfg_soc)},
{IWL_PCI_DEVICE(0x2526, 0x1610, iwl9270_2ac_cfg)},
+ {IWL_PCI_DEVICE(0x2526, 0x1a56, iwl9260_2ac_cfg)},
+ {IWL_PCI_DEVICE(0x2526, 0x1550, iwl9260_2ac_cfg)},
{IWL_PCI_DEVICE(0x2526, 0x2030, iwl9560_2ac_cfg_soc)},
{IWL_PCI_DEVICE(0x2526, 0x2034, iwl9560_2ac_cfg_soc)},
@tonylambiris
tonylambiris / ffmpeg-web-video-guide.md
Created March 31, 2018 01:51 — forked from jaydenseric/ffmpeg-web-video-guide.md
A quick guide to using FFmpeg to create cross-device web videos.

Video conversion with FFmpeg

Install

On mac:

  1. Download the latest release.
  2. Extract the binary and place it in /usr/local/bin.

Command basics

@tonylambiris
tonylambiris / PKGBUILD.diff
Created March 18, 2018 04:38
Updated PKGBUILD for msp430-elf-mcu
diff --git a/PKGBUILD b/PKGBUILD
index ea06834..c835b9f 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,9 +1,9 @@
# Maintainer: Orlando Arias <orlandoarias at gmail <dot> com>
_target=msp430-elf
-_tiver=1.203
+_tiver=1.204
@tonylambiris
tonylambiris / PKGBUILD.diff
Created March 18, 2018 04:12
Updated PKGFILE for mspgcc-ti
diff --git a/PKGBUILD b/PKGBUILD
index c6bced0..a10c5b3 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,7 +1,7 @@
# Maintainer: Peter Ivanov <[email protected]>
pkgname=mspgcc-ti
-pkgver=5.01.00.00
+pkgver=5.01.02.00