Skip to content

Instantly share code, notes, and snippets.

Avatar

Babken Vardanyan axper

  • Yerevan, Armenia
View GitHub Profile
View gist:67cef105e6d808670ed6fd5185dd7fcf
:: 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 Jun 23, 2017
/etc/netdata/python.d/mysql.conf
View gist:580f1c3164874dfab1dea28d28998372
tcp_root:
name : 'local'
user : 'root'
pass : 'root'
host : '10.20.10.35'
port : '3306'
View gist:b3cb999ab571fe314fcfc3d93d46702e
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 Dec 26, 2014
mpi sample code
View mpi_sample.c
#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 Aug 29, 2015
rsa implementation in nasm (decompiled from https://github.com/pantaloons/RSA)
View rsa.asm
global modpow
global jacobi
global solovayPrime
global probablePrime
global randPrime
global gcd
global randExponent
global inverse
global readFile
global encode
@axper
axper / PKGBUILD
Created Oct 4, 2014
pylzma PKGBUILD
View 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 Aug 18, 2014
metasploit-git pkgbuild
View 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 Aug 16, 2014
metasploit 4.9.3 PKGBUILD
View 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 Jul 24, 2014
tex report template in armenian
View report.tex
\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 Jul 23, 2014
latex random number example (lcg package)
View random.tex
\documentclass{article}
\usepackage{polyglossia}
\usepackage{tabularx}
\usepackage{fullpage}
\usepackage[seed=10]{lcg}
\usepackage{calc}
% Armenian
\newfontfamily{\armenianfont}{DejaVu Serif}
\newfontfamily{\armenianmathfont}{DejaVu Serif}
You can’t perform that action at this time.