Skip to content

Instantly share code, notes, and snippets.

View axper's full-sized avatar

Babken Vardanyan axper

  • Yerevan, Armenia
View GitHub Profile
@axper
axper / PKGBUILD
Created February 10, 2014 10:43
vimperator-hg PKGBUILD
# Maintainer: Michael Witten <mfwitten>
# Contributor: Axpere Jan <483ken _@AT@_ gmail>
# Contributor: Gustavo Dutra <mechamo@gustavodutra.com>
pkgname=vimperator-hg
pkgver=r4791.4b30fbfb2ee3
pkgrel=1
pkgdesc="Make firefox look and behave like Vim (hg version)"
arch=('any')
url="http://www.vimperator.org/vimperator"
@axper
axper / recursive_binary_search.cpp
Created May 22, 2014 16:59
Microsoft C++ homework for May 20
#include <iostream>
using namespace std;
/*
* This function recursively searches for number lookup in a sorted array
* which has no repeating values.
*
* Parameters:
* array: The sorted array to search in
@axper
axper / whois.py
Created July 23, 2014 17:55
Print whois info about given IP address
#! /usr/bin/env python3
# -*- coding: utf-8 -*-
# Requirements:
# 1. Python 3
# 2. pip3 install ipwhois
from ipwhois import IPWhois
from ipwhois.utils import get_countries
@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}
@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 / 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 / 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 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 / 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 / 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)
{