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 February 18, 2024 02:09
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.
{"cedexis":{"decisions":[[1441238400,20378434,21649296,14007230,2366544],[1441324800,19164140,20232238,12351009,2452321],[1441411200,14419763,18092316,9751359,2390992],[1441497600,14124210,17763950,10090408,2452962],[1441584000,15519297,20675735,12677908,2296402],[1441670400,18627944,22500936,12606801,2312167],[1441756800,20559604,22882231,12041501,2373608],[1441843200,21270786,21992590,11577049,2483104],[1441929600,19031991,22714636,10280320,2465854],[1442016000,15055112,19374852,8080871,2403583],[1442102400,14950224,18584024,8005491,2223308],[1442188800,19266799,22463882,10287510,2068267],[1442275200,19461317,22866753,10410350,2329154],[1442361600,18991094,21951093,12871285,2328794],[1442448000,19204064,21548966,12490249,1658183],[1442534400,17156570,21679638,11994314,1487466],[1442620800,14114964,17851014,9581291,1195731],[1442707200,14080353,17263689,9303062,1034504],[1442793600,18352013,21123565,12181639,1210545],[1442880000,18667089,21380540,12568636,1218016],[1442966400,18019359,21901196,12337009,12281
@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