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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"lastUpload":"2022-01-23T18:42:09.724Z","extensionVersion":"v3.4.3"} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
- hosts: localhost | |
remote_user: popstas | |
roles: | |
- { name: viasite-ansible.zsh, zsh_user: popstas } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt-get install -y python-dev python-pip | |
sudo pip install ansible | |
sudo ansible-galaxy install geerlingguy.apache geerlingguy.mysql geerlingguy.php | |
wget https://gist.githubusercontent.com/popstas/61a5ddce08fe1a269f62576808cee54e/raw/de7bceea261f5a76fd88d8673046e5e18be7e35a/lamp.yml | |
ansible-playbook -i 'localhost,' -c local lamp.yml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'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'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -eu | |
if [ "$#" != 1 ] && [ "$#" != 2 ]; then | |
echo "Usage: | |
# run 'command' with 5 cycles | |
average 'command' | |
# run 'command' with 3 cycles |
Создаем пользовательскую AJAX-команду - http://www.drupaler.by/lessons/sozdaem-polzovatelskuyu-ajax-komandu
Пока не знаете, что такое хуки? Эта заметка с примером простого модуля специально для начинающих - https://3cwebservices.com/drupal/introduction-drupal-hooks (eng)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# blog post (rus) - http://blog.popstas.ru/blog/2016/01/17/automacic-update-phpstorm-eap-on-mac-os/ | |
# usage: just run it! | |
set -euo pipefail | |
get_phpstorm_url() { | |
download_page="https://confluence.jetbrains.com/display/PhpStorm/PhpStorm+Early+Access+Program" | |
url=$(curl -s "$download_page" | grep -oE "http:\/\/[a-zA-Z0-9\.\/-]+\.dmg") | |
echo "$url" |