Skip to content

Instantly share code, notes, and snippets.

View knfcz's full-sized avatar

Jordan B. knfcz

View GitHub Profile
@knfcz
knfcz / blur.scss
Created July 28, 2016 10:17 — forked from ceane/blur.scss
SASS Blur Mixin
@mixin blur ($radius) {
-webkit-filter: blur($radius+px); /* Chrome, Safari */
-ms-filter: blur($radius+px); /* IE12? */
filter: url("data:image/svg+xml;utf8,<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\"><filter id=\"blur\"><feGaussianBlur stdDeviation=\"#{$radius}\" /></filter></svg>#blur"); /* Firefox, Safari, Chrome*/
filter: progid:DXImageTransform.Microsoft.Blur(Strength=$radius); /* IE9 */
}
@knfcz
knfcz / 3dshadow.scss
Created November 19, 2016 20:49
Simple 3d shadow mixin using SASS
// oui bon
@function px($pxsize) {
@return ($pxsize)+ px;
}
@mixin threedshadow($x, $color){
$all: ();
@for $i from 1 through $x {
$all: append($all, px($i) px($i) $color, comma);
}

Ajouter une clé SSH

  • Générer la paire de clé avec

ssh-keygen -t rsa

  • Ajouter la clé dans le fichier authorized_keys du serveur

cat ~/.ssh/id_rsa.pub | ssh user@123.45.56.78 "mkdir -p ~/.ssh && cat >> ~/.ssh/authorized_keys"

#181b21
#d6dcd7
#728f8f
#008080
@knfcz
knfcz / skeleton.sh
Created November 10, 2017 03:08
init.d script skeleton
# Provides: Stuff
# Required-Start: $remote_fs $syslog
# Required-Stop: $remote_fs $syslog
# Should-Start: $portmap
# Should-Stop: $portmap
# X-Start-Before: nis
# X-Stop-After: nis
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# X-Interactive: true
@knfcz
knfcz / docker-compose.yml
Created December 11, 2017 18:08
Mysql & PhpMyadmin Docker
version: "2"
services:
#MySQL
mysql:
image: mysql:latest
volumes:
- YOUR_DIRECTORY:/var/lib/mysql
environment:
MYSQL_ROOT_PASSWORD: ""
MYSQL_ALLOW_EMPTY_PASSWORD: "true"
@knfcz
knfcz / SCSS.md
Created January 12, 2018 18:25 — forked from jareware/SCSS.md
Advanced SCSS, or, 16 cool things you may not have known your stylesheets could do

⇐ back to the gist-blog at jrw.fi

Advanced SCSS

Or, 16 cool things you may not have known your stylesheets could do. I'd rather have kept it to a nice round number like 10, but they just kept coming. Sorry.

I've been using SCSS/SASS for most of my styling work since 2009, and I'm a huge fan of Compass (by the great @chriseppstein). It really helped many of us through the darkest cross-browser crap. Even though browsers are increasingly playing nice with CSS, another problem has become very topical: managing the complexity in stylesheets as our in-browser apps get larger and larger. SCSS is an indispensable tool for dealing with this.

This isn't an introduction to the language by a long shot; many things probably won't make sense unless you have some SCSS under your belt already. That said, if you're not yet comfy with the basics, check out the aweso

@knfcz
knfcz / lush.hideout
Created December 19, 2019 23:19
hideout poe :^)
Language = "English"
Hideout Name = "Immaculate Hideout"
Hideout Hash = 13485
Stash = { Hash=3230065491, X=531, Y=395, Rot=55047, Flip=0, Var=0 }
Guild Stash = { Hash=139228481, X=540, Y=390, Rot=61927, Flip=0, Var=0 }
Waypoint = { Hash=1224707366, X=517, Y=374, Rot=16384, Flip=0, Var=9 }
Crafting Bench = { Hash=2059629901, X=585, Y=479, Rot=49152, Flip=0, Var=0 }
Map Device = { Hash=2306038834, X=361, Y=598, Rot=0, Flip=0, Var=0 }
Navali = { Hash=693228958, X=531, Y=406, Rot=44511, Flip=0, Var=0 }