Skip to content

Instantly share code, notes, and snippets.

View ralexx's full-sized avatar

Rob Alexander ralexx

View GitHub Profile
#
# Varnish VCL file for Ghost blogging platform.
# http://ghost.org/
#
# Written for Ghost v0.3.0.
#
# This is a low-hanging-fruit type of VCL. TTL of objects are overridden to 2
# minutes, and everything below /ghost/ is pass()-ed so the user sessions
# work.
#
@ralexx
ralexx / ys-light.zsh-theme
Created August 23, 2014 16:00
modified ys theme to work on Solarized light
# Modified by ralexx to work on Solarized light
#
# Clean, simple, compatible and meaningful.
# Tested on Linux, Unix and Windows under ANSI colors.
# It is recommended to use with a dark background and the font Inconsolata.
# Colors: black, red, green, yellow, *blue, magenta, cyan, and white.
#
# http://ysmood.org/wp/2013/03/my-ys-terminal-theme/
# Mar 2013 ys
# The basic theme format:
@ralexx
ralexx / linux_ctrl_cmd.md
Last active July 18, 2019 01:23
Linux Mint xfce: swap Super_L and Control_L to mimic the Mac keyboard's Cmd key placement

First, unbind the left key from the Whisker menu [1], [4].

Open the file:

/usr/share/mint-configuration-xfce/xfce4/xfconf/xfce-perchannel-xml/xfce4-keyboard-shortcuts.xml

and comment out the string:

@ralexx
ralexx / gist:fa4e817904cf03d29c49
Created March 12, 2015 06:46
using BSA FBAR e-filing on OS X
Install Adobe Reader.
Restart Safari.
Select the Safari -> Preferences... menu item.
Click the Security tab.
For the setting "Internet plug-ins:" select "Allow Plug-ins" and click on the "Website Settings..." button.
@ralexx
ralexx / sqlite3.md
Created March 22, 2017 18:42
custom compile of Sqlite3 for Python 3.6

For building and installation with conda.

Make a working directory

cd /tmp
mkdir foo
cd foo

Download Conda recipe from Github

wget the links if you so desire

@ralexx
ralexx / collapsible_md.txt
Last active September 15, 2017 16:21
Collapsible comments
<!-- https://github.com/dear-github/dear-github/issues/166#issuecomment-322367328 -->
<details>
<summary>Click to see</summary>
```python
True is not False
```
</details>
@ralexx
ralexx / pullhair.md
Last active October 2, 2017 22:12
Installing Linux on MacBook 2,1 with unresponsive CD-ROM
  1. Download and install rEFInd

Follow @astrofloyd's instructions, including:

  1. Obtain a copy of ISO 2 USB EFI Booter for Mac
  2. diskutil list to find the node name of your USB drive
  3. Format the USB drive with a single FAT32 partition (use diskutil eraseDisk fat32 UNTITLED /dev/diskX)
  4. cd into the drive and mkdir -p efi/boot (from the computer's root drive the path should look something like /dev/diskX/efi/boot)
  5. Copy bootIA32.efi onto the USB drive and rename it: cp /location/of/bootIA32.efi ./boot.efi
  6. Copy the Linux distribution .iso file and rename it to boot.efi
@ralexx
ralexx / conda_fish.md
Last active February 26, 2018 06:55
Fixing conda's fish wrapper (as of conda v4.4.10)

Problem

After updating conda to version 4.4.x, the fish shell wrapper intended to define a conda function that knows the path of the conda executable and calls it regardless of whether the Anaconda/Miniconda installation is in $PATH. For me, this fails with

⋊> ~ conda activate base
fish: Unknown command 'shell.fish'
- (line 1):
begin; shell.fish activate base
 ^
@ralexx
ralexx / audi_mmi.md
Last active January 21, 2020 21:22
Audi MMI map update

Prep

  • >=32GB SD card formatted to FAT32 (MS-DOS)
  • my.audiusa user name and password
  • Java 8 (because 11 doesn't work)

Steps

  1. https://www.audiusa.com/myaudi
  2. Click on "Audi connect® services and Key User registration" icon, underneath image of car
  3. Click on "Services" tab if not selected
  4. Click on "Map update"