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 / fix_build_issue_for_llvm_5.0.1.patch
Created January 18, 2018 21:37
fix_build_issue_for_llvm_5.0.1.patch
--- bcc-0.5.0/cmake/clang_libs.cmake.orig 2018-01-18 16:32:18.469420711 -0500
+++ bcc-0.5.0/cmake/clang_libs.cmake 2018-01-18 16:32:27.272819352 -0500
@@ -8,7 +8,7 @@
if (${_llvm_coroutines} GREATER -1)
list(APPEND llvm_raw_libs coroutines)
endif()
-if (${LLVM_PACKAGE_VERSION} VERSION_GREATER "5")
+if (${LLVM_PACKAGE_VERSION} VERSION_EQUAL 6 OR ${LLVM_PACKAGE_VERSION} VERSION_GREATER 6)
list(APPEND llvm_raw_libs bpfasmparser)
list(APPEND llvm_raw_libs bpfdisassembler)
@tonylambiris
tonylambiris / PKGBUILD
Created January 18, 2018 21:38
PKGBUILD for bcc-0.5.0
pkgbase=bcc
pkgname=('bcc' 'bcc-tools' 'python-bcc' 'python2-bcc')
pkgver=0.5.0
pkgrel=1
pkgdesc="BPF Compiler Collection"
arch=('x86_64')
url="https://github.com/iovisor/bcc"
license=('Apache')
conflicts=('bcc-git')
makedepends=('cmake' 'clang>=3.7.0' 'llvm>=3.7.0' 'flex' 'bison' 'python'
@tonylambiris
tonylambiris / blocklists.sh
Created January 25, 2018 22:54
Merge all lists from iblocklist.com into one file
#!/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 "^(#.*|^)$" \
> blocklist.txt
wc -l blocklist.txt
@tonylambiris
tonylambiris / steam-setup.sh
Last active May 9, 2018 02:04
Script for configuring Steam under Wine using winetricks
#!/usr/bin/env bash
curl -o "$HOME/bin/winetricks" \
https://raw.githubusercontent.com/Winetricks/winetricks/master/src/winetricks
chmod +x "$HOME/bin/winetricks"
while pgrep -fla '^(wine|C:\\).*exe'; do pkill -f '^(wine|C:\\).*exe'; sleep 1; done
rm -rf ~/.wine
regsvr32 wineasio.dll
wine64 regsvr32 wineasio.dll
@tonylambiris
tonylambiris / 60-scheduler.rules
Last active March 7, 2018 23:16 — forked from radupotop/60-scheduler.rules
kernel 4.12 scheduler rules for udev
# /etc/udev/rules.d/60-scheduler.rules
#
# set none scheduler for non-rotating disks
ACTION=="add|change", KERNEL=="sd[a-z]|mmcblk[0-9]*|nvme[0-9]*|loop[0-9]*", ATTR{queue/rotational}=="0", ATTR{queue/scheduler}="none"
# set bfq scheduler for rotating disks
ACTION=="add|change", KERNEL=="sd[a-z]", ATTR{queue/rotational}=="1", ATTR{queue/scheduler}="bfq"
@tonylambiris
tonylambiris / disable_tracker.sh
Created March 7, 2018 01:40
Permanently disable tracker in GNOME
#!/bin/sh
echo -e "\nHidden=true\n" | sudo tee --append /etc/xdg/autostart/tracker-extract.desktop /etc/xdg/autostart/tracker-miner-apps.desktop /etc/xdg/autostart/tracker-miner-fs.desktop /etc/xdg/autostart/tracker-miner-user-guides.desktop /etc/xdg/autostart/tracker-store.desktop > /dev/null
gsettings set org.freedesktop.Tracker.Miner.Files crawling-interval -2
gsettings set org.freedesktop.Tracker.Miner.Files enable-monitors false
tracker reset --hard
@tonylambiris
tonylambiris / PKGBUILD
Created March 8, 2018 03:01
Updated PKGBUILD for go-bindata
# Maintainer: Sven-Hendrik Haase <[email protected]>
# Contributor: Lubomir 'Kuci' Kucera <kuci24-at-gmail-dot-com>
pkgname=go-bindata
pkgver=3.3.0
pkgrel=1
pkgdesc="A small utility which generates Go code from any file"
arch=('x86_64')
url='https://github.com/shuLhan/go-bindata'
license=('CC0 1.0')
@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
@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 / 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