Skip to content

Instantly share code, notes, and snippets.

View jalogut's full-sized avatar

Juan Alonso jalogut

View GitHub Profile
@stidges
stidges / tailwind.itermcolors
Last active November 30, 2023 21:00
An iTerm2 color scheme based on the Tailwind CSS color scheme (https://tailwindcss.com/docs/colors)
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Ansi 0 Color</key>
<dict>
<key>Alpha Component</key>
<real>1</real>
<key>Blue Component</key>
<real>0.17254902422428131</real>
@igor-imaginemage
igor-imaginemage / gist:0484ba12e5f3b84a06740404d33e722d
Last active November 15, 2018 20:50
Magento 2 Developer Toolbar (Macbook Touch Bar)
This combination of settings will create these buttons to be used while you are working with Magento 2 development on PHPStorm
Printscreen: http://prntscr.com/l7n4zc
Instructions
1) First install BetterTouchTool (https://folivora.ai/)
2) Then download this profile https://gist.github.com/igor-imaginemage/b1dc812d9896c0f087c0ceaef838a476, rename the file to Default.bttpreset and import on BetterTouchTool. It should import configurations for PHPStorm.
3) The buttons will prompt only on PhpStorm and you should be with PHPStorm terminal opened.
It's a first release of this configuration, any contribution is welcome =)
@ekreutz
ekreutz / ansible_variable_precedence.md
Last active October 13, 2024 21:54
Ansible variable precedence (order, hierarchy)

https://magentocommeng.slack.com

Generic Channels:

#general - community wide discussions
#announcements - all kind of announcements (new Magento 2 releases e.t.c.)
#random - non-magento related conversation/jokes/watercooling e.t.c.
#event -EVENTNAME - groups for given events such as contribution days, conferences e.t.c.
#events - generic channel for all event-based topics
#github - conversations around GitHub issues and Pull Requests

Special Project Channels:

@johnkary
johnkary / iterm_open_with
Last active January 22, 2020 13:02 — forked from peterjaap/iterm_open_with
Open text files from Iterm2 in PhpStorm by command+clicking on it
#!/bin/sh
# Open text files from Iterm2 in PhpStorm by command+clicking on it
# You will need the Remote call plugin in PhpStorm - https://plugins.jetbrains.com/plugin/6027
# And of course curl
# wget this and chmod +x it
# then move it to somwhere convenient in your path (such as /usr/local/bin)
# With respects to https://gist.github.com/trinitronx/f59a8308d42d71fdba41 for the basis for this
# iterm_open_with - open a URL, file from CWD, full path, or path with linenumber in default app or PhpStorm if text file
Linux:
wget -qO- https://get.docker.com/ | sh
curl -L "https://github.com/docker/compose/releases/download/1.13.0/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
chmod +x /usr/local/bin/docker-compose
############################################################
@peterjaap
peterjaap / iterm_open_with
Created December 15, 2016 14:16
Open text files from Iterm2 in PhpStorm by command+clicking on it
#!/bin/sh
# Open text files from Iterm2 in PhpStorm by command+clicking on it
# You will need the Remote call plugin in PhpStorm - https://plugins.jetbrains.com/plugin/6027
# And of course curl
# wget this and chmod +x it
# then move it to somwhere convenient in your path (such as /usr/local/bin)
# With respects to https://gist.github.com/trinitronx/f59a8308d42d71fdba41 for the basis for this
# iterm_open_with - open a URL, file from CWD, full path, or path with linenumber in default app or PhpStorm if text file
@Faheetah
Faheetah / Jenkinsfile.groovy
Last active October 26, 2024 16:38
Jenkinsfile idiosynchrasies with escaping and quotes
node {
echo 'Results included as an inline comment exactly how they are returned as of Jenkins 2.121, with $BUILD_NUMBER = 1'
echo 'No quotes, pipeline command in single quotes'
sh 'echo $BUILD_NUMBER' // 1
echo 'Double quotes are silently dropped'
sh 'echo "$BUILD_NUMBER"' // 1
echo 'Even escaped with a single backslash they are dropped'
sh 'echo \"$BUILD_NUMBER\"' // 1
echo 'Using two backslashes, the quotes are preserved'
sh 'echo \\"$BUILD_NUMBER\\"' // "1"
@Vinai
Vinai / M2 acl.xml
Last active October 17, 2023 05:38
My current Magento 2 PHPStorm File Templates (Feb 2016)
<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Acl/etc/acl.xsd">
<acl>
<resources>
<resource id="Magento_Backend::admin">
</resource>
</resources>
</acl>
</config>
@bradp
bradp / setup.sh
Last active November 3, 2024 09:31
New Mac Setup Script
echo "Creating an SSH key for you..."
ssh-keygen -t rsa
echo "Please add this public key to Github \n"
echo "https://github.com/account/ssh \n"
read -p "Press [Enter] key after this..."
echo "Installing xcode-stuff"
xcode-select --install