Skip to content

Instantly share code, notes, and snippets.

View serboox's full-sized avatar
👨‍💻
Who we are is but a stepping stone to what we can become.

Sergei serboox

👨‍💻
Who we are is but a stepping stone to what we can become.
  • @investing.com
  • Kyrgyzstan, Bishkek
View GitHub Profile
@serboox
serboox / compress.bash
Created May 19, 2020 18:13
Compress all *.mp4 files in the folder. Using FFmpeg.
#!/usr/bin/env bash
set +x
for file in *.mp4; do
if [[ $file == *'_new'* ]]; then
echo "----Pass file: ${file}----"
continue
fi
@serboox
serboox / prezto.sh
Created January 20, 2020 09:05 — forked from arvind-iyer/prezto.sh
Install prezto on ubuntu
#!/bin/bash
prezto.sh(){
clear
sudo apt-get install -y git
sudo apt-get update && sudo apt-get install -y zsh
# Get prezto
git clone --recursive https://github.com/sorin-ionescu/prezto.git ~/.zprezto
# Backup zsh config if it exists

Prerequisites

  • Intel processor

Installing

sudo apt-get install msr-tools linux-cpupower lm-sensors
@serboox
serboox / cpp
Created July 20, 2019 20:53
Сдвиги на примере кода С++
#include <iostream>
#include <bitset>
using namespace std;
int main()
{
/* 1) Если мы делаем сдвиг влево для положительного числа, мы можем получить отрицательное число
32:00000000000000000000000000000001->1
31:10000000000000000000000000000000->-2147483648
$ brew cask install google-cloud-sdk
$ gcloud compute instances create reddit-app-2 \
--boot-disk-size=10GB \
--image-family ubuntu-1604-lts \
--image-project=ubuntu-os-cloud \
--machine-type=g1-small \
--tags puma-server \
--metadata-from-file startup-script=install.sh \
--restart-on-failure