Skip to content

Instantly share code, notes, and snippets.

cd ~/Downloads

wget http://repo.zabbix.com/zabbix/3.2/ubuntu/pool/main/z/zabbix-release/zabbix-release_3.2-1+xenial_all.deb

dpkg -i zabbix-release_3.2-1+xenial_all.deb

apt-get update

should add /etc/apt/sources.list.d/zabbix.list

Keybase proof

I hereby claim:

  • I am jafri on github.
  • I am jafri (https://keybase.io/jafri) on keybase.
  • I have a public key whose fingerprint is ACA9 127D 7AC5 484F 4DEC 0058 18A7 551A C703 4916

To claim this, I am signing this object:

#!/usr/bin/python
from argparse import Namespace
from pyjfuzz.lib import *
import requests
from thread import start_new_thread
def do_req(payload):
r = requests.post("http://abp-node.eoscalgary.io/v1/chain/get_code", data=payload)
@jafri
jafri / mongo.sh
Last active July 9, 2018 15:08
Mongo Plugin Installation
git clone -b release/1.1 https://github.com/EOSIO/eos.git
cd eos
git submodule update --init --recursive
./eosio_build.sh
cd build
make install
@jafri
jafri / install_eos_mainnet_macOS.txt
Created September 1, 2018 10:05 — forked from tpmccallum/install_eos_mainnet_macOS.txt
EOS Installation on macOS (High Sierra) 10.13.6 - Also perform voting for EOS BP
# EOS source
cd ~
git clone https://github.com/EOSIO/eos.git
cd eos
git submodule update --init --recursive
# Deps
brew install MongoDB
brew install Doxygen
@jafri
jafri / kafka_topic_msg_count.sh
Last active September 6, 2018 08:20 — forked from clarksun/kafka_topic_msg_count.sh
get kafka topic message count
bin/kafka-run-class.sh kafka.tools.GetOffsetShell --broker-list localhost:9092 --topic eos_accept_topic --time -1 --offsets 1 | awk -F ':' '{sum += $3} END {print sum}'
@jafri
jafri / en.js
Created September 20, 2018 04:57
English i18n
const en = {
account: {
// Page
loading: 'Loading',
accountNotFound: 'Account Not Found',
cannotFindAccount: 'Cannot find account',
account: 'Account',
smartContract: 'Smart Contract',
resourceBreakdown: 'Resource Breakdown',
votesAndProxy: 'Votes and Proxy',
#include <utility>
#include <vector>
#include <string>
#include <eosiolib/eosio.hpp>
#include <eosiolib/time.hpp>
#include <eosiolib/asset.hpp>
#include <eosiolib/contract.hpp>
#include <eosiolib/types.hpp>
#include <eosiolib/transaction.hpp>
#include <eosiolib/crypto.h>
@jafri
jafri / getEosTokens
Created October 19, 2018 02:41
getEosTokens
async function getEosTokens () {
return new Promise(async (resolve, reject) => {
let githubTokens = await axios.get('https://raw.githubusercontent.com/eoscafe/eos-airdrops/master/tokens.json').then(result => result.data)
let { result: chainceTokens } = await axios.get('https://dexeos.io/api/v1/token').then(result => result.data).catch(() => ({result: []}))
let { result: eosUsd } = await axios.get('https://dexeos.io/api/v1/price/usdt').then(result => result.data).catch(() => ({result: 0}))
let promises = []
for (let i = 0; i < githubTokens.length; i++) {
let chainceToken = chainceTokens.find(chainceToken => githubTokens[i].symbol === chainceToken.symbol)
@jafri
jafri / dex.vue
Created November 4, 2018 09:27
deex
<template>
<div>
<iframe src="http://192.168.1.4:3500" />
</div>
</template>
<script>
import { mapState } from 'vuex'
export default {