Skip to content

Instantly share code, notes, and snippets.

View sobi3ch's full-sized avatar

Piotr Sobieszczański sobi3ch

View GitHub Profile
sobi3ch /
Created November 19, 2021 05:09
Laravel Sail with devcontainers

Start new Laravel Sail project with devcontainers.

curl -s "" | bash

Available services include:

  • mysql
  • pgsql
  • mariadb
sobi3ch / settings.json
Created May 14, 2021 04:48
vscode visible indentGuidesStroke and activeBorder
"workbench.colorCustomizations": {
"tree.indentGuidesStroke": "#ff9d00",
"tab.activeBorder": "#ff9d00",
### Keybase proof
I hereby claim:
* I am sobi3ch on github.
* I am sobi3ch ( on keybase.
* I have a public key ASAhA2_kzEkJY2jOIygH631Vou_-pCkm9GCzUTeK-gRSkgo
To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am sobi3ch on github.
  • I am soni3ch ( on keybase.
  • I have a public key ASC3xMKs2FnzaIsqFM3KBc8baBaVcGca6wYAqVFZThaohAo

To claim this, I am signing this object:

sobi3ch / custom-cloud-commands
Last active February 14, 2023 23:36
whoami in az and aws cli versions + get-policy-document for aws
# general
alias aws.whoami='aws iam get-user --query User.Arn --output text'
alias az.whoami='az ad signed-in-user show --query userPrincipalName --output tsv'
# In ~/.aws/credencials|config leave [default] profile empty and name it each one of it so `aws-env -l` can list all of them
# aws.profile # show current profile
# aws.profile profile-name # set profile name
# Double tab completion works
aws.profile ()
"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 September 9, 2019 17:10
After downloading default user accessKeys.csv file from AWS console you can setup default profile with following bash function
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";
sobi3ch / gist:74051b3e33967d2dd9dc7853bfb0799d
Created July 11, 2018 12:45
Scan Multibranch Pipeline Log
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 July 11, 2018 09:07
Jenkins groovy configuration
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 November 10, 2017 18:40
Fix chrome unity launcher in Ubutu
#Exec=/usr/bin/google-chrome-stable %U
Exec=/opt/google/chrome/chrome %U