Skip to content

Instantly share code, notes, and snippets.

Working from home

Alexey Nikitin kvandake

View GitHub Profile
kvandake / carrierwave_selectel.rb
Created Feb 28, 2019 — forked from leemour/carrierwave_selectel.rb
Carrierwave integration with Selectel using fog-openstack
View carrierwave_selectel.rb
CarrierWave.configure do |config|
if Rails.env.test? || Rails.env.cucumber? = :file
config.enable_processing = false
config.asset_host = Rails.application.secrets.asset_host
config.fog_provider = 'fog/openstack'
config.fog_credentials = {
provider: 'OpenStack',
openstack_auth_url: '',

Ruby on Rails Website Launch Checklist

Copy this gist and customise it to your liking.

  • Run Brakeman and resolve any issues where required
  • Run rails best practices and resolve any warnings
  • Run full test suite and make sure all tests are passing
  • Make sure no dummy email addresses are left in any notification emails (eg contact form)
  • Make sure production assets compile correct (eg files in vendor, etc, compile and are not 404'ing in production environment)
  • If using unicorn in production, make sure deploys are restarting the unicorns
kvandake / PlaceholderTextView.cs
Created May 3, 2017
Xamarin: TextView with Placeholder
View PlaceholderTextView.cs
namespace Kvandake
using System;
using CoreGraphics;
using Foundation;
using UIKit;
View gist:47b0e7309c5aca729798cdda53ab2f81
* Reducing executable size:,_testing,_and_metrics/memory_perf_best_practices/#Reducing_Executable_Size
* Use the linker (iOS [1], Android [2]) to remove unnecessary code from your assemblies
* Reference third-party libraries judiciously
* Applying constraints to generics may reduce app size, since less code would need to be included (haven’t verified this)
kvandake /
Created Oct 18, 2016 — forked from Mariovc/
Utility for picking an image from Gallery/Camera with Android Intents
import android.content.Context;
import android.content.Intent;
import android.content.res.AssetFileDescriptor;
import android.database.Cursor;
kvandake /
Created Jan 20, 2016 — forked from sukharevd/
Script to install JBoss Wildfly 10.x as service in Linux
#description :The script to install Wildfly 10.x
#more :
#author :Dmitriy Sukharev
#date :2015-10-24T17:14-0700
#usage :/bin/bash
#tested-version :10.0.0.CR3
#tested-distros :Debian 7,8; Ubuntu 15.10; CentOS 7; Fedora 22
You can’t perform that action at this time.