Skip to content

Instantly share code, notes, and snippets.

View ct27stf's full-sized avatar
🎱
Free fortune telling!

Cătălin Nicolescu ct27stf

🎱
Free fortune telling!
View GitHub Profile
@ct27stf
ct27stf / README.md
Last active July 18, 2021 17:02
Ubuntu minimal developer machine setup

Install script for minimal web developer machine

Linux

Ubuntu >= 20.04 is required.

This will run the setup.sh script, which is a convenience method that will doanload and run the ansible-dev-machine.yml playbook file into your $HOME dir, install ansible if not found and run the playbook

  • Open a terminal and paste the folowing
@ct27stf
ct27stf / README.md
Last active June 23, 2022 16:05
MicroK8s install scripts for our dev team

Install script for MicroK8s for our dev team

  • This will setup MicroK8s either on Windows with WSL2 or Ubuntu
  • Requires Ubuntu >= 20.04

Windows

This will configure WSL2. Keep in mind that if you previously installed WSL, all your distros WILL be removed by this script

It will download the SetupWSL.ps1 install script

@ct27stf
ct27stf / photoshop.less
Created November 23, 2012 10:40
Photoshop effects in LESS
.linear-gradient (@angle:90deg, @startcolor, @endcolor) {
@w3c-angle: @angle - 90;
background-color: @startcolor;
background: -webkit-linear-gradient(@angle, @startcolor, @endcolor);
background: -moz-linear-gradient(@angle, @startcolor, @endcolor);
background: -ms-linear-gradient(@angle, @startcolor, @endcolor);
background: -o-linear-gradient(@angle, @startcolor, @endcolor);
background: linear-gradient(@w3c-angle, @startcolor, @endcolor);
}
@ct27stf
ct27stf / change-background.plugin.js
Created July 9, 2012 13:19
A jQuery plugin to change the background image of an element from a list of images
/*===============================
Usage:
$(document).ready(function() {
$('body').changeBackground({
'path': '', // path to images (eg. /wp-content/themes/mytheme/ )
'images': [], // images list eg. ['img1.jpg', 'img2.jpg', 'img3.jpg']
'interval': 1000 // transition time in miliseconds
});
@ct27stf
ct27stf / font-stacks.css
Created July 7, 2012 18:11
Similar looking fonts for Windows, Linux, Mac
.mono-font-stack {
font-family: Consolas, "Andale Mono WT", "Andale Mono", "Lucida Console", "Lucida Sans Typewriter", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Liberation Mono", "Nimbus Mono L", Monaco, "Courier New", Courier, monospace;
}
.times-font-stack {
font-family: Cambria, "Hoefler Text", Utopia, "Liberation Serif", "Nimbus Roman No9 L Regular", Times, "Times New Roman", serif;
}
.modern-font-stack {
font-family: Constantia, "Lucida Bright", Lucidabright, "Lucida Serif", Lucida, "DejaVu Serif," "Bitstream Vera Serif", "Liberation Serif", Georgia, serif;