This file contains hidden or 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
on run {input, parameters} | |
if input is equal to {} then | |
set cmd to "clear;cd `/Users/jasamitier`;vim " | |
else | |
set filename to POSIX path of input | |
set cmd to "clear;cd `dirname " & filename & "`;vim " & filename | |
end if | |
tell application "iTerm" | |
This file contains hidden or 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
function gi() { | |
curl -L -s https://www.gitignore.io/api/$@ >> .gitignore; | |
} |
This file contains hidden or 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 | |
#this script was written to be called with find, something like: | |
# find . -type f \( -name *.jpg -o -name *.png -o -name *.JPG -o -name *.PNG \) -exec ~/batchImageOptim.sh "{}" \; | |
if [[ $# == 1 ]]; then | |
input_file="$1" | |
else | |
echo "no arguments, no party" | |
exit 255 |
This file contains hidden or 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
public static <T> T coalesce(T object) { | |
return object == null ? null : object; | |
} | |
public static <T> T coalesce(T find, T replace) { | |
return find == null ? replace : find; | |
} |
This file contains hidden or 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
find ~ -type f -name '*.log' -exec grep 'text' -l {} \; > output.txt |
- The owner of the Magento file system: Must have full control (read/write/execute) of all files and directories.
- Must not be the web server user; it should be a different user.
- The web server user must have write access to the following files and directories: var app/etc pub
- In addition, the web server's group must own the Magento file system so that the Magento user (who is in the group) can share access to files with the web server user. (This includes files created by the Magento Admin or other web-based utilities.)
All directories have 770 permissions.
This file contains hidden or 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
config.vm.synced_folder '.', '/var/www', | |
type: 'rsync', | |
rsync__exclude: [ | |
'Vagrantfile', # Vagrant control file | |
'.vagrant/', # Vagrant work area | |
'.git/', # Git repository | |
'.gitignore', # Git support file | |
'.gitattributes', # Git support file | |
'foo/media/images', # other folders you don't want to be wiped with the host contents | |
'vendor/' # other folders you don't want to be wiped with the host contents |
This file contains hidden or 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
alsa_out -j "Xmod" -d hw:Xmod -q 1 2>&1 1> /dev/null & |
OlderNewer