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
  • 22:59 (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 / 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
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 / 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')?"