To see the current volume, run alsamixer. Let's consider the current volume shown is 40.
Run pacmd list-sources.
| #!/usr/bin/env bash | |
| CURRENT_BRANCH=$(git rev-parse --abbrev-ref HEAD) | |
| ANCESTOR=$(git merge-base $CURRENT_BRANCH master) | |
| OIFS=$IFS | |
| IFS=$'\n' FILES=($(git diff --name-status $ANCESTOR HEAD | grep -E '^[AM].+\.php$' | awk '{print $2}')) | |
| IFS=$OIFS | |
| php-lint.sh "${FILES[@]}" |
| sudo dpkg --add-architecture i386 | |
| sudo apt update | |
| cd ~/Downloads | |
| curl -L -o teamviewer_i386.deb "https://download.teamviewer.com/download/teamviewer_i386.deb" | |
| sudo apt install -y ./teamviewer_i386.deb | |
| rm teamviewer_i386.deb |
| #!/usr/bin/env bash | |
| VERSION_PATTERN="([0-9]+\.[0-9]+\.[0-9]+)" | |
| case "${1}" in | |
| "phpstorm") | |
| TOOL_NAME="PhpStorm" | |
| INSTALL_DIR="/opt/phpstorm" | |
| case "${2}" in | |
| "eap") |
| #!/bin/bash | |
| # | |
| # Run docker-compose in a container | |
| # | |
| # This script will attempt to mirror the host paths by using volumes for the | |
| # following paths: | |
| # * $(pwd) | |
| # * $(dirname $COMPOSE_FILE) if it's set | |
| # * $HOME if it's set | |
| # |
| # php-5.5 | |
| FROM daccbr/php:5.5-fpm-alpine | |
| RUN addgroup -g 1000 sumup && adduser -u 1000 -h /home/sumup -H -G sumup -s /bin/false -D sumup | |
| RUN apk --update add openssh-client libtool make grep autoconf gcc libc-dev zlib-dev | |
| RUN cd /tmp \ | |
| && apk --update add cyrus-sasl-dev libmemcached-dev \ | |
| && curl -L --progress-bar -o "php-memcached-2.2.0.tar.gz" "https://github.com/php-memcached-dev/php-memcached/archive/2.2.0.tar.gz" \ |
| <?php | |
| class ProtectedMethodTest extends PHPUnit_Framework_TestCase | |
| { | |
| public function testProtectedMethod() | |
| { | |
| $method = self::getMethod( | |
| 'MyClass', | |
| 'getProtectedMethodReturnsTrue' | |
| ); |
| 2015-02-03 10:23:36 -0200 | |
| /usr/local/opt/php56/bin/phpize | |
| Configuring for: | |
| PHP Api Version: 20131106 | |
| Zend Module Api No: 20131226 | |
| Zend Extension Api No: 220131226 |
| #!/bin/bash | |
| # POMODORO | |
| # usage: pomo | pomo short | pomo long | |
| SLEEPTIME=1500 | |
| TITLE="POMODOR0 :)" | |
| SUBTITLE="Take a Break :)" | |
| if [ "$1" = "long" ]; then |
| #/usr/bin/env bash | |
| # MIT © Sindre Sorhus - sindresorhus.com | |
| # git hook to run a command after `git pull` or `git merge` if a specified file was changed | |
| # Run `chmod +x post-merge` to make it executable then put it into `.git/hooks/`. | |
| changed_files="$(git diff-tree -r --name-only --no-commit-id ORIG_HEAD HEAD)" | |
| check_run() { | |
| echo "$changed_files" | grep --quiet "$1" && eval "$2" |