Skip to content

Instantly share code, notes, and snippets.

Stanislav Popov popstas

Block or report user

Report or block popstas

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
popstas / ubuntu-preseed.txt
Last active Oct 11, 2017
View ubuntu-preseed.txt
d-i debian-installer/locale string en_US.UTF-8
d-i debian-installer/splash boolean false
d-i console-setup/ask_detect boolean false
d-i console-setup/layoutcode string us
d-i console-setup/variantcode string
choose-mirror-bin mirror/http/proxy string
d-i debian-installer/language string en
d-i debian-installer/country string RU
d-i console-setup/ask_detect boolean false
d-i keyboard-configuration/xkb-keymap select us
popstas / cloudSettings
Last active Jan 12, 2020
Visual Studio Code Settings Sync Gist
View cloudSettings
popstas@popstas-home:~/projects/_temp% sysbench --test=fileio prepare && sysbench --test=fileio --file-test-mode=rndrw run && sysbench --test=fileio cleanup

WARNING: the --test option is deprecated. You can pass a script name or path on the command line without any options.
sysbench 1.0.7 (using bundled LuaJIT 2.1.0-beta2)

Running the test with following options:
Number of threads: 1
Initializing random number generator from current time
View zsh_mac.yml
- hosts: localhost
remote_user: popstas
- { name: viasite-ansible.zsh, zsh_user: popstas }
popstas /
Last active Aug 22, 2018
Install LAMP with ansible from geerlingguy
sudo apt-get install -y python-dev python-pip
sudo pip install ansible
sudo ansible-galaxy install geerlingguy.apache geerlingguy.mysql geerlingguy.php
ansible-playbook -i 'localhost,' -c local lamp.yml
popstas /
Created Mar 26, 2017
Build docker and vagrant images with packer and ansible
#!/bin/bash -eux
# Install Ansible repository.
apt -y update && apt-get -y upgrade
apt -y install software-properties-common
apt-add-repository ppa:ansible/ansible
# Install Ansible.
apt -y update
apt -y install ansible
View gulpfile.js
'use strict';
var argv = require('yargs').argv;
var autoprefixer = require('autoprefixer');
var cleanCSS = require('gulp-clean-css');
var concat = require('gulp-concat');
var debug = require('gulp-debug');
var duration = require('gulp-duration');
var gulp = require('gulp');
var gulpif = require('gulp-if');
popstas /
Created Feb 28, 2016
Measure average script time execution
set -eu
if [ "$#" != 1 ] && [ "$#" != 2 ]; then
echo "Usage:
# run 'command' with 5 cycles
average 'command'
# run 'command' with 3 cycles
popstas /
Last active Feb 21, 2016
Drupal Digest from Habrahabr, best for novices
# blog post (rus) -
# usage: just run it!
set -euo pipefail
get_phpstorm_url() {
url=$(curl -s "$download_page" | grep -oE "http:\/\/[a-zA-Z0-9\.\/-]+\.dmg")
echo "$url"
You can’t perform that action at this time.