Skip to content

Instantly share code, notes, and snippets.

Kevin Smets kevin-smets

Block or report user

Report or block kevin-smets

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@kevin-smets
kevin-smets / landscapeLock.coffee
Created Jun 12, 2013
mobile webkit landscape locking hack
View landscapeLock.coffee
$(window).bind("orientationchange", ->
$scope.orientation = window.orientation
$(document.body).css({
width: $(window).width()
height: $(window).height()
})
if window.orientation % 180 is 0
rotation = "rotate(-90deg)"
if window.orientation > 0
View sass2scss.sh
#!/bin/bash
for f in *.sass; do sass-convert $f ${f%sass}scss ; done
rm *.scss
@kevin-smets
kevin-smets / gitSemVer.sh
Last active Sep 21, 2017
SemVer tagging
View gitSemVer.sh
git tag -a v1.0.0 -m 'tagging v1.0.0'
git push --tags
@kevin-smets
kevin-smets / iterm2-solarized.md
Last active Feb 18, 2020
iTerm2 + Oh My Zsh + Solarized color scheme + Source Code Pro Powerline + Font Awesome + [Powerlevel10k] - (macOS)
View iterm2-solarized.md

Default

Default

Powerlevel10k

Powerlevel10k

@kevin-smets
kevin-smets / csslint.clean.json
Last active Sep 21, 2017
CSS lint options for the modern browser(s)
View csslint.clean.json
{
"box-model" : true,
"display-property-grouping" : true,
"duplicate-properties" : true,
"empty-rules" : true,
"known-properties" : true,
"non-link-hover" : false,
"adjoining-classes" : false,
"box-sizing" : false,
"compatible-vendor-prefixes" : true,
@kevin-smets
kevin-smets / gitConvertSassToScss.sh
Created Mar 1, 2015
Converts all sass files (recursively) to scss in a git repo (rename should get picked up so history is still tied to the converted file).
View gitConvertSassToScss.sh
find . -type f -name "*.sass" -exec bash -c 'sass-convert ${0} -i --to scss; git mv ${0} ${0%.sass}.scss' {} \;
@kevin-smets
kevin-smets / findStringInFile.sh
Created Mar 11, 2015
Find text in files and show file name + line number
View findStringInFile.sh
find . -type f -name "*.scss" -exec bash -c 'grep -rin calc ${0};' {} \;
@kevin-smets
kevin-smets / macOS_virtualbox.sh
Last active Sep 29, 2019 — forked from ryanmaclean/el_capitan_dmg_virtualbox.sh
Convert macOS installer for use in VirtualBox
View macOS_virtualbox.sh
#!/bin/bash
# Disclaimer: never got this to work properly and have not attempted it since.
# This will require about 30GB of space, still in experimental phase right now
sudo gem install iesd
cd /Applications # Or wherever you hve the "Install 10.12 Developer Preview.app" available
iesd -i Install\ 10.12\ Developer\ Preview.app -o macos.dmg -t BaseSystem
hdiutil convert macos.dmg -format UDSP -o macos.sparseimage
@kevin-smets
kevin-smets / harp_and_browser-sync_combo.md
Last active Sep 21, 2017
harp + browsers-sync, start developing for the web in under a minute (probably ;) )
View harp_and_browser-sync_combo.md

What is this combo?

Static file server with livereload, preprocessors, synchronised testing over multiple browser instances and batteries included. This setup uses Harp and Browsersync, hence the name.

Prerequisite

You will need node, install it if you haven't already.

Init all the things

@kevin-smets
kevin-smets / concourse.md
Last active Jun 19, 2019
Setup the Concourse binary locally on macOS and run the hello world example.
View concourse.md

Prerequisites

Installs

Concourse

curl -Lo concourse https://github.com/concourse/concourse/releases/download/v2.5.0/concourse_darwin_amd64 && chmod +x concourse && mv concourse /usr/local/bin
You can’t perform that action at this time.