Skip to content

Instantly share code, notes, and snippets.

@AntonOrlov
AntonOrlov / .block
Last active February 28, 2024 14:57
Radial Bar Chart built with D3
license: gpl-3.0
@AntonOrlov
AntonOrlov / George_Washington.json
Last active May 15, 2017 15:51
Structure of wikidata item
{
"type": "item",
"id": "Q23",
"labels": {
"eo": {
"language": "eo",
"value": "George Washington"
},
"pl": {
"language": "pl",
@AntonOrlov
AntonOrlov / wp-debugger.php
Created October 13, 2016 15:23
Debugger for wordpress
<?php
/*
Plugin Name: Wordpress debugger
Plugin URI: mailto:4eladi@gmail.com
Description: Debug tools for wordpress
Author: Anton Orlov
Author URI: mailto:4eladi@gmail.com
Version: 1.0
*/
@AntonOrlov
AntonOrlov / install.sh
Last active July 5, 2023 10:29
3proxy installation script for CentOS 7.2.1511
yum install 3proxy;
curl https://gist.githubusercontent.com/AntonOrlov/a70aeed276d35dc9d77060b0a6c167ed/raw -o /etc/3proxy.cfg;
chmod 644 /etc/3proxy.cfg;
firewall-cmd --zone=public --add-port=8080/tcp --permanent
firewall-cmd --zone=public --add-port=9000/tcp --permanent
systemctl enable 3proxy.service;
systemctl restart 3proxy.service;
@AntonOrlov
AntonOrlov / sshd_config
Created September 14, 2016 11:58
sshd_config for disabled password authentification
# The default requires explicit activation of protocol 1
#Protocol 2
# HostKey for protocol version 1
#HostKey /etc/ssh/ssh_host_key
# HostKeys for protocol version 2
HostKey /etc/ssh/ssh_host_rsa_key
#HostKey /etc/ssh/ssh_host_dsa_key
HostKey /etc/ssh/ssh_host_ecdsa_key
HostKey /etc/ssh/ssh_host_ed25519_key
@AntonOrlov
AntonOrlov / 3proxy.cfg
Last active May 23, 2022 12:46
3proxy sample config file
daemon
nscache 65536
users mylogin:CL:mypassword
log /var/log/3proxy.log D
logformat "- +_L%t.%. %N.%p %E %U %C:%c %R:%r %O %I %h %T"
rotate 30
flush
auth strong
@AntonOrlov
AntonOrlov / tail.php
Last active September 16, 2016 11:00
Php web version of tail
<?php
if (isset($_GET['position'])) {
$handle = fopen('/myfile.log', 'r');
$content = stream_get_contents($handle, -1, intval($_GET['position']));
fseek($handle, 0, SEEK_END);
echo json_encode(array('position' => ftell($handle), 'content' => $content));
exit();
}
?>
<!doctype html>
@gabonator
gabonator / camera.md
Created June 4, 2016 13:48
Cheap chinese IP camera with H264 encoding based on Hisilicon 8M (Hi3518E) chip

Cheap chinese IP camera with H264 encoding based on Hisilicon 8M (Hi3518E) chip

Video stream url for VLC/DVR:

  • rtsp://192.168.1.93:554/user=admin&password=&channel=&stream=.sdp?real_stream--rtp-caching=100

Telnet access

  • telnet 192.168.1.10 23
  • Localhost login: root
  • Password: xmhdipc
@magnetikonline
magnetikonline / README.md
Last active March 14, 2024 22:48
IE 7/8/9/10/11 Virtual machines from Microsoft - Linux w/VirtualBox installation notes.