Skip to content

Instantly share code, notes, and snippets.


Piotr Sobieszczański sobi3ch

Block or report user

Report or block sobi3ch

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
View basic.beanstalk-php72.packer.json
"variables": {
"aws_access_key": "",
"aws_secret_key": ""
"builders": [{
"type": "amazon-ebs",
"access_key": "{{user `aws_access_key`}}",
"secret_key": "{{user `aws_secret_key`}}",
"region": "eu-north-1",
sobi3ch / aws.setup-credencials
Created Sep 9, 2019
After downloading default user accessKeys.csv file from AWS console you can setup default profile with following bash function
View aws.setup-credencials
aws.setup-credencials ()
if test -f "$FILE"; then
echo "Reading from $FILE";
aws configure set aws_access_key_id $(tail -n1 $HOME/accessKeys.csv | cut -d, -f1);
aws configure set aws_secret_access_key $(tail -n1 $HOME/accessKeys.csv | cut -d, -f2);
echo "Missing $FILE";
View gist:74051b3e33967d2dd9dc7853bfb0799d
Started by user Piotr Sobieszczański
[Wed Jul 11 12:43:22 UTC 2018] Starting branch indexing...
ERROR: [Wed Jul 11 12:43:23 UTC 2018] Could not fetch branches from source 7aceea81-226f-4094-a96c-fbb8773cc981
java.lang.ClassCastException: jenkins.branch.buildstrategies.basic.TagBuildStrategyImpl cannot be cast to jenkins.scm.api.trait.SCMSourceTrait
at jenkins.scm.api.trait.SCMSourceContext.withTraits(
at com.cloudbees.jenkins.plugins.bitbucket.BitbucketSCMSource.retrieve(
at jenkins.scm.api.SCMSource._retrieve(
at jenkins.scm.api.SCMSource.fetch(
at jenkins.branch.MultiBranchProject.computeChildren(
sobi3ch / jenkins_config.groovy
Created Jul 11, 2018
Jenkins groovy configuration
View jenkins_config.groovy
def projects = [:];
projects['first-repo'] = [
name: 'First multibranch pipeline',
repo: 'repo-first'
projects['second-repo'] = [
name: 'Second multibranch pipeline',
repo: 'repo-second'
sobi3ch / google-chrome.desktop
Created Nov 10, 2017
Fix chrome unity launcher in Ubutu
View google-chrome.desktop
#Exec=/usr/bin/google-chrome-stable %U
Exec=/opt/google/chrome/chrome %U
sudo phpbrew install 5.4.45 \
+default \
+mysql \
+hash \
+iconv \
+gd \
+apxs2=/usr/bin/apxs -- \
--with-gd \
--enable-gd-natf \
--with-jpeg-dir \
sobi3ch / filed_types_D8_output.txt
Created Jan 12, 2016
Drupal 8 filed types with descriptions
View filed_types_D8_output.txt
Label: Comments
Machine name: comment
Descritpion: This field manages configuration and presentation of comments on an entity.
Provider: comment
Label: Date
Machine name: datetime
Descritpion: Create and store date values.
Provider: datetime
sobi3ch /
Last active Jul 28, 2017
Add this to your linux aliases file definition and use dots instead 'cd' command itself.
# This script production following aliases.
# alias ..='cd ../'
# alias ...='cd ../../'
# alias ....='cd ../../../'
# alias .....='cd ../../../../'
# alias ......='cd ../../../../../'
# alias .......='cd ../../../../../../'
# alias ........='cd ../../../../../../../'
# alias .........='cd ../../../../../../../../'
sobi3ch /
Created Jul 6, 2015
One line drush DB backup without cashe tables (defined in drushrc.php "common" in this example)
drush -y sql-dump --structure-tables-key=common --gzip --result-file=path/based/on/drupal/root/to/your/backup.sql
sobi3ch / gist:8c74fe7531000e4b4d9c
Created Jul 2, 2015
Drush import .sql.gz with progress bar
View gist:8c74fe7531000e4b4d9c
# Make sure you have pv and zcat already installed
pv my_database.sql.gz | zcat | drush sqlc
# Example output:
# 433kB 0:00:00 [ 658kB/s] [============================================================================================>] 100%
You can’t perform that action at this time.