Steps to install node_exporter
-
Add user for node_exporter
sudo useradd --no-create-home --shell /bin/false node_exporter
events { | |
worker_connections 4096; ## Default: 1024 | |
} | |
http { | |
server { | |
listen 80; | |
server_name localhost; | |
gzip on; |
const axios = require('axios') | |
const instance = axios.create({ | |
baseURL: 'https://api.nimiqx.com/', | |
params: { | |
api_key: process.env.NIMIQX_KEY | |
}, | |
}) | |
let NimiqX = new Proxy({}, { |
var api_request = function (endpoint, method, data, callback) { | |
API.cookies.getAll({url: _API.host}).then(function (cookies) { | |
if(!cookies){ | |
make_request(); | |
return; | |
} | |
if(cookies.length === 0){ | |
make_request(); | |
return; | |
} |
#!/usr/bin/env python | |
import os | |
import subprocess | |
from xml.dom import minidom | |
from pprint import pprint | |
import git | |
import urllib, json | |
import re | |
import wget | |
import zipfile |
"websocket": { | |
"start_embedded_server": true, | |
"server_url": "0.0.0.0:4000", | |
"remote_control": true | |
} |
<?php | |
// base class with member properties and methods | |
class BBScraper | |
{ | |
var $baseUrl; | |
private $user; | |
private $sid; | |
public $fetchedTopics = array(); | |
public $topicReplys = array(); |
#!/bin/bash | |
BRANCH="stable8" | |
ROOTDIR="$PWD" | |
WWWUSER="www-data" | |
WWWGROUP="www-data" | |
if [ $(id -u) != 0 ]; then | |
printf "**************************************\n" | |
printf "* Error: You must run this with sudo. *\n" | |
printf "**************************************\n" | |
exit 0 |
poiTypes = { | |
shop = ['supermarket','bakery','car','stationery','hairdresser','mobile_phone','convenience','newsagent','kiosk','computer','clothes','variety_store','hearing_aids','florist','handicraft','candle','antique','pet','massage','electronics','laundry','doityourself','sports','jewelry','musical_instrument','chemist','shoes','beverages','toys','fishing','copyshop','beauty','bag','paint','bicycle','communication','furniture','alcohol','deli','optician','books','car_repair','butcher','outdoor','motorcycle','estate_agent','photo','gift','travel_agency','tea','wine','medical_supply','department_store','dry_cleaning','video','second_hand','greengrocer','erotic','curtain','haberdashery','garden_centre','art','fashion','bags','accessoires','confectionery','ice_cream','organic','music','boutique','interior','kitchen','vacant','tattoo','mall','camera','gallery','rc_models','coffee','bicycle_rental','photographer','ticket','charity','Shisha','hats','funeral_directors','locksmith','fabric','hardware','shoe_r |
function make_draggable(elements) { | |
/* Elements is a jquery object: */ | |
elements.draggable({ | |
/* containment: 'parent',*/ | |
start: function (evt, ui) { | |
ui.helper.css('z-index', ++zIndex); | |
var zoom = $('#notes').css('zoom'); | |
pointerY = (evt.pageY - $('#notes').offset().top) / zoom - parseInt($(evt.target).css('top')); |