Skip to content

Instantly share code, notes, and snippets.

View waqaskhan137's full-sized avatar
🎯
Focusing

Waqas Rana waqaskhan137

🎯
Focusing
View GitHub Profile
//+------------------------------------------------------------------+
//| test.mq4 |
//| Copyright 2022, MetaQuotes Software Corp. |
//| https://www.mql5.com |
//+------------------------------------------------------------------+
#property copyright "Copyright 2022, MetaQuotes Software Corp."
#property link "https://www.mql5.com"
#property version "1.00"
#property strict
//+------------------------------------------------------------------+
apt-clone
base-files
base-passwd
bash
chroma
cloud-init
dash
dbeaver-ce
dbus-x11
diffutils
[agent]
interval = "60s"
debug = true
hostname = "10.32.7.170"
round_interval = true
flush_interval = "10s"
flush_jitter = "0s"
collection_jitter = "0s"
metric_batch_size = 1000
metric_buffer_limit = 10000
[global_tags]
# Configuration for telegraf agent
[agent]
interval = "10s"
debug = false
hostname = "server-hostname"
round_interval = true
flush_interval = "10s"
@waqaskhan137
waqaskhan137 / Telegraf Dashboard.json
Last active June 2, 2020 12:42
Telegraf Dashboard
{
"annotations": {
"list": [
{
"$$hashKey": "object:25",
"builtIn": 1,
"datasource": "-- Grafana --",
"enable": true,
"hide": true,
"iconColor": "rgba(0, 211, 255, 1)",
May 13 19:15:03 pc2-VirtualBox Keepalived_vrrp[4069]: bogus VRRP packet received on eth0 !!!
May 13 19:15:03 pc2-VirtualBox Keepalived_vrrp[4069]: VRRP_Instance(VI_1) ignoring received advertisment...
May 13 19:15:04 pc2-VirtualBox Keepalived_vrrp[4069]: ip address associated with VRID not present in received packet : 192.168.1.129
May 13 19:15:04 pc2-VirtualBox Keepalived_vrrp[4069]: one or more VIP associated with VRID mismatch actual MASTER advert
May 13 19:15:04 pc2-VirtualBox Keepalived_vrrp[4069]: bogus VRRP packet received on eth0 !!!
May 13 19:15:04 pc2-VirtualBox Keepalived_vrrp[4069]: VRRP_Instance(VI_1) ignoring received advertisment...
May 13 19:15:05 pc2-VirtualBox Keepalived_vrrp[4069]: ip address associated with VRID not present in received packet : 192.168.1.129
May 13 19:15:05 pc2-VirtualBox Keepalived_vrrp[4069]: one or more VIP associated with VRID mismatch actual MASTER advert
May 13 19:15:05 pc2-VirtualBox Keepalived_vrrp[4069]: bogus VRRP packet received on eth0 !!!
May 13 19:15:05 pc2-V
make -C keepalived install
make[1]: Entering directory `/home/pc-1/keepalived-1.2.16/keepalived'
install -d /usr/local/sbin
install -m 700 ../bin/keepalived /usr/local/sbin/
install -d /usr/local/etc/rc.d/init.d
install -m 755 etc/init.d/keepalived.init /usr/local/etc/rc.d/init.d/keepalived
install -d /usr/local/etc/sysconfig
install -m 644 etc/init.d/keepalived.sysconfig /usr/local/etc/sysconfig/keepalived
install -d /usr/local/etc/keepalived/samples
install -m 644 etc/keepalived/keepalived.conf /usr/local/etc/keepalived/
# Apache servers LB for lb.site.com
upstream lb-site.com {
server 192.168.200.85:8080; # virtual machine web1 site
server 127.0.0.1:8080 backup; # virtual machine web2 site
}
server {
listen 127.0.0.1:80; # public IP address of your server
server_name lb-site.com;
@waqaskhan137
waqaskhan137 / gist:731e3efc8ab3f939c2c7
Created April 21, 2015 06:30
googleDictionary.csv
en en 1994 1994 was a common year starting on Saturday of the Gregorian calendar, the 1994th year of the Common Era and Anno Domini designations, the 994th year of the 2nd millennium, 94th year of the 20th century, and 5th year of the 1990s decade. ...
en en 8000 8000 is the natural number following 7999 and preceding 8001.
8000 is the cube of 20, as well as the sum of four consecutive integers cubed, 11³ + 12³ + 13³ + 14³.
The fourteen tallest mountains on Earth, which exceed 8000 meters in height, are sometimes referred to as eight-thousanders.
en en abstract Existing in thought or as an idea but not having a physical or concrete existence.
en en acuity Sharpness or keenness of thought, vision, or hearing.
en en add Join (something) to something else so as to increase the size, number, or amount.
en en agglutinating Firmly stick or be stuck together to form a mass.
en en and Used to connect words of the same part of speech, clauses, or sentences that are to be taken jointly.
en en annotation A note of expla