- Open https://node1.online.sberbank.ru/PhizIC/private/userprofile/addressbook.do
- Open browser console.
- Paste script.
- Press Enter.
- Call to Sberbank support to cleanup Trash.
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 :optimization do | |
desc "Provide DB vacuum for production environment" | |
task :vacuum => :environment do | |
begin | |
tables = ActiveRecord::Base.connection.tables | |
tables.each do |table| | |
ActiveRecord::Base.connection.execute("VACUUM FULL ANALYZE #{table};") | |
end | |
rescue Exception => exc | |
Rails.logger.error("Database VACUUM error: #{exc.message}") |
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
# A sample Gemfile | |
source "https://rubygems.org" | |
gem 'sqlite3' | |
gem 'pony' |
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 | |
# | |
# Alexander Merkulov [email protected] | |
# Contributors : @merqlove | |
# App Version : 6.x | |
# chkconfig: 2345 82 55 | |
# processname: sidekiq_some_service | |
# description: Runs sidekiq for some_service. |
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
var dropList = []; | |
for(var i in Droplr.DropList.models) { | |
// Find the drop ID in the list | |
var dropID = Droplr.DropList.models[i].id, | |
dropTitle = Droplr.DropList.models[i].attributes.title; | |
if(dropList.indexOf(dropID) == -1) { // If ID is not on the list, add it to the list | |
dropList.push({id: dropID, title: dropTitle}); | |
} |
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 ruby | |
# -*- encoding : utf-8 -*- | |
Signal.trap('INT') { exit 1 } | |
# resolve bin path, ignoring symlinks | |
require 'pathname' | |
bin_file = Pathname.new(__FILE__).realpath | |
# add self to libpath |
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 ruby:2.2.1 | |
RUN mkdir -p /usr/src/app | |
WORKDIR /usr/src/app | |
ENV RAILS_ENV production | |
ENV REFILE_CACHE_DIR /var/tmp/uploads | |
RUN curl -sL https://deb.nodesource.com/setup | bash - |
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
require 'formula' | |
class Swig < Formula | |
url 'http://downloads.sourceforge.net/project/swig/swig/swig-2.0.4/swig-2.0.4.tar.gz' | |
homepage 'http://www.swig.org/' | |
sha256 '763a117730d26f8e5ed67f5718c6c0761fbb8461680fc20269db8c0839e1ec8a' | |
depends_on 'pcre' | |
def install |
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
class Logger { | |
private BiConsumer<Object, Integer> logger = null; | |
// ... | |
private Logger(Object logger) { | |
this.akkaLogger = (LoggingAdapter) logger; | |
this.logger = (message, level) -> { | |
switch (level) { | |
case INFO: akkaInfo(message); |
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
# Enable character repeat on keydown | |
defaults write -g ApplePressAndHoldEnabled -bool false | |
# Set a shorter Delay until key repeat | |
defaults write NSGlobalDomain InitialKeyRepeat -int 12 | |
# Set a blazingly fast keyboard repeat rate | |
defaults write NSGlobalDomain KeyRepeat -int 0 | |
# Disable window animations ("new window" scale effect) |