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 / gulpfile.json
Created September 23, 2015 16:59
Gulp file example
var gulp = require('gulp');
var minifyCss = require('gulp-minify-css');
var gulpConcat = require('gulp-concat');
var uglify = require('gulp-uglify');
var notify = require('gulp-notify');
var cssFiles = [
'public_html/res/css/bootstrap.css',
'public_html/res/css/datetimepicker.css',
'public_html/res/css/datepicker.css',
@akalongman
akalongman / ubuntu-15.10.md
Last active February 10, 2016 08:18
Ubuntu 15.10
@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',
# @author Avtandil Kikabidze
# @copyright Copyright (c) 2008-2016, Avtandil Kikabidze aka LONGMAN (akalongman@gmail.com)
# @link http://longman.me
# @license The MIT License (MIT)
import sublime
import sublime_plugin
import Git.git
import functools
@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;
@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)

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"/>