Skip to content

Instantly share code, notes, and snippets.

@aarsla
aarsla / keybase.md
Last active April 9, 2019 20:55
keybase.md

Keybase proof

I hereby claim:

  • I am aarsla on github.
  • I am aarsla (https://keybase.io/aarsla) on keybase.
  • I have a public key ASBmPbZkl2mWZPZeJBBen0aVZ2OwQYErc6FZd2OulDZ6bAo

To claim this, I am signing this object:

@aarsla
aarsla / suricata.index
Last active July 26, 2016 12:45
Elasticsearch Suricata index template
{
"template": "suricata-*",
"settings": {
"index": {
"number_of_shards": "2",
"number_of_replicas": "1"
}
},
"mappings": {
"SuricataIDPS": {
@aarsla
aarsla / asterisk-cdr-template
Created July 26, 2016 12:44
Elasticsearch Asterisk CDR Template
{
"order": 0,
"template": "cdr-*",
"settings": {
"index": {
"number_of_shards": "2",
"number_of_replicas": "1"
}
},
"mappings": {
@aarsla
aarsla / .gitconfig
Created July 12, 2017 11:24
Git alias
[alias]
co = checkout
ci = commit
st = status
br = branch
hist = log --pretty=format:'%h %ad | %s%d [%an]' --graph --date=short
type = cat-file -t
dump = cat-file -p
@aarsla
aarsla / Git.php
Last active July 26, 2017 07:20
Twig Filter - git commit/branch
<?php
namespace App\Twig\Extension;
class GitExtension extends \Twig_Extension
{
public function getFilters()
{
return array(
new \Twig_SimpleFilter('gitVersion', array($this, 'showCustomGitVersion')),
@aarsla
aarsla / Git.php
Last active July 26, 2017 07:20
Twig Function - git commit/branch
<?php
namespace AppBundle\Twig\Extension;
class GitExtension extends \Twig_Extension
{
public function getFunctions()
{
return array(
new \Twig_SimpleFunction('gitVersion', array($this, 'gitVersion')),
@aarsla
aarsla / gist:d37621a92b797e53aff38fd7913518a2
Created January 23, 2018 22:55
MariaDB reset root password
sudo /etc/init.d/mysql stop
sudo mysqld_safe --skip-grant-tables --skip-networking &
FLUSH PRIVILEGES;
USE mysql;
UPDATE user SET plugin="";
UPDATE user SET password=PASSWORD('MyNewPass') WHERE User='root' AND Host = 'localhost';
FLUSH PRIVILEGES;
@aarsla
aarsla / gist:ed2cecd352e0367e96473a55e8380b0b
Created September 10, 2018 09:19
Git completion .bash_profile
if [ -f $(brew --prefix)/etc/bash_completion ]; then
. $(brew --prefix)/etc/bash_completion
fi
# Git branch in prompt.
parse_git_branch() {
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/'
}
{
"$schema": "https://raw.githubusercontent.com/jsonresume/resume-schema/v1.0.0/schema.json",
"basics": {
"name": "Aid Arslanagić",
"label": "Senior Software Engineer",
"image": "https://raw.githubusercontent.com/aarsla/resume/master/avatar.png",
"picture": "https://raw.githubusercontent.com/aarsla/resume/master/avatar.png",
"email": "[email protected]",
"url": "https://github.com/aarsla",
"summary": "Application Developer and Systems Engineer in a wide variety of business applications. Particularly interested in IT systems design and applications development. In excess of 15 years of experience in a software development environment. Ability to come up fast on any learning curve and develop a deep and thorough understanding of the problem at hand. In-depth knowledge of all phases of analysis, design, data modeling, and development. Excellent programming knowledge and architectural skills, using high-level structured and object languages and technologies. Superior problem-solving