Skip to content

Instantly share code, notes, and snippets.

View zhuharev's full-sized avatar
🏠
Working from home

Kirill Zhuharev zhuharev

🏠
Working from home
View GitHub Profile
syntax = "proto3";
import "google/api/annotations.proto";
import "google/protobuf/timestamp.proto";
package love;
message User {
int64 id = 1;
string first_name = 2;
@zhuharev
zhuharev / append.txt
Last active January 7, 2018 19:02
i3 config
exec --no-startup-id xsetroot -solid "#333333"
exec --no-startup-id xinput set-prop 'SynPS/2 Synaptics TouchPad' 'libinput Tapping Enabled' 1
exec --no-startup-id setxkbmap -layout us,ru -option 'grp:toggle,caps:ctrl_modifier'
sudo apt-get install \
apt-transport-https \
ca-certificates \
curl \
software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo apt-key fingerprint 0EBFCD88
sudo add-apt-repository \
"deb [arch=amd64] https://download.docker.com/linux/ubuntu \
$(lsb_release -cs) \
@zhuharev
zhuharev / plan.md
Created November 19, 2017 21:00
Zeus

-[ ] Платёжные системы

@zhuharev
zhuharev / low-q-video.sh
Created October 20, 2017 19:10
Generate low quality video in the folder
#!/bin/bash
for i in *.MP4;
do name=`echo $i | cut -d'.' -f1`;
echo $name;
ffmpeg -i "$i" -filter:v scale=-420:240 -c:a copy "${name}-thumb.mp4";
done
<?php
include __DIR__.'/vendor/autoload.php';
//require __DIR__.'/vendor/mgp25/instagram-php/src/Instagram.php';
/////// CONFIG ///////
$username = 'zhuharev';
$password = 'x';
$debug = true;
@zhuharev
zhuharev / lex
Created September 29, 2016 11:38
main.cs
using System;
namespace ConsoleApplication1
{
class ConsoleApplication1
{
public static void Main (string[] args)
{
int sum = 0;
@zhuharev
zhuharev / XmlHTTPRequest.js
Last active April 17, 2016 20:48
JavaScript test suport functional
function xhrSupport() {
var xhr = new XMLHttpRequest();
return !!('onprogress' in xhr);
}
@zhuharev
zhuharev / main.cs
Created December 13, 2015 13:44
bin sort c#
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication22 {
class App {
static void Main(string[] args)
{
InsertBin();
@zhuharev
zhuharev / main.cs
Created December 7, 2015 19:54
lab
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication22
{
class Test
{
static void sort(int[] arr)