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 / wine_gaming.sh
Created March 16, 2019 07:07
Setup wine-staging for gaming support
#!/bin/bash
TRICKS=()
TRICKS+=(corefonts)
TRICKS+=(dotnet462)
TRICKS+=(vcrun2005)
TRICKS+=(vcrun2008)
TRICKS+=(vcrun2015)
test -z $WINEPREFIX && WINEPREFIX="${1:-$HOME/.wine}"
@tonylambiris
tonylambiris / wine-notes.txt
Created January 11, 2019 04:05
WINE notes for Arch Linux
Overwatch:
winetricks -q andale arial comicsans corefonts courier georgia \
impact times trebuchet verdana webdings dotnet462 vcrun2005 \
vcrun2008 vcrun2015 dxvk
@tonylambiris
tonylambiris / nes.py
Created January 1, 2019 20:10 — forked from fuzyll/nes.py
Updated version of Binary Ninja's NES plugin (tries to handle more mappers).
# Copyright (c) 2015-2016 Vector 35 LLC
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to
# deal in the Software without restriction, including without limitation the
# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
# sell copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in
@tonylambiris
tonylambiris / PKGBUILD
Last active December 31, 2018 04:54
Updated libbladerf-git PKGBUILD for the AUR
# Maintainer: Stefan Biereigel <stefan@biereigel.de>
pkgname=libbladerf-git
pkgver=2018.12.rc3.r3.g3bb8ad61
pkgrel=1
pkgdesc="Driver and userspace for the bladeRF SDR."
url="https://github.com/Nuand/bladeRF"
arch=('i686' 'x86_64')
license=('GPL2')
depends=('libusb')
@tonylambiris
tonylambiris / fix-local-dns.txt
Created December 18, 2018 22:36
Fix local DNS resolution of short hostnames on Orbi devices
# Enable remote access by browsing to http://192.168.1.1/debug.htm and click "Enable Telnet"
# Login credentials for telnet share the same username/password as the web interface login
# If the devices are restarted or you upgrade the firmware you'll need to do this again
# Append the text below to /etc/dnsmasq.conf and then run /etc/init.d/dnsmasq restart
domain=lan
local=/lan/
addn-hosts=/tmp/dhcpd_hostlist
expand-hosts
@tonylambiris
tonylambiris / gdb.out
Last active December 18, 2018 22:07
gdb output for spotify 1.0.94.262
pwndbg> r
Starting program: /usr/share/spotify/spotify
/usr/share/spotify/spotify: /usr/lib/libcurl-gnutls.so.4: no version information available (required by /usr/share/spotify/spotify)
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib/libthread_db.so.1".
[Attaching after Thread 0x7fffeae02f80 (LWP 28172) fork to child process 28179]
[New inferior 2 (process 28179)]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib/libthread_db.so.1".
diff --git a/src/Makefile.am b/src/Makefile.am
index 811e2b86b..3826f896c 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -51,6 +51,8 @@ mutter_built_sources = \
$(dbus_login1_built_sources) \
meta/meta-enum-types.h \
meta-enum-types.c \
+ meta-marshal.c \
+ meta-marshal.h \
@tonylambiris
tonylambiris / bladerf.diff
Created November 13, 2018 11:46
LTE-Cell-Scanner patch for latest libbladeRF
diff --git a/src/CellSearch.cpp b/src/CellSearch.cpp
index 8df062b..22fd03d 100644
--- a/src/CellSearch.cpp
+++ b/src/CellSearch.cpp
@@ -862,7 +862,7 @@ int config_bladerf(
if (dev!=NULL) {bladerf_close(dev); dev = NULL; return(-1);}
}
- unsigned int actual_frequency;
+ long unsigned int actual_frequency;
@tonylambiris
tonylambiris / colortrans.py
Created October 21, 2018 15:21 — forked from hoov/colortrans.py
Convert values between RGB hex codes and xterm-256 color codes.
#! /usr/bin/env python
""" Convert values between RGB hex codes and xterm-256 color codes.
Nice long listing of all 256 colors and their codes. Useful for
developing console color themes, or even script output schemes.
Resources:
* http://en.wikipedia.org/wiki/8-bit_color
* http://en.wikipedia.org/wiki/ANSI_escape_code
@tonylambiris
tonylambiris / cmd.txt
Created October 20, 2018 04:45
Reset nautilus as default mime-type for inode/directory
xdg-mime default org.gnome.Nautilus.desktop inode/directory