Skip to content

Instantly share code, notes, and snippets.

Avatar
:octocat:
Loving Open Source

Avtandil Kikabidze akalongman

:octocat:
Loving Open Source
View GitHub Profile
View adblock-geolist.txt
[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)
View phpcs.xml
<?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"/>
View chrome-jsonview-theme.css
body {
white-space: pre;
font-family: monospace;
background: black;
color: #cccccc;
}
.property {
font-weight: bold;
color: #F060F0;
View keybase.md

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:

@akalongman
akalongman / mysql-sync.sh
Created Oct 18, 2017
Sync one database to second using `pt-table-sync` + sync table structures as well
View mysql-sync.sh
#!/bin/bash
# Fix for cron incorrect paths
HOME='/root'
# Sync database1 to database2
SRC_DB='database1'
DST_DB='database2'
EXCLUDE_TABLES=(table1 table2)
View gitlab-dark.css
/* 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 / tasker
Last active Apr 28, 2016
Tasker - Bash alias runner for fast development
View tasker
#!/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`
View gist:43831b5b60413f66b8cd1c020c9e5124
# @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 / gulpfile.js
Created Nov 4, 2015
Gulp task for uploading files to ftp/sftp server based on Sublime Text sftp-config.json configuration file
View gulpfile.js
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',