Skip to content

Instantly share code, notes, and snippets.

View surreymagpie's full-sized avatar
🏠
Working from home

Rob Curtis surreymagpie

🏠
Working from home
  • Matlock, UK
  • 06:37 (UTC +01:00)
View GitHub Profile
@surreymagpie
surreymagpie / 0_Setting up Ruby on Rails development in a Fedora Toolbox container.md
Last active June 10, 2023 19:18
Instructions for installing Ruby in Fedora Toolbox container using rbenv

Fedora doesn't ship with ruby installed and I've previously utilised rbenv to manage different versions. This gist contains instructions for using the built-in Toolbox / Podman container systems in Fedora so Ruby and Rails development can be carried out without installing packages on the base system.

This should also work well in Silverblue or similar immutable distributions.

@surreymagpie
surreymagpie / terminus_install.sh
Created July 27, 2020 15:17 — forked from mcritchlow/terminus_install.sh
Install terminus as console font for Solus
# install terminus console fonts (only)
wget https://sourceforge.net/projects/terminus-font/files/terminus-font-4.46/terminus-font-4.46.tar.gz/download -O terminus.tar.gz
tar -xvf terminus.tar.gz
cd terminus-font-4.46
./configure --prefix=/usr
make -j4 psf
sudo make install-psf
# add kernel parameter for vconsole.font
echo 'vconsole.font=ter-v32n' | sudo tee /etc/kernel/cmdline
@surreymagpie
surreymagpie / money14.reg
Last active October 16, 2020 11:04
A shell script and MS registration enties file to install MS Money under Wine.
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Software\Microsoft\Money\14.0]
"AddBankMemo"=dword:00000001
"AddPayPrompt"=dword:00000000
"AlternateRegNav"=dword:00000000
"AskRemove"=dword:00000001
"AutoComplete"=dword:00000001
"AutoDropCombos"=dword:00000001
"BackupFDCompress"=dword:00000001
# install the openssl-1.0 package
sudo pacman -S openssl-1.0
# downgrade gcc and gcc-libs
wget https://archive.archlinux.org/packages/g/gcc/gcc-6.3.1-2-x86_64.pkg.tar.xz
wget https://archive.archlinux.org/packages/g/gcc-libs/gcc-libs-6.3.1-2-x86_64.pkg.tar.xz
sudo pacman -U gcc-6.3.1-2-x86_64.pkg.tar.xz gcc-libs-6.3.1-2-x86_64.pkg.tar.xz
# download v1.0.2.k of the openssl package
wget https://archive.archlinux.org/packages/o/openssl/openssl-1.0.2.k-1-x86_64.pkg.tar.xz
#################################################
###
### This script will ensure a fresh install of Arch Linux is setup
### with personal dotfiles and Vim plugins
###
#################################################
# Prerequisites
# These packages are in the standard repositories
@surreymagpie
surreymagpie / Procedure.md
Last active April 13, 2017 14:44
Installing MS Money on Arch Linux

Installing MS Money on Arch Linux

GPG Key

First install the GPG key to verify the source file

     gpg --keyserver hkp://keys.gnupg.net --recv-keys CEFAC8EAAF17519D

Download AUR package

run "mv README.rdoc README.md"
gsub_file("README.md", "== README", "# #{app_name.titleize}")
gem 'haml'
gem_group :development, :test do
gem 'annotate'
gem 'better_errors'
gem 'capybara'
gem 'quiet_assets'
@surreymagpie
surreymagpie / html.tpl.php
Last active August 28, 2015 14:54
Add conditional js to Drupal theme
/**
* Add this line to the very top of your template head
* as it needs to be run before styles
*/
<head>
<?php print $ie_scripts; ?>
</head>
@surreymagpie
surreymagpie / handlebars.sublime-snippet
Last active August 29, 2015 14:16
Sublime Text Hanlebars snippets
<snippet>
<content><![CDATA[{{${1:outlet}}}]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>hb</tabTrigger>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<!-- <scope>source.html</scope> -->
</snippet>
#!/bin/bash
gitcreate() {
repo_name=$1
invalid_credentials=0
dir_name=`basename $(pwd)`
if [ "$repo_name" = "" ]; then
echo "Repo name (hit enter to use '$dir_name')?"