Skip to content

Instantly share code, notes, and snippets.

Ronan Flynn-Curran flynnduism

View GitHub Profile
View k8s-on-acs.md

prereqs

  • need to be a global admin to create service principal accounts when actually spinning up a cluster
  • create an SSH key and add to your OS keychain (e.g. ssh-add ...)

Issues you may run into!

  • "Insufficient privileges to complete the operation" during cluster creation

Your Azure account needs to be a Global Administrator so you can create service principal access.

View css-breakpoint-mixins.scss
@mixin for-phone-only {
@media (max-width: 599px) { @content; }
}
@mixin for-tablet-portrait-up {
@media (min-width: 600px) { @content; }
}
@mixin for-tablet-landscape-up {
@media (min-width: 900px) { @content; }
}
@mixin for-desktop-up {
@darisi
darisi / Gruntfile.js
Last active Sep 14, 2019
Uncss setting with grunt examples
View Gruntfile.js
uncss: {
dist: {
options: {
ignore: [
/(#|\.)fancybox(\-[a-zA-Z]+)?/,
/expanded/,
/js/,
/wp-/,
/align/,
/admin-bar/,
@sebz
sebz / grunt-hugo-lunrjs.md
Last active Aug 5, 2020
hugo + gruntjs + lunrjs = <3 search
View grunt-hugo-lunrjs.md
@magicznyleszek
magicznyleszek / jekyll-and-liquid.md
Last active Jul 31, 2020
Jekyll & Liquid Cheatsheet
View jekyll-and-liquid.md

Jekyll & Liquid Cheatsheet

A list of the most common functionalities in Jekyll (Liquid). You can use Jekyll with GitHub Pages, just make sure you are using the proper version.

Running

Running a local server for testing purposes:

@cobyism
cobyism / gh-pages-deploy.md
Last active Aug 5, 2020
Deploy to `gh-pages` from a `dist` folder on the master branch. Useful for use with [yeoman](http://yeoman.io).
View gh-pages-deploy.md

Deploying a subfolder to GitHub Pages

Sometimes you want to have a subdirectory on the master branch be the root directory of a repository’s gh-pages branch. This is useful for things like sites developed with Yeoman, or if you have a Jekyll site contained in the master branch alongside the rest of your code.

For the sake of this example, let’s pretend the subfolder containing your site is named dist.

Step 1

Remove the dist directory from the project’s .gitignore file (it’s ignored by default by Yeoman).

@barnes7td
barnes7td / sublime_setup.md
Last active Jul 18, 2020
Sublime Terminal Setup
View sublime_setup.md

Setup Terminal for Sublime Shorcut "subl":

Open terminal and type:

1. Create a directory at ~/bin:

mkdir ~/bin

2. Copy sublime executable to your ~/bin directory:

@bpierre
bpierre / Makefile
Created Nov 5, 2011
A Makefile to concatenate / minify my JS Scripts and convert/compress my Stylus (CSS preprocessor) files
View Makefile
# JS files
JS_FINAL = js/project-name-all.js
JS_TARGETS = js/file1.js \
js/file2.js \
js/file3.js
# CSS files
CSS_FINAL = css/project-name-all.css
STYLUS_TARGETS = css/file1.styl \
You can’t perform that action at this time.