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 clone https://github.com/adblockplus/adblockpluschrome | |
cd adblockpluschrome | |
git clone https://github.com/adblockplus/adblockplus | |
git clone https://github.com/adblockplus/buildtools | |
git clone https://github.com/adblockplus/adblockplustests | |
cd buildtools | |
git clone https://github.com/adblockplus/jshydra | |
cd .. | |
# Build Chrome development environment (you can use either "chrome", "opera" or "safari") |
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
# This is an example of how to use database_cleaner gem and | |
# RSpec tags to make `after_commit` hook play nice with | |
# `use_transactional_fixtures`. | |
# Simply mark the specs that use after_commit with | |
# `:uses_after_commit` tag. | |
# ... | |
require 'database_cleaner' |
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/bash | |
# Convert all tables in a specified database to a different charset | |
# | |
# NOTE: this will NOT preserve data if it was stored improperly to begin with, | |
# e.g. UTF8 encoded strings saved as latin1 charset will get munged by this | |
# script when the table is converted. To preserve data you must export it, change | |
# the charset, then re-import. | |
# | |
# Command taken from: |
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
function ngIt($injector) { | |
return function(text, fn) { | |
it(text, function(done) { | |
var $rootScope = $injector.get('$rootScope') | |
, fin | |
, finished = function(err) { | |
fin = true; | |
done(err); | |
}; | |
fn(finished); |
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/bash | |
### BEGIN INIT INFO | |
# Provides: weinre | |
# Required-Start: $remote_fs $syslog networking | |
# Required-Stop: | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
# Short-Description: weinre mobile debugger | |
# Description: Provides remote front-end debugger for mobile user agents | |
# like Chrome Inspector or FireBug |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
# http://stackoverflow.com/a/8936202 | |
# | |
# ActiveAdmin already includes the necessary jquery in active_admin/base, | |
# so just add this to javascripts/active_admin.js after //= require active_admin/base | |
# | |
# | |
# Serialize and Sort | |
# | |
# model_name - you guessed it, the name of the model we are calling sort on. | |
# This is the actual variable name, no need to change it. |
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
# unicorn_rails -c /srv/myapp/current/config/unicorn.rb -E production -D | |
rails_env = ENV['RAILS_ENV'] || 'production' | |
working_directory (rails_env == 'production' ? "/srv/myapp/current" : `pwd`.gsub("\n", "")) | |
worker_processes (rails_env == 'production' ? 10 : 4) | |
preload_app true | |
timeout 30 | |
if rails_env == 'production' |
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
/ ... | |
- f.inputs do | |
= f.hidden_field :lock_version | |
/ ... |
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
// ==UserScript== | |
// @name mbank unlifting | |
// @description Przywraca wygląd strony transakcyjnej mbanku z przed liftingu | |
// @version 0.1 | |
// @grant none | |
// @author mardr | |
// @include https://online.mbank.pl/* | |
// ==/UserScript== | |
document.documentElement.classList.remove('lifting'); |
OlderNewer