Skip to content

Instantly share code, notes, and snippets.

Avatar

Adam Strzelecki nanoant

View GitHub Profile
@nanoant
nanoant / gitlab-README-default.patch
Created Feb 12, 2014
Show README on project entry in GitLab
View gitlab-README-default.patch
diff --git a/app/views/projects/show.html.haml b/app/views/projects/show.html.haml
index 59075ab..c2af1b1 100644
--- a/app/views/projects/show.html.haml
+++ b/app/views/projects/show.html.haml
@@ -2,10 +2,16 @@
.row
.col-md-9
- = render "events/event_last_push", event: @last_push
- = render 'shared/event_filter'
@nanoant
nanoant / gist:7699098
Created Nov 28, 2013
Open in Terminal for Forklift by me
View gist:7699098
-- OpenInTerminal.applescript
-- ForkLift
-- Created by ONO
tell application "Terminal"
activate
set windowCount to (count of the windows)
@nanoant
nanoant / fl
Last active Oct 8, 2015
Open folder in ForkLift.app from console
View fl
#!/bin/bash
#
# Open folder in ForkLift.app from console
# Author: Adam Strzelecki nanoant.com
#
# Usage:
# fl [<folder>]
#
# Opens specified directory or current working directory in ForkLift.app
#
@nanoant
nanoant / test.c
Created Jun 29, 2012
Parallels for Mac 7 having problem with ICC AVX optimized code
View test.c
/*
Now let's try compile and benchmark it:
$ icc -v
icc version 13.0.0 (gcc version 4.6.0 compatibility)
Let's try without AVX set (just up to SSE4.2):
$ icc -march=corei7 test.c -lm && time ./a.out
r=171828183.102
@nanoant
nanoant / sidebar.m
Created Sep 27, 2011
Change your Lion sidebar item icons
View sidebar.m
// (l) copyleft 2011 Adam Strzelecki nanoant.com
//
// Usage:
// sidebar - to see the ids of your favorite sidebar items
// sidebar ItemName - to remove item specific icon
// sidebar ItemName sbBj - to set specific item icon, see:
// /System/Library/CoreServices/CoreTypes.bundle/Contents/Info.plist
// Compile it with:
// gcc -o sidebar sidebar.m -F /Developer/SDKs/MacOSX10.7.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks -framework Foundation -framework CoreServices
//
You can’t perform that action at this time.