Skip to content

Instantly share code, notes, and snippets.

View markshust's full-sized avatar
🤓
Currently exploring building production apps with Claude Code & AI.

Mark Shust markshust

🤓
Currently exploring building production apps with Claude Code & AI.
View GitHub Profile
@markshust
markshust / gist:c58e44a3be5b71d60869519e2a072e31
Created November 19, 2017 17:28
meteor client browser policy update for nginx
# From this link: http://dweldon.silvrback.com/browser-policy
# Increase the proxy buffers for meteor browser-policy.
proxy_buffer_size 128k;
proxy_buffers 4 256k;
proxy_busy_buffers_size 256k;
# These changes should go in the http secion of your configuration file - typically located in /etc/nginx/nginx.conf.
@markshust
markshust / etc-nginx-sites-available-foo
Last active November 24, 2017 13:37
serve static assets of meteor build with nginx
server {
location / {
root /var/www/foo/programs/web.browser/app;
try_files $uri $uri/ @meteor;
expires max;
access_log off;
}
location @meteor {
@markshust
markshust / disable-xdebug.sh
Created December 19, 2017 23:13 — forked from hacfi/disable-xdebug.sh
OS X homebrew php 7.0 enable/disable xdebug extension script
#!/bin/sh
sed -i.default "s/^zend_extension=/;zend_extension=/" /usr/local/etc/php/7.0/conf.d/ext-xdebug.ini
launchctl unload ~/Library/LaunchAgents/homebrew.mxcl.php70.plist
launchctl load ~/Library/LaunchAgents/homebrew.mxcl.php70.plist
echo "xdebug disabled"
@markshust
markshust / disable-xdebug.sh
Last active December 19, 2017 23:16 — forked from hacfi/disable-xdebug.sh
OS X homebrew php 7.0 enable/disable xdebug extension script
#!/bin/sh
sed -i.default "s/^zend_extension=/;zend_extension=/" /usr/local/etc/php/7.1/conf.d/ext-xdebug.ini
launchctl unload ~/Library/LaunchAgents/homebrew.mxcl.php71.plist
launchctl load ~/Library/LaunchAgents/homebrew.mxcl.php71.plist
echo "xdebug disabled"
@markshust
markshust / index.php
Created February 23, 2018 17:09
This script finds the modified deltas between a previous file and a current file, and writes the diffs to a new file.
<?php
/**
* This script finds the modified deltas between a previous file (foo_1.csv) and a current file (foo_2.csv),
* and writes the diffs to a new file (foo_3.csv).
*/
$fileName1 = 'foo_1.csv';
$fileName2 = 'foo_2.csv';
$fileName3 = 'foo_3.csv';
@markshust
markshust / gist:67ab6c3e275459c052c292609a285812
Created June 6, 2018 15:49
correct line endings on mac
find ./ -type f -exec perl -pi -e 's/\r\n|\n|\r/\n/g' {} \;
@markshust
markshust / copyfolder.sh
Created August 30, 2018 02:20
copy folder from docker compose (named phpfpm) to local host
#!/bin/bash
[ -z "$1" ] && echo "Please specify a folder to copy (ex. vendor)" && exit
docker cp $(docker-compose ps|grep phpfpm|awk '{print $1}'):/var/www/html/$1 src/
@markshust
markshust / gist:aa5d7e4918144e82f7d7d2b93c367091
Last active April 13, 2019 04:53
composer install magento 2.3
# from tagged packagist version
composer create-project magento/community-edition:dev-2.3-develop
# from tagged magento repo
composer create-project --repository=https://repo.magento.com/ magento/project-community-edition=2.3.0-beta8
@markshust
markshust / gist:81d74395be18b38d1eeaee385eb90fe6
Created October 15, 2018 16:04
get filesystem driver for specific docker container
docker inspect 6dd679df725e | grep '"Driver"' | head -n 1
### Keybase proof
I hereby claim:
* I am markshust on github.
* I am markshust (https://keybase.io/markshust) on keybase.
* I have a public key ASD7FpJiGSQTU2-NbkH3w3MmOlnexKEqlWLKcmhSTw_tDwo
To claim this, I am signing this object: