Skip to content

Instantly share code, notes, and snippets.

View jfretin's full-sized avatar

Jonathan Fretin jfretin

  • Royal Distribution
  • France
View GitHub Profile
@stakahashi
stakahashi / Vue.config
Last active August 29, 2015 14:17
Laravel(blade template)でvue.jsのmustache記法を使用する ref: http://qiita.com/shunsuke-takahashi/items/8f697d1bbf6ba3902ca2
{
// print stack trace for warnings?
debug: true,
// attribute prefix for directives
prefix: 'v-',
// interpolation delimiters
// for HTML interpolations, add
// 1 extra outer-most character.
delimiters: ['{{', '}}'],
// suppress warnings?
@rfreebern
rfreebern / README
Created October 3, 2011 19:52
Use bitbucket as a private offsite code backup
Now that bitbucket supports git, it's easy to use their service as a free, private, offsite code backup. Just create an empty repo for your project on bitbucket, add it as a remote to your development repo:
username@host:~/project$ git remote add bitbucket git@bitbucket.org:username/project.git
and use this post-commit hook to silently and automatically push your changes up after each commit.
@jrmoran
jrmoran / Custom.css
Created November 24, 2011 06:01 — forked from star-szr/Custom.css
IR_Black Theme (with sidebar and view-source colors) for Chrome Developer Tools
/**********************************************/
/*
/* IR_Black Skin by Ben Truyman - 2011
/*
/* Based on Todd Werth's IR_Black:
/* http://blog.toddwerth.com/entries/2
/*
/* Inspired by Darcy Clarke's blog post:
/* http://darcyclarke.me/design/skin-your-chrome-inspector/
/*
@jemmyw
jemmyw / setup-statsd.sh
Created April 4, 2012 12:50 — forked from rw/setup-statsd.sh
Turn an Ubuntu 11.10 EC2 into a StatsD/Graphite server
set -e
# install git
sudo apt-get -y install g++ curl libssl-dev apache2-utils git-core nodejs
# install other graphite dependencies
sudo apt-get -y install python-cairo python-django memcached python-memcache install python-ldap python-twisted apache2 libapache2-mod-python libapache2-mod-wsgi python-django-tagging
# install the Node package manager for later use
curl http://npmjs.org/install.sh | sudo sh
@sumardi
sumardi / supervisord.conf
Created July 7, 2013 08:48
Laravel 4 queue listener with supervisord.
[unix_http_server]
file=/var/run//supervisor.sock ; (the path to the socket file)
chmod=0700 ; sockef file mode (default 0700)
[supervisord]
logfile=/var/log/supervisor/supervisord.log ; (main log file;default $CWD/supervisord.log)
pidfile=/var/run/supervisord.pid ; (supervisord pidfile;default supervisord.pid)
childlogdir=/var/log/supervisor ; ('AUTO' child log dir, default $TEMP)
; the below section must remain in the config file for RPC
@caugner
caugner / nightly-updater
Last active February 7, 2017 08:19
A simple updater for Mozilla Firefox Nightly in Linux multi-user environments.
#!/bin/bash
#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
#
# A simple updater for Mozilla Firefox Nightly in Linux multi-user environments.
#
# Choose your OS, architecture and destination here:
NIGHTLY_OS='linux'
anonymous
anonymous / bootstrap-notifications.js
Created January 6, 2012 09:43
Javascript for notifications (alerts) for Twitter Bootstrap
/*
I created the following javascript to use bootstrapt's notifications through Javascript.
If you like it you may consider adding it to bootstrapt. Feel free to modify if necessary.
Be sure you define a div #notification-area, where the notifications are going to be displayed by default.
I use it with jQuery 1.7.1 but it should work with older versions. Is also use jquery.hotkeys.js ( https://github.com/jeresig/jquery.hotkeys ) for block messages hotkeys
*/
(function( $ ){
var pub = {
@maxauvy
maxauvy / MakeOpenVPN.sh
Last active October 13, 2017 11:43
MakeOpenVPN.sh
#!/bin/bash
# Déclaration des variables par défaut
DEFAULT="Default.txt"
FILEEXT=".ovpn"
CRT=".crt"
KEY=".3des.key"
CA="ca.crt"
TA="ta.key"
@bmcculley
bmcculley / install_firefox.sh
Last active March 4, 2020 12:49
A script to automate the installation of the latest Firefox on Crostini.
#!/bin/bash
# script that will install the latest firefox and create a shelf icon
# Run:
# curl -sL https://git.io/fNbqF | bash -
if [ $(dpkg-query -W -f='${Status}' bzip2 2>/dev/null | grep -c "ok installed") -eq 0 ];
then
sudo apt-get install -y bzip2;
fi
@redox
redox / base.html.haml
Last active May 16, 2020 13:13
Algolia extends HipChat to customer support
#chat-box.ubuntu.hidden-xs
.closed
.pull-right
= link_to_function content_tag(:i, nil, class: 'glyphicon glyphicon-chevron-up').html_safe, 'chat.show()'
.m-l-small
= link_to_function 'Chat with us', 'chat.show()'
.opened{style: 'display: none'}
.header
.pull-right
= link_to_function content_tag(:i, nil, class: 'glyphicon glyphicon-plus-sign').html_safe, 'chat.maximize()', class: 'maximize', style: 'display: none'