Skip to content

Instantly share code, notes, and snippets.

View euclio's full-sized avatar
🦀

Andy Russell euclio

🦀
  • Amazon Robotics
  • Braintree, MA
View GitHub Profile
@euclio
euclio / alacritty_disable_antialias.patch
Created January 22, 2020 15:19
Patch to disable anti-aliasing in alacritty on MacOS
diff --git a/font/src/darwin/mod.rs b/font/src/darwin/mod.rs
index b9266a8..551f5e5 100644
--- a/font/src/darwin/mod.rs
+++ b/font/src/darwin/mod.rs
@@ -501,14 +501,14 @@ impl Font {
cg_context.set_font_smoothing_style(16);
}
- cg_context.set_allows_font_smoothing(true);
- cg_context.set_should_smooth_fonts(true);
┌ anrussell@anrussell-mba ~/repos/cargo (git:test-all) [2016.12.08 16:13:08]
└╌╌┄┄ ❯❯ CFG_DISABLE_CROSS_TESTS=1 RUST_BACKTRACE=1 cargo test
Compiling libc v0.2.17
Compiling gcc v0.3.38
Compiling openssl v0.9.1
Compiling matches v0.1.4
Compiling utf8-ranges v0.1.3
Compiling pkg-config v0.3.8
Compiling cfg-if v0.1.0
Compiling rand v0.3.14

Keybase proof

I hereby claim:

  • I am euclio on github.
  • I am euclio (https://keybase.io/euclio) on keybase.
  • I have a public key whose fingerprint is 1108 C0F4 CF88 4E4C 0D58 448E AC18 1A74 0C3B 9ED7

To claim this, I am signing this object:

@euclio
euclio / request.rs
Last active September 24, 2016 15:00
use std::io;
use erased_serde;
use serde::{self, Error, Serialize, Deserialize};
const REQUEST_TYPE: u32 = 0;
const NOTIFICATION_TYPE: u32 = 2;
/// A msgpack-RPC request.
pub enum Request {
@euclio
euclio / vim.md
Last active October 8, 2015 15:14
Vim tricks that I either commonly forget or want to remember.
  • "# - Alternate file register. Use with :sp#, :e# etc. to reopen an accidentally closed buffer.
  • * - Search with the current word under the word.
  • resize - Resizes the current split. Can be used with (+|-) size to add or remove rows. Use vertical resize to widen a split.
  • :cq - Quit vim with an error code
  • / may be used as a motion!
  • Repeat last colon command: @: (NOT :@). Further repetitions may be done with @@.
  • :echo @% - Echo the name of the current file. Also, Ctrl+G.
  • q: - Command history, q/ - Search history
  • :enew - Edit a new, unnamed file
@euclio
euclio / eclim-git.patch
Last active August 29, 2015 14:27
patch to build eclim-git with the latest eclipse on Arch
diff --git a/PKGBUILD b/PKGBUILD
index 80bd48f..bc8bb55 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -39,12 +39,12 @@ prepare() {
# fix build, thanks to mikezackles
sed -e "s/'sphinx-build'/'sphinx-build2'/g" \
-e 's|${user.home}/\.|${vim.files}/|g' \
- -e "s|File(getVariable('eclipse')|File('/usr/share/eclipse/'|g" \
+ -e "s|File(getVariable('eclipse')|File('/usr/lib/eclipse/'|g" \
@euclio
euclio / PKGBUILD
Created May 21, 2015 21:37
xmobar-git PKGBUILD
# Contributer: Cedric Girard <girard.cedric@gmail.com>
# Maintainer: Colin Woodbury <colingw@gmail.com>
pkgname=xmobar-git
pkgver=
pkgrel=2
pkgdesc="A minimal status bar for the XMonad Window Manager."
arch=('i686' 'x86_64')
url="http://projects.haskell.org/xmobar/"
license=('custom:BSD3')
makedepends=(
@euclio
euclio / armv7_catkin.patch
Created April 5, 2015 03:44
Patch to fix generated catkin build files for AR drone on ARM
reverted:
--- b/devel/src/ardronelib/ARDroneLib/VLIB/Platform/video_config.h 2015-04-04 20:24:40.314580931 -0700
+++ a/devel/src/ardronelib/ARDroneLib/VLIB/Platform/video_config.h 2015-04-03 11:09:34.479292912 -0700
@@ -8,7 +8,7 @@
////////////////////////////////////////////
#if TARGET_CPU_ARM == 1
// IPhone
+#if defined (USE_ANDROID) || defined (TARGET_OS_IPHONE) || defined (USE_LINUX)
-#if defined (USE_ANDROID) || defined (TARGET_OS_IPHONE)
@euclio
euclio / index.css
Last active August 29, 2015 14:09
Hack Week Day 2: JavaScript Tutorial
h1 {
font-family: "Comic Sans MS", sans-serif;
}
img {
margin: 3px;
}
#kittyville {
background-color: #3DBEFF;
@euclio
euclio / supernova.html
Last active August 29, 2015 14:03
Two-column fork of the supernova tumblr theme
<html>
<!-- SUPERNOVA THEME BY DRINKHERTEARS.TUMBLR.COM -->
<!-- Modified by coderaugustus.tumblr.com -->
<head>
<title>{Title}</title>
<link rel="shortcut icon" href="{Favicon}">
<link rel="alternate" type="application/rss+xml" href="{RSS}">
{block:Description}