$ echo 'gem "webpacker"' >> Gemfile
$ bundle install
$ rails webpacker:install
$ yarn add [email protected] jquery popper.js
diff --git a/config/webpack/environment.js b/config/webpack/environment.js
index d16d9af..86bf1a7 100644
$ echo 'gem "webpacker"' >> Gemfile
$ bundle install
$ rails webpacker:install
$ yarn add [email protected] jquery popper.js
diff --git a/config/webpack/environment.js b/config/webpack/environment.js
index d16d9af..86bf1a7 100644
require 'bundler/capistrano' | |
# Include this if you want to be able to set up different deployment stages (i.e. beta, stage, etc.) | |
# require 'capistrano/ext/multistage' | |
set :application, "example.com" | |
set :user, "linuxusername" | |
default_run_options[:pty] = true | |
set :use_sudo, true |
require 'rvm/capistrano' | |
require 'bundler/capistrano' | |
require 'capistrano/ext/multistage' | |
load 'deploy/assets' | |
set :stages, ["staging", "production"] | |
set :default_stage, "production" | |
set :user, '?' | |
set :admin_runner, '?' |
#!/bin/bash | |
echo "$@" | sed -e 's|\\|/|g' -e 's|^\([A-Za-z]\)\:/\(.*\)|/mnt/\L\1\E/\2|' |
#!/usr/bin/env bash | |
git branch -r | grep -v '\->' | while read remote; do git branch --track "${remote#origin/}" "$remote"; done | |
git fetch --all | |
git pull --all |
# Signal catching | |
def shut_down | |
puts "\nShutting down gracefully..." | |
sleep 1 | |
end | |
puts "I have PID #{Process.pid}" | |
# Trap ^C | |
Signal.trap("INT") { |
#!/usr/bin/env ruby | |
require 'rubygems' | |
require 'apache_log_regex' | |
require 'date' | |
format = '%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-agent}i\"' | |
parser = ApacheLogRegex.new(format) | |
File.readlines('/path/to/access-log').collect do |line| |
<?php | |
require_once "vendor/autoload.php"; | |
use Symfony\Component\Console\Application; | |
use Illuminate\Database\Console\Migrations; | |
use Pimple\Container; | |
$container = new Container(); | |
$container['migration-table'] = 'migration'; |
<?php | |
/* | |
* /path/to/migrations/directory/Version20121011141021.php | |
*/ | |
namespace ExampleMigrations; | |
use Doctrine\DBAL\Migrations\AbstractMigration; | |
use Doctrine\DBAL\Schema\Schema; | |
class Version20121011141021 extends AbstractMigration |
#!/usr/bin/env ruby | |
require 'packetfu' | |
# filter = argv[0] - tcpdump style. | |
# e.g. 'dst host bla.dom.tld and port http and (((ip[2:2] - ((ip[0]&0xf)<<2)) - ((tcp[12]&0xf0)>>2)) != 0)' | |
# to cap. http traffic. or 'host W.X.Y.Z' to cap a speficic host/ip | |
cap = PacketFu::Capture.new(:start => true) | |
cap.save(:filter => ARGV[0]) |