Skip to content

Instantly share code, notes, and snippets.

View akalongman's full-sized avatar
:octocat:
Loving Open Source

Avtandil Kikabidze akalongman

:octocat:
Loving Open Source
View GitHub Profile
@akalongman
akalongman / tasker
Last active April 28, 2016 09:46
Tasker - Bash alias runner for fast development
#!/usr/bin/env bash
# Avtandil Kikabidze aka LONGMAN <akalongman@gmail.com>
PATH=$PATH:./node_modules/.bin
VERSION="1.1"
COLOR_RED=`tput setaf 1`
COLOR_GREEN=`tput setaf 2`
COLOR_BROWN=`tput setaf 3`
COLOR_RESET=`tput sgr0`
/* Userstyle for Gitlab.com. Created by: 2E0PGS */
/* Repository: https://bitbucket.org/2E0PGS/userstyles/overview */
/* Licence: GNU v3 */
/* Userstyle URL: todo /*
/* Version 1.0.7 01/02/2017 18:33*/
/* I suggest you set your Syntax Highlighting Theme to "Dark" under your /profile/preferences Page.*/
body, h1, h2, h3, h4, h5, h6, .wiki h1, .wiki h2, .wiki h3, .wiki h4, .wiki p, .wiki, .md-page, .blog-entry h1, .blog-entry h2, .blog-entry h3, .blog-entry h4, .blog-entry h5, .md-page h1, .md-page h2, .md-page h3, .md-page h4, .md-page h5, .blog-entry p, .md-page p, .detail-page-description .title, p, .cover-block .cover-title, .cover-block .cover-desc {
color: #ffffff !important;

Keybase proof

I hereby claim:

  • I am akalongman on github.
  • I am longman (https://keybase.io/longman) on keybase.
  • I have a public key whose fingerprint is 0D89 FDF5 A359 331A CA5B 86F9 9BAC 7D14 3BD2 A016

To claim this, I am signing this object:

body {
white-space: pre;
font-family: monospace;
background: black;
color: #cccccc;
}
.property {
font-weight: bold;
color: #F060F0;
<?xml version="1.0" encoding="UTF-8"?>
<ruleset name="Project code style checker config">
<rule ref="../vendor/longman/php-code-style/longish.phpcs.xml">
</rule>
<!-- Ban some functions -->
<rule ref="Generic.PHP.ForbiddenFunctions">
<properties>
<property name="forbiddenFunctions" type="array">
<element key="sizeof" value="count"/>
@akalongman
akalongman / gulpfile.js
Created November 4, 2015 11:42
Gulp task for uploading files to ftp/sftp server based on Sublime Text sftp-config.json configuration file
const gutil = require('gulp-util');
const ftp = require( 'vinyl-ftp' );
const sftp = require('gulp-sftp');
// task for deploying files on the server
gulp.task('deploy', function() {
const config = require('./sftp-config.json');
const globs = [
'folder/file',
@akalongman
akalongman / mysql-sync.sh
Created October 18, 2017 08:11
Sync one database to second using `pt-table-sync` + sync table structures as well
#!/bin/bash
# Fix for cron incorrect paths
HOME='/root'
# Sync database1 to database2
SRC_DB='database1'
DST_DB='database2'
EXCLUDE_TABLES=(table1 table2)
[Adblock Plus 2.0]
! Version:
! Title: GeoList
! Last modified:
! Expires: 4 days (update frequency)
! Homepage: https://longman.me/
! Licence: https://longman.me/licence.html
!
! Please report any unblocked adverts or problems
! in the gist (https://gist.github.com/akalongman/91b45a1f4871afdfa79d83b0e3d05d1b)
@akalongman
akalongman / build.gradle
Created March 20, 2015 10:21
Android build.gradle example
apply plugin: 'com.android.application'
def getBuildDate() {
def date = new Date()
def formattedDate = date.format("yyyy-MM-dd'T'HH:mm:ss'Z'")
return formattedDate
}
def BUILD_DATE = getBuildDate()
android {
@akalongman
akalongman / php-soap.php
Created April 1, 2015 08:44
PHP soap client example
ini_set('soap.wsdl_cache_enabled', 0);
ini_set('soap.wsdl_cache_ttl', 900);
ini_set('default_socket_timeout', 15);
$params = array('param1'=>$param1);
$wsdl = 'http://service_url/method?WSDL';