Skip to content

Instantly share code, notes, and snippets.

View bikerduweb's full-sized avatar

Olivier bikerduweb

  • France
View GitHub Profile

How To: Authlogic to Devise

Step 1: Migration

  1. bin/rails g migration AuthlogicToDevise
  2. (see the file below for the actual migration, authlogic_to_devise.rb)
  3. bin/rake db:migrate

Step 2: Update Gemfile

  1. gem "devise", "~> 2.2.0"
  2. bundle install
@bikerduweb
bikerduweb / ruby_on_rails_deployment.md
Created October 18, 2024 07:42 — forked from zentetsukenz/ruby_on_rails_deployment.md
Deploy Ruby on Rails application with Docker Compose and Capistrano with ease

Docker

Files and Folders.

|
|\_ app
|...
|\_ docker
| |
@bikerduweb
bikerduweb / gem.sh
Last active December 8, 2024 10:17
[Ruby compilation] Various help to compile specific ruby things #tips
# Si probleme de librairie zstd
gem install mysql2 -- --with-opt-dir=$(brew --prefix openssl) --with-ldflags=-L/opt/homebrew/opt/zstd/lib
@bikerduweb
bikerduweb / screen.md
Last active December 8, 2024 10:16
[Linux commands] Various #shell and #linux apps tips and memo
  • New session: screen -S session_name
  • Dettach: Ctrl+a d
  • Find sessions ID : screen -ls
  • Resume last session: screen -r
  • Resume specific session: screen -r ID
@bikerduweb
bikerduweb / README.md
Created October 10, 2022 11:07
Updated scaleway kernel modules / headers script for old VC1S instance

Theses scripts are extracted from a recent scaleway instance, and can be used to replace the very old scripts existing in /usr/local/sbin of a VC1S instance. It will allow you to change kernel in the scaleway client interface, and get the proper modules installed

@bikerduweb
bikerduweb / Macros.md
Created January 9, 2022 22:24 — forked from alkemann/Macros.md
D100 Dungeon macros for Roll20.net

D100 macros

This strategy assumes that you have created (at least) two character sheets. You should make sure to make a "custom" character sheet for this game. You can use HTML and CSS to style it if you prefer, but it is not needed since we have the character sheet in the Google sheet ( https://docs.google.com/spreadsheets/d/1ty892ds1VMRs2l5GwFIiWR1_Ov8S5YeYdzm-bYu_e24/edit?usp=sharing ).

After having made two sheets, name one Player and the other Monster. In the sheet under the Attributes and abilities tab you can click the Add button to add any number of custom attributes. You must add all the ones that are mentioned in macros you will use, but it is perfectly ok for them to have no values (will be functionally the same as 0).

The macros look up values from both Player and Monster using a syntax like this @{ then character name then | followed by the attribute to look up and ends with }. So to look up the strength score (str) on the player, it will use @{Player|str}.

For each of the m

@bikerduweb
bikerduweb / keybase.md
Created April 7, 2020 12:43
keybase.md

Keybase proof

I hereby claim:

  • I am bikerduweb on github.
  • I am bikerduweb (https://keybase.io/bikerduweb) on keybase.
  • I have a public key ASArYpM_45w2kuA5YugNN2Y6e7CNSAn_LzHTB5EGaI-mEAo

To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am veilleperso on github.
  • I am veilleperso (https://keybase.io/veilleperso) on keybase.
  • I have a public key ASCWtdDql4Odn5Lmq_SI3z5TffeeY22WlYVfIvQ5knHhWwo

To claim this, I am signing this object:

@bikerduweb
bikerduweb / readme.txt
Last active December 8, 2024 08:47
Sphinx 2.1.9 brew formula. Install via "brew install RAW_URL"
* Install sphinx 2.1.9 (latest 2.1 stable version) with brew:
brew install https://gist.githubusercontent.com/veilleperso/dc13a6a4186a4ec32a57/raw/sphinx.rb
* To prevent automatic upgrade:
brew pin sphinx
* To upgrade again:
brew unpin sphinx
@bikerduweb
bikerduweb / goodreads.js
Last active February 13, 2024 08:03
[Goodread] Here is a Javascript that you can enter into the console from the Books Read shelf and use it to set the value for 'date read' with the value that is in 'date added'. If 'date read' already has a value, it doesn't do anything. I recommend turning off Goodreads infinite scroll and just doing it for each page of 100 results in your shelf.
var a = jQuery('#booksBody tr');
var monthName2Int = new Array();
monthName2Int['Dec'] = 12;
monthName2Int['Nov'] = 11;
monthName2Int['Oct'] = 10;
monthName2Int['Sep'] = 9;
monthName2Int['Aug'] = 8;
monthName2Int['Jul'] = 7;
monthName2Int['Jun'] = 6;
monthName2Int['May'] = 5;