Skip to content

Instantly share code, notes, and snippets.

View artzub's full-sized avatar
😊

Artem Zubkov artzub

😊
View GitHub Profile
@artzub
artzub / main_ssl
Created December 25, 2013 09:19
https proxy to http
ssl_certificate /etc/nginx/ssl/cert.pem;
ssl_certificate_key /etc/nginx/ssl/cert.key;
server {
listen 443 ssl;
server_name <server_name>;
location / {
proxy_pass http://localhost:80;
@artzub
artzub / ConstsRus.pas
Created February 18, 2014 03:34
Localization Consts
unit ConstsRus;
interface
implementation
uses Windows, Consts;
procedure HookResourceString(ResStringRec: pResStringRec; NewStr: pChar) ;
var
This file has been truncated, but you can view the full file.
<?xml version="1.0"?>
<file_events>
<event date="1372777891000" author="Ben Noordhuis" filename="deps/v8/.gitignore" action="M" comment=""/>
<event date="1372777891000" author="Ben Noordhuis" filename="deps/v8/ChangeLog" action="M" comment=""/>
<event date="1372777891000" author="Ben Noordhuis" filename="deps/v8/DEPS" action="M" comment=""/>
<event date="1372777891000" author="Ben Noordhuis" filename="deps/v8/Makefile" action="M" comment=""/>
<event date="1372777891000" author="Ben Noordhuis" filename="deps/v8/OWNERS" action="M" comment=""/>
<event date="1372777891000" author="Ben Noordhuis" filename="deps/v8/build/android.gypi" action="M" comment=""/>
<event date="1372777891000" author="Ben Noordhuis" filename="deps/v8/build/common.gypi" action="M" comment=""/>
<event date="1372777891000" author="Ben Noordhuis" filename="deps/v8/build/shim_headers.gypi" action="A" comment=""/>
@artzub
artzub / canvas_utils.js
Last active August 29, 2015 14:05
Some utils for canvas for using on codepen.io or anywhere
var canvas_utils;
!function() {
canvas_utils = {
resources : {
images : {
particle : (function() {
particleImg = new Image();
// © https://github.com/rictic/code_swarm/blob/master/src/particle.png
particleImg.src = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAIAAAAlC+aJAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAA7DAAAOwwHHb6hkAAAAB3RJTUUH1wQUCC4hoGmo9QAACvlJREFUaN69mltz00gQhS3NSCMlNjEmBYTi//8zCipUsIMd6zKytA/fctKMDITArh5ctqxLX06fvsxkiz84sizLsizPc74sFotpmvSZHPO/fnLxb8jwbNH1yZc8z8dx1HedT+Q7nU6LxWIcxz+U+zkKIC7CSYEsy7z3CDoMQ5ZlRVFwXiJO0zRNE7eM4zgMA2dQ5g+dkD0dKlKA9xVFYZVJjouLixhj13V5nnvvh2GY+wQd+MQnz9DE/VL0PM/zPHfOIX2e50VROOecc4KKvb4sS+yti8uyxPZnH44m2OUZCmS/tDqPFmZkeL1MQBrH0XtPMKAGpkXz0+mUZRkQUgzIe1w8DIN89UcKIJNzTqIvFgvvPX7QgWeKorBBoovHcYwxEiGCO0eMcRxHzlur931v1X4+hJDMGl74wd15npdl6b333kt67/00TUALbhXSsL2FYlEU6GZlBYFzhX/PA5bap2mSlJiKoIRqnHOWSefPEdNbqPDX6XSKMSqK2raVJlmWxRjx0i+j4owC2Iy3OudkJ8wplsTMNishMZ/EQIzxLEdxP
@artzub
artzub / nginx.conf
Last active February 25, 2016 22:16 — forked from atma/nginx.conf
# Add to nginx.conf http section
map $http_upgrade $connection_upgrade {
default upgrade;
'' close;
}
@artzub
artzub / make.sh
Last active May 5, 2025 15:54
Install JetBrains Hub + YouTrack + UpSource + Nginx
#!/bin/bash
apt-get install mc htop git unzip wget curl -y
echo
echo "====================================================="
echo " WELCOME"
echo "====================================================="
echo
echo "Hub"
@artzub
artzub / backup_yhs.sh
Last active December 24, 2015 02:23
backup for youtrack and hub and upsource hard
#!/bin/bash
#####
# install yadisk
#
# $ echo "deb http://repo.yandex.ru/yandex-disk/deb/ stable main" | tee -a /etc/apt/sources.list.d/yandex.list > /dev/null && wget http://repo.yandex.ru/yandex-disk/YANDEX-DISK-KEY.GPG -O- | apt-key add - && apt-get update && apt-get install -y yandex-disk
#
# $ yandex-disk setup
#
# add cron command
@artzub
artzub / backup_gitlab.sh
Last active June 4, 2023 15:02
gitlab backupt to yadisk
#!/bin/bash
#####
# install yadisk
#
# $ echo "deb http://repo.yandex.ru/yandex-disk/deb/ stable main" | tee -a /etc/apt/sources.list.d/yandex.list > /dev/null && wget http://repo.yandex.ru/yandex-disk/YANDEX-DISK-KEY.GPG -O- | apt-key add - && apt-get update && apt-get install -y yandex-disk
#
# $ yandex-disk setup
#
# add cron command
@artzub
artzub / gist:a1bf06dcd044cc614ceb
Last active December 24, 2015 16:41
snippet from http://stackoverflow.com/posts/19818659/revisions for save object into file form chrome console
(function(console){
console.save = function(data, filename){
if(!data) {
console.error('Console.save: No data')
return;
}
if(!filename) filename = 'console.json'