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 / chrome-remote-desktop.py
Created December 10, 2017 00:49
/opt/google/chrome-remote-desktop/chrome-remote-desktop
#!/usr/bin/python2
# Copyright (c) 2012 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
# Virtual Me2Me implementation. This script runs and manages the processes
# required for a Virtual Me2Me desktop, which are: X server, X desktop
# session, and Host process.
# This script is intended to run continuously as a background daemon
# process, running under an ordinary (non-root) user account.
@tonylambiris
tonylambiris / PKGBUILD
Created November 20, 2017 06:03
PKGBUILD for playonlinux5-git
# Maintainer : Michael DeGuzis <[email protected]>
# Contributor: Det <aur.archlinux.org/account/Det>
# Contributor: Nick Shvelidze <[email protected]>
# Contributor: Justin Dray <[email protected]>
# Contributor: Laurent Carlier <[email protected]>
# Contributor: K. Hampf <[email protected]>
# Contributor: Skunnyk <[email protected]>
# Build notes:
# http://wiki.playonlinux.com/index.php/Building_PlayOnLinux_5
@tonylambiris
tonylambiris / PKGBUILD.diff
Created November 20, 2017 02:33
Fix ubertooth-git build
diff --git a/PKGBUILD b/PKGBUILD
index 8cecfb6..a00deea 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -15,11 +15,11 @@ build() {
cd "${srcdir}/${_gitname}-master/host/"
mkdir -p build
cd build
- cmake -DCMAKE_INSTALL_PREFIX=${pkgdir}/usr ..
+ cmake -DCMAKE_INSTALL_PREFIX=/usr ..
@tonylambiris
tonylambiris / Arch_Linux_luks_LVM.md
Last active January 22, 2020 14:37
Full disk encryption using luks/LVM on Arch Linux

If you have a setup where your luks-encrypted device is a LVM partition which includes all mount points listed in /etc/fstab, you may be asked to enter your passphrase twice during boot: once by grub and again by systemd.

To have the system only prompt once, first get the correct device path and UUID with the following command:

$ eval $(lsblk -npfl | awk '$2 == "crypto_LUKS" {print "DEVPATH=" $1 " DEVUUID=" $3}')
$ sudo cryptsetup luksDump $DEVPATH

NOTE: If no output is returned, it's best to stop here and double-check your setup before continuing.

@tonylambiris
tonylambiris / rpmbuild.txt
Created September 9, 2017 11:49
BuildRequires aren't actually required
11:48:03 csos-builder ~/rpmbuild/SPECS # rpmbuild -ba efivar.spec
error: Failed build dependencies:
libabigail is needed by efivar-31-1.el7.csos.x86_64
popt-static is needed by efivar-31-1.el7.csos.x86_64
11:48:09 csos-builder ~/rpmbuild/SPECS # grep BuildRequires efivar.spec
BuildRequires: popt-devel popt-static git glibc-static libabigail
11:48:12 csos-builder ~/rpmbuild/SPECS # rpmbuild -ba efivar.spec --nodeps 2>&1 | grep ^Wrote:
Wrote: /root/rpmbuild/SRPMS/efivar-31-1.el7.csos.src.rpm
Wrote: /root/rpmbuild/RPMS/x86_64/efivar-31-1.el7.csos.x86_64.rpm
Wrote: /root/rpmbuild/RPMS/x86_64/efivar-libs-31-1.el7.csos.x86_64.rpm
@tonylambiris
tonylambiris / PKGBUILD
Created July 17, 2017 07:45
Updated PKGBUILD for rtlsdr-scanner-git
# Maintainer: Michal Krenek (Mikos) <[email protected]>
pkgname=rtlsdr-scanner-git
pkgver=r1001.8621d8b
pkgrel=1
pkgdesc="Python frequency scanning GUI for the OsmoSDR rtl-sdr library"
arch=('i686' 'x86_64')
url="http://eartoearoak.com/software/rtlsdr-scanner"
license=('GPL3')
depends=('rtl-sdr' 'wxpython' 'python2-pyrtlsdr-git' 'python2-matplotlib' 'python2-numpy' 'python2-pillow' 'python2-pyserial')
makedepends=('git')
@tonylambiris
tonylambiris / arch.md
Last active June 19, 2019 19:26 — forked from Razz/arch.md
install arch

Write USB install key (OSX specific)

# diskutil list
# disutil unmount /dev/diskX
// Dont forget the r in rdisk
# sudo dd if=/path/to/arch.iso of=/dev/rdiskX bs=4M status=progress

Connect to wifi after booting USB

diff --git a/fthd_drv.h b/fthd_drv.h
index 06b9ef9..21c5f74 100644
--- a/fthd_drv.h
+++ b/fthd_drv.h
@@ -118,7 +118,9 @@ struct fthd_private {
struct vb2_queue vb2_queue;
struct mutex vb2_queue_lock;
struct list_head buffer_queue;
+#if LINUX_VERSION_CODE < KERNEL_VERSION(4,8,0)
struct vb2_alloc_ctx *alloc_ctx;
# Maintainer: Hugo Osvaldo Barrera <[email protected]>
pkgname="bcwc-pcie-dkms"
pkgver=0r229.48f9854
pkgrel=1
pkgdesc="Reverse engineered Linux driver for the Broadcom 1570 PCIe webcam."
arch=('x86_64')
url="https://github.com/patjak/bcwc_pcie"
license=('unknown')
depends=('kmod' 'bcwc-pcie-firmware' 'dkms' 'linux-headers')
@tonylambiris
tonylambiris / PKGBUILD
Last active October 1, 2016 21:30
PKGBUILD fix for **ImportError: No module named 'razer'**
# Maintainer: Gabriele Musco <[email protected]>
# Upstream URL: https://github.com/terrycain/razer_drivers
pkgname=python-razer
pkgver=1.0.13
pkgrel=1
pkgdesc="A python library for controlling razer-daemon"
arch=('any')
url="https://github.com/terrycain/razer_drivers"
license=('GPLv3')