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 / 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 / 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 / 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 / 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 / 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 / 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 / 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 / ffmpeg.sh
Created June 15, 2018 20:43
Covert mkv to mp4 using ffmpeg
#!/bin/bash
# copy video stream instead of re-encoding
ffmpeg -i input.mkv -acodec mp3 -strict -2 -vcodec copy output.mp4
@tonylambiris
tonylambiris / enable_plugins.py
Last active April 28, 2020 19:21
Enable plugins for Binary Ninja
# vim: ft=python sw=4 ts=4 et
from pprint import pprint
mgr = RepositoryManager()
# add third-party plugins with the following:
# mgr.add_repository(url="https://github.com/GitMirar/BinaryNinjaYaraPlugin.git",
# repopath="plugins",
# localreference="master",
@tonylambiris
tonylambiris / dlopen.c
Created July 28, 2018 00:48
gposttl shared library tokenizer test
#include <stdlib.h>
#include <stdio.h>
#include <dlfcn.h>
int (*initialize_tagger)(char *envp);
void (*destroy_tagger)(void);
char *(*Tokenizer)(char *buff);
char *(*tag)(char *buf, int enhanced_penntag);
int main(int argc, char **argv) {