Skip to content

Instantly share code, notes, and snippets.

View forceedge01's full-sized avatar

Abdul forceedge01

View GitHub Profile
@forceedge01
forceedge01 / sublime-phpcs-fixer-config
Created April 16, 2017 10:17
Sublime phpcs fixer config
"php_cs_fixer_additional_args": {
"--rules": "@PSR2,no_unused_imports,no_useless_else,no_useless_return,no_trailing_whitespace,blank_line_before_return,blank_line_after_namespace,blank_line_after_opening_tag,cast_spaces,combine_consecutive_unsets,hash_to_slash_comment,is_null,linebreak_after_opening_tag,method_separation,native_function_casing,new_with_braces,no_blank_lines_after_class_opening,no_blank_lines_after_phpdoc,no_empty_comment,no_empty_phpdoc,no_empty_statement,no_extra_consecutive_blank_lines,no_leading_import_slash,no_leading_namespace_whitespace,no_mixed_echo_print,no_multiline_whitespace_around_double_arrow,no_multiline_whitespace_before_semicolons,no_short_bool_cast,no_singleline_whitespace_before_semicolons,no_unneeded_control_parentheses,no_unreachable_default_argument_value,no_whitespace_before_comma_in_array,no_whitespace_in_blank_line,non_printable_character,not_operator_with_successor_space,ordered_imports,php_unit_construct,php_unit_dedicate_assert,phpdoc_add_missing_param_annotatio
@forceedge01
forceedge01 / SVN to GIT
Created December 27, 2017 18:17
Sync svn to git repo from scratch
svn checkout -r HEAD <svn repo url> <dir>
cd <repo>
git init
git remote add origin <origin>
git fetch origin
# In order to get this working, we have to have an initial commit. So commit one of the files but don't push yet.
git add build.xml
git commit -m "Commit to get svn to git sync functional"
# This removes any of the untracked files being put in.
git reset --hard origin/master
@forceedge01
forceedge01 / ESDox.sh
Last active September 10, 2019 13:17
curl -X POST "esoffers-es.ms.$USER.docker/offers/_bulk" -H 'Content-Type: application/x-ndjson' --data-binary '
{ "index":{} }
{"UUID":"C7E6B998-C4E0-11E9-9499-0242AC180008","OfferId":118167,"Created":"2017/02/13","Deleted":null,"OfferName":"NCL/AM/30Nov2019/7","ItineraryRef":"HWAI07CNNHNLHNL","DepartureDate":"2019/11/30","OfferTypeName":"FlyCruise","ItineraryOverview":"Honolulu, Kahului, Kahului, Hilo, Kona, Nawiliwili, Nawiliwili, Cruising, Honolulu","CruiseOperatorName":"NCL Cruises","ShortOperatorName":"NCL","OperatorLogo":"LOGO_150x35-NCL_2010_0.gif","OperatorLogoHeight":"35","OperatorLogoWidth":"150","CruiseShipName":"Pride of America","ShortShipName":"Pride of America","CruiseOperatorId":"7","CruiseShipId":"24","CruiseDuration":"7","OfferSpecialsHeadline":null,"OfferPackageType":"Retail Cruise","LastTouched":"2019/08/22","CruiseOnly":null,"FlyCruise":true,"CruiseDurationBucket":"7-15","CruiseShipUUID":"99c1b867-8229-002f-56f7-5b7d32c5972e","CruiseOperatorUUID":"873C6583-E6DB-4BBD-9EE8-73C7D42E56DA","Ca