Skip to content

Instantly share code, notes, and snippets.

View AurelienLoyer's full-sized avatar
🔥
👨🏻‍💻

Aurélien Loyer AurelienLoyer

🔥
👨🏻‍💻
View GitHub Profile
@AurelienLoyer
AurelienLoyer / pre-commit-check-filename.sh
Created November 20, 2018 21:18
[Pre Commit Git Hook] Prevent special character in filenames #git
#!/bin/sh
for file in $(git diff --cached --name-only)
do
if [[ $file == *['!'@#éáàè\$%^\&*()+]* ]]
then
echo "pre-commit: Aborting commit due to filename with special character ($file)"
exit 1
fi
done
@AurelienLoyer
AurelienLoyer / bblvuejs.md
Last active November 20, 2018 15:50
[BBL Vue.js] Midi conference sur le framework a la mode Vue.js #bbl

APRÈS ANGULAR ET REACT, VOICI ... VUE.JS

Depuis le temps que vous allez à des midi conférences, meetup vous avez sûrement entendu parlé de React et/ou Angular.

Vous êtes même devenu peut-être un expert sur l'une de ces technos.

C'est pour cela que nous avons décidé de ne pas choisir l'un de ces deux Frameworks.

Durant ce BBL je vous démontrerai comment ce Framework poussé par l'open-source peut détrôner les deux grands Frameworks, React et Angular, développés par les géants du Web

@AurelienLoyer
AurelienLoyer / vscode.md
Last active December 4, 2018 18:44
[Be a Vscode Hero] #conf

Tips sur vscode

Cmd Shif P

Turn on breadCrump

image

Best Practice

Frameworks

Angular

Modules

Husky
@AurelienLoyer
AurelienLoyer / Github 🐙 Corners 📐 Web Components 🥑 Config.txt
Last active October 21, 2018 04:13
Github 🐙 Corners 📐 Web Components 🥑 Config
Attributes:
href
values: url || ...
default: https://github.com/T3kstiil3/github-corners-web-component
side
values: left || right
default: left
<script src="https://unpkg.com/vue"></script>
<script src="https://raw.githubusercontent.com/T3kstiil3/github-corners-web-components/master/dist/github-corners.min.js"></script>
<github-corners side="right" href="https://github.com/T3kstiil3"></github-corners>
<!doctype html>
<html>
<meta charset="UTF-8">
<head>
<style>
body {
padding-top: 70px;
}
.hero-spacer {
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Ansi 0 Color</key>
<dict>
<key>Alpha Component</key>
<real>1</real>
<key>Blue Component</key>
<real>0.25882354378700256</real>
# Souper app
https://filipmolcik.com/free-photoshop-on-mac-os-x-photoshop-trial-reset/
https://electronjs.org/docs/tutorial/first-app
https://ourcodeworld.com/articles/read/106/how-to-choose-read-save-delete-or-create-a-file-with-electron-framework
@AurelienLoyer
AurelienLoyer / homebridge_on_boot_pm2.md
Last active December 11, 2016 21:03
HomeBridge start on boot

i got my HomeBridge running with autostart @reboot (rpi) :D

I used PM2 instead of forever. If you follow the instructions below, it will autostart HomeBridge after a reboot of you pi...

sudo npm install pm2 -g
cd ~/homebridge/
pm2 start app.js --name HomeBridge

pm2 save