Now into http://nicolas-brousse.github.io/ubuntu-install-and-tips
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace :carrierwave do | |
desc 'Reprocesses Carrier Wave file versions of a given model.' | |
task reprocess_all: :environment do | |
ActiveRecord::Base.descendants.each do |m| | |
next if m.uploaders.empty? | |
puts "Reprocess #{m.name}" | |
m.all.each do |entry| |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cask :v1 => 'common-group' do | |
version :latest | |
sha256 :no_check | |
# Binaries | |
depends_on :formula => 'wget' | |
depends_on :formula => 'curl' | |
depends_on :formula => 'whois' | |
depends_on :formula => 'zsh' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$post = new Post(); | |
$post->setTitle('Awesome title'); | |
$post->setContent('My very awesome article'); | |
$comment = new Comment(); | |
$comment->setAuthor('Alice'); | |
$comment->setText('That\'s a very great article!'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM gliderlabs/alpine:3.2 | |
RUN apk-install curl |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/sh | |
# | |
# Convert svn repository to Git repository | |
# Author: Nicolas Brousse <nicolas@opsone.net> | |
# Date: 2013-10-02 17:28:01 UTC | |
# | |
# Thanks to: http://www.mabishu.com/blog/2011/01/13/migrate-subversion-repository-to-git-without-loosing-data/ | |
# | |
set -e |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<title>jQuery simple accordion</title> | |
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script> | |
<script type="text/javascript" src="jquery.simpleAccordion.js"></script> | |
<script type="text/javascript"> | |
$('.accordion').simpleAccordion(); | |
</script> | |
</head> | |
<body> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/sh | |
# | |
# Create new empty rails application with rvm | |
# Author: Nicolas Brousse <nicolas@opsone.net> | |
# Date: 2011-11-17 00:18:10 UTC | |
# | |
# create_rails [version] [gemset_name] PATH | |
# | |
set -e |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
if [ -f "$rvm_path/scripts/rvm" ] && [ -f ".ruby-version" ] && [ -f ".ruby-gemset" ]; then | |
source "$rvm_path/scripts/rvm" | |
ruby_version=`cat .ruby-version` | |
ruby_gemset=`cat .ruby-gemset` | |
environment_id="$ruby_version@$ruby_gemset" | |
rvm use "$environment_id" || { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
{ | |
"create_window_at_startup": false, | |
"detect_slow_plugins": false, | |
"draw_white_space": "all", | |
"ensure_newline_at_eof_on_save": true, | |
"font_size": 11.0, | |
"highlight_line": true, | |
"highlight_modified_tabs": true, | |
"hot_exit": false, | |
"ignored_packages": |
OlderNewer