Skip to content

Instantly share code, notes, and snippets.

View jimaek's full-sized avatar
💭
Working as always

Dmitriy Akulov jimaek

💭
Working as always
View GitHub Profile
@jimaek
jimaek / installglobalping.sh
Last active March 15, 2025 12:00
Install Globalping probe on a fresh server - automated script
curl -fsSL https://get.docker.com -o get-docker.sh || wget https://get.docker.com -O get-docker.sh
sh get-docker.sh
systemctl start docker
systemctl enable docker
docker pull ghcr.io/jsdelivr/globalping-probe
docker stop globalping-probe
docker rm globalping-probe
docker run -d --log-driver local --network host --restart=always --name globalping-probe ghcr.io/jsdelivr/globalping-probe
4/15/2018 5:16:04 AM{"name":"app-log","hostname":"ed7e4d15633e","pid":30,"level":40,"file":{"id":null,"packageVersionId":"@update_id_package_version","filename":"/lang/de.html","sha256":null,"fetchAttemptsLeft":null},"msg":"Validation failed.","time":"2018-04-15T03:16:04.151Z","v":0}
4/15/2018 5:16:04 AM{"name":"app-log","hostname":"ed7e4d15633e","pid":30,"level":40,"file":{"id":null,"packageVersionId":"@update_id_package_version","filename":"/logo.png","sha256":null,"fetchAttemptsLeft":null},"msg":"Validation failed.","time":"2018-04-15T03:16:04.152Z","v":0}
4/15/2018 5:16:04 AM{"name":"app-log","hostname":"ed7e4d15633e","pid":30,"level":40,"file":{"id":null,"packageVersionId":"@update_id_package_version","filename":"/browsers/safari.png","sha256":null,"fetchAttemptsLeft":null},"msg":"Validation failed.","time":"2018-04-15T03:16:04.152Z","v":0}
4/15/2018 5:16:04 AM{"name":"app-log","hostname":"ed7e4d15633e","pid":30,"level":40,"file":{"id":null,"packageVersionId":"@update_id_package_version","filename":"/lan
3s delay
<script async src="https://rum.perfops.net/rum3.min.js"></script>
1s delay - Recommended
<script async src="https://rum.perfops.net/rum.min.js"></script>
PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.
64 bytes from 8.8.8.8: icmp_seq=1 ttl=58 time=17.5 ms
64 bytes from 8.8.8.8: icmp_seq=2 ttl=58 time=19.1 ms
64 bytes from 8.8.8.8: icmp_seq=3 ttl=58 time=15.9 ms
64 bytes from 8.8.8.8: icmp_seq=4 ttl=58 time=15.7 ms
--- 8.8.8.8 ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 1501ms
rtt min/avg/max/mdev = 15.722/17.081/19.127/1.373 ms
----------------------------------------------------------------------
CPU model : Westmere E56xx/L56xx/X56xx (Nehalem-C)
Number of cores : 1
CPU frequency : 2294.686 MHz
Total amount of ram : 992 MB
Total amount of swap : 2047 MB
System uptime : 6days, 15:35:33
Load average : 0.08, 0.03, 0.05
OS : CentOS 7.3.1611
Arch : x86_64 (64 Bit)
--- contention:
cycles/second=3392297175
953315909210 66 @ 0x4089ab 0x66142b 0x4638f1
# 0x4089ab runtime.chanrecv1+0x2b /usr/local/go/src/runtime/chan.go:356
# 0x66142b github.com/influxdata/influxdb/tsdb.(*Store).loadShards.func1+0x4b /root/go/src/github.com/influxdata/influxdb/tsdb/store.go:160
916060272210 270 @ 0x440d42 0x60c1f4 0x4638f1
# 0x440d42 runtime.selectgo+0x12 /usr/local/go/src/runtime/select.go:215
# 0x60c1f4 github.com/influxdata/influxdb/services/continuous_querier.(*Service).backgroundLoop+0x5d4 /root/go/src/github.com/influxdata/influxdb/services/continuous_querier/service.go:180
This file has been truncated, but you can view the full file.
@jimaek
jimaek / gist:db774ad134dceed094a6
Created May 24, 2015 13:03
Compile Nginx with Pagespeed module on Centos 6.5
yum update
yum install wget -y
wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
sudo rpm -Uvh epel-release-6*.rpm
yum install gcc-c++ pcre-dev pcre-devel zlib-devel make unzip vim openssl-devel
cd ~
NPS_VERSION=1.9.32.3
wget https://github.com/pagespeed/ngx_pagespeed/archive/release-${NPS_VERSION}-beta.zip
unzip release-${NPS_VERSION}-beta.zip
cd ngx_pagespeed-release-${NPS_VERSION}-beta/
#!/bin/sh
#
# nginx - this script starts and stops the nginx daemin
#
# chkconfig: - 85 15
# description: Nginx is an HTTP(S) server, HTTP(S) reverse \
# proxy and IMAP/POP3 proxy server
# processname: nginx
# config: /etc/nginx/nginx.conf
# pidfile: /var/run/nginx.pid
@jimaek
jimaek / gist:c0ff8ea084672dd43926
Created April 2, 2015 11:31
Install Python 2.7 on CentOS 6.5 to run cedexis.radar for jsDelivr
yum install gcc zlib-devel bzip2-devel openssl-devel xz-libs xz -y
wget http://www.python.org/ftp/python/2.7.8/Python-2.7.8.tar.xz
xz -d Python-2.7.8.tar.xz
tar -xvf Python-2.7.8.tar
cd Python-2.7.8
./configure --prefix=/usr/local
make
make altinstall
curl https://raw.githubusercontent.com/pypa/pip/master/contrib/get-pip.py | python2.7 -
pip2.7 install cedexis.radar