class Main{
public static void main(String[] args){
System.out.println("Hello world");
}
}
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
# UTILITIES | |
sudo pacman -Syu | |
sudo pacman -Sy --needed git base-devel inotify-tools ncurses glu mesa wxgtk3 libpng vim | |
git clone https://aur.archlinux.org/yay-git.git yay | |
cd yay | |
makepkg -si | |
cd .. | |
rm -rf yay | |
# SHELL |
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
version: '2' | |
services: | |
rails: | |
image: 'clmntlxndr/rails51_webpacker' | |
links: | |
- postgres:postgres | |
volumes: | |
- $HOME/.docker_data/rails51/bundle:/usr/local/bundle | |
- $PWD:$PWD | |
working_dir: $PWD |
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 | |
apt-get update | |
apt-get -y install git-core curl build-essential autoconf zlib1g-dev libssl-dev libxml2-dev libreadline6-dev sqlite3 libsqlite3-dev imagemagick libmagickwand-dev libxslt-dev postgresql libpq-dev golang libv8-dev | |
# install rbenv and ruby-build | |
sudo -u vagrant git clone git://github.com/sstephenson/rbenv.git /home/vagrant/.rbenv | |
sudo -u vagrant echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> /home/vagrant/.profile | |
sudo -u vagrant echo 'eval "$(rbenv init -)"' >> /home/vagrant/.profile | |
sudo -u vagrant git clone git://github.com/sstephenson/ruby-build.git /home/vagrant/.rbenv/plugins/ruby-build |
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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing! | |
VAGRANTFILE_API_VERSION = "2" | |
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| | |
# All Vagrant configuration is done here. The most common configuration | |
# options are documented and commented below. For a complete reference, | |
# please see the online documentation at vagrantup.com. |
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
git log --graph --oneline --all | |
git rebase --onto topic1~2 topic2~1 topic2 |
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
begin | |
require 'ruport' | |
rescue LoadError => err | |
warn "Couldn't load ruport gem: #{err}" | |
end | |
# ugly Ruport monkey patching to avoid the call of FasterCSV | |
module Ruport::Data | |
class Table |
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
rails new | |
# Gemfile | |
gem simple_form | |
gem twitter-bootstrap-rails gem | |
rails g simple_form:install --bootstrap | |
# have a look : lib/templates/erb/scaffold/_form.html.erb |
NewerOlder