Skip to content

Instantly share code, notes, and snippets.

View axper's full-sized avatar

Babken Vardanyan axper

  • Yerevan, Armenia
View GitHub Profile
:: Synchronizing package databases...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0curl: (7) Couldn't connect to server
100 124k 100 124k 0 0 11002 0 0:00:11 0:00:11 --:--:-- 31349
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0curl: (7) Couldn't connect to server
0 0 0 0 0 0 0 0 --:--:-- 0:00:10 --:--:-- 0
curl: (22) The requested URL returned error: 404 Not Found
@axper
axper / gist:580f1c3164874dfab1dea28d28998372
Created June 23, 2017 08:31
/etc/netdata/python.d/mysql.conf
tcp_root:
name : 'local'
user : 'root'
pass : 'root'
host : '10.20.10.35'
port : '3306'
BEGIN mysql_local.net 0
SET Bytes_received = 9384614
SET Bytes_sent = 207033427
END
BEGIN mysql_local.queries 0
SET Queries = 53915
SET Questions = 53492
SET Slow_queries = 0
END
BEGIN mysql_local.handlers 0
@axper
axper / mpi_sample.c
Created December 26, 2014 18:17
mpi sample code
#include <mpi.h>
#include <stdio.h>
void errhandler_function(MPI_Comm * communicatior, int * error_code, ...) {
printf("ERROR HANDLED: %d", *error_code);
MPI_Abort(*communicatior, *error_code);
}
int main(int argc, char** argv)
{
@axper
axper / rsa.asm
Last active August 29, 2015 14:07
rsa implementation in nasm (decompiled from https://github.com/pantaloons/RSA)
global modpow
global jacobi
global solovayPrime
global probablePrime
global randPrime
global gcd
global randExponent
global inverse
global readFile
global encode
@axper
axper / PKGBUILD
Created October 4, 2014 07:10
pylzma PKGBUILD
# Maintainer: Penguin <TGates81.at.gmail.dot.com>
# Contributor: Babken Vardanyan <483ken 4T gma1l
pkgname=pylzma
pkgver=0.4.5
pkgrel=1
pkgdesc="Platform independent python bindings for the LZMA compression library"
url="http://www.joachim-bauch.de/projects/python/pylzma"
license=('LGPL')
arch=('i686' 'x86_64')
@axper
axper / PKGBUILD
Created August 18, 2014 14:36
metasploit-git pkgbuild
# Maintainer: Babken Vardanyan - axper <483ken 4t gma1l
# Contributor: Sabart Otto - Seberm <seberm[at]seberm[dot]com>
# Contributor: Tobias Veit - nIcE <m.on.key.tobi[at]gmail[dot]com>
# Contributor: al.janitor <al.janitor [at] sdf [dot] org>
pkgname=metasploit-git
pkgver=20140818.25928.c5c63f4
pkgrel=1
pkgdesc='An advanced platform for using exploits (git version)'
arch=('any')
@axper
axper / PKGBUILD
Created August 16, 2014 06:44
metasploit 4.9.3 PKGBUILD
# Maintainer: Babken Vardanyan - axper <483ken 4t gma1l
# Contributor: Sabart Otto - Seberm <seberm[at]seberm[dot]com>
# Contributor: Tobias Veit - nIcE <m.on.key.tobi[at]gmail[dot]com>
pkgname=metasploit
pkgver=4.9.3
pkgrel=1
pkgdesc="An advanced open-source platform for developing, testing, and using exploit code"
depends=('ruby1.9' 'libpcap' 'postgresql-libs')
optdepends=('java-runtime: msfgui' 'dradis' 'ruby-pg: database support') #sqlite
@axper
axper / report.tex
Created July 24, 2014 03:34
tex report template in armenian
\documentclass[a4paper,10pt]{article}
\usepackage{polyglossia}
\newfontfamily{\armenianfont}{DejaVu Sans}
\newfontfamily{\armenianfonttt}{DejaVu Sans Mono}
\newfontfamily{\armenianfontsc}{DejaVu Sans Mono}
\setmainlanguage{armenian}
\usepackage{datetime}
@axper
axper / random.tex
Created July 23, 2014 18:38
latex random number example (lcg package)
\documentclass{article}
\usepackage{polyglossia}
\usepackage{tabularx}
\usepackage{fullpage}
\usepackage[seed=10]{lcg}
\usepackage{calc}
% Armenian
\newfontfamily{\armenianfont}{DejaVu Serif}
\newfontfamily{\armenianmathfont}{DejaVu Serif}