Skip to content

Instantly share code, notes, and snippets.

Avatar

Maksym Pavlenko mxpv

View GitHub Profile
@alexsinger
alexsinger / build.gradle
Last active Jul 10, 2019
Separate Crashlytics reporting for debug and release buildTypes using a Gradle build
View build.gradle
// The following code allows an app to report Crashlytics crashes separately
// for release and debug buildTypes when using Gradle. This code should be inserted
// into the specified locations within your build.gradle (Module:app) file
// The buildTypes { } block should be inserted inside the android { } block
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
ext.crashlyticsApiSecret = "release api secret"
View essential-javascript-links.md
@mxpv
mxpv / gist:5879528
Created Jun 27, 2013
How to make sublime text the default editor for git on Windows
View gist:5879528
git config --global core.editor "'c:/program files/sublime text 2/sublime_text.exe' -w"
@miketrebilcock
miketrebilcock / PasswordResetService.cs
Last active Oct 3, 2019
Password Resetting in Servicestack
View PasswordResetService.cs
using CORE.Kernel.ExtensionMethods;
using CORE.Models;
using ServiceStack.Common;
using ServiceStack.Common.Web;
using ServiceStack.FluentValidation;
using ServiceStack.ServiceHost;
using ServiceStack.ServiceInterface;
using ServiceStack.ServiceInterface.Auth;
using ServiceStack.ServiceInterface.ServiceModel;
using ServiceStack.ServiceInterface.Validation;
@devudilip
devudilip / SUBLIME TEXT2 INSTALLATION
Created Oct 22, 2011
HOW TO INSTALL SUBLIME TEXT 2 ON UBUNTU 11.10
View SUBLIME TEXT2 INSTALLATION
#BECOME SUPER USER#
sudo -i
#add sublime to repository#
add-apt-repository ppa:webupd8team/sublime-text-2
#update#
anonymous
anonymous / video.js
Created Oct 21, 2011
Node js on the fly video conversion
View video.js
var child_process = require('child_process'),
sys = require('sys'),
http = require('http'),
parse = require('url').parse,
fs = require('fs');
var spawn = child_process.spawn;
var exec = child_process.exec;
View regex-weburl.js
//
// Regular Expression for URL validation
//
// Author: Diego Perini
// Created: 2010/12/05
// Updated: 2018/09/12
// License: MIT
//
// Copyright (c) 2010-2018 Diego Perini (http://www.iport.it)
//
@atifaziz
atifaziz / MimeMap.cs
Created Oct 3, 2008
MIME Mapping (C#)
View MimeMap.cs
#region Imports
using System;
using System.Collections.Generic;
using System.Linq;
using System.Collections;
using System.Configuration;
using System.IO;
#endregion