Skip to content

Instantly share code, notes, and snippets.

View lynchjames's full-sized avatar

James Lynch lynchjames

  • Storm ID
  • Edinburgh
View GitHub Profile
@lynchjames
lynchjames / deploy.cmd
Last active May 29, 2024 16:17
Preparing Obsidian vault for pushing to Azure DevOps Wiki
echo 'Copying attachment files into .attachments folder'
cp attachments/* .attachments/
echo 'Updating attachment links'
find . -type f -name "*.md" -print0 | xargs -0 sed -i 's/(attachments\//(\/\.attachments\//g'
@lynchjames
lynchjames / roamresearch-dark.css
Last active May 13, 2020 00:39
Stylus CSS for roamresearch.com dark theme
@import "../fonts/Inter/inter.css";
.loading-astrolabe {
margin: auto;
position: relative;
width: 250px;
height: 250px;
}
.loading-astrolabe .wand {
position: absolute;
width: 80%;
@lynchjames
lynchjames / gist:3979548
Created October 30, 2012 10:42
Filter Registration
public class GlobalFiltersConvention : IFilterConvention
{
public void ApplyConvention(IFilterRegistration filterRegistration)
{
filterRegistration.WithFilter<AuthenticationFilter>(Apply
.ForArea<ContentAreaRegistration>()
.AndForArea<HiddenAreaRegistration>()
.AndForArea<MetadataAreaRegistration>()
.AndFor<HomeController>()
.AndFor<EditorController>()
@lynchjames
lynchjames / ios-release-hockey-app.rake
Created May 18, 2012 11:32 — forked from alloy/ios-release-hockey-app.rake
Rake tasks to create an iOS app archive and push dSYM to HockeyApp.
module Gem; end
require 'rubygems/version'
namespace :version do
module InfoPlist
extend self
def [](key)
output = `/usr/libexec/PlistBuddy -c 'Print #{key}' Bananas-Info.plist`.strip
@lynchjames
lynchjames / TestflihtappDeployTeamcity.sh
Created April 27, 2012 08:31 — forked from JohannesRudolph/TestflihtappDeployTeamcity.sh
Builds and deploys an App to testflightapp.com. Integrates with Teamcity.
#!/bin/bash
#
# testflightapp.com tokens
API_TOKEN="YOUR_API_TOKEN"
TEAM_TOKEN="YOUR_TEAM_TOKEN"
PRODUCT_NAME="RowMotion"
ARTEFACTS="$PWD/Artefacts"
#alias merge='git checkout master;git merge dev; git checkout dev'
#alias rebase='git checkout master;git pull origin master;git checkout dev;git rebase master'
#alias rebmerge='rebase; merge'
#alias pushmaster='git checkout master; git push origin master; git checkout dev'
#alias mpm='merge; pushmaster;'
#alias rmpm='rebmerge; pushmaster;'
alias l='git log'
alias s='git s'
alias d='git d'
alias av='git av'
@lynchjames
lynchjames / C#Output.cs
Created May 3, 2010 00:20
Using CallJSON to convert JSON to the C# required for deserialization
public class work
{
public virtual employer employer { get; set; }
public virtual position position { get; set; }
public virtual string start_date { get; set; }
public virtual string end_date { get; set; }
}
public class employer
{