This file contains 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
"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 |
This file contains 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
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 |
This file contains 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
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 |
This file contains 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
# user_updates.py | |
import db | |
import requests | |
def update_user_login(): | |
if requests.method == 'post': | |
c = db.connect('connection string').cursor() | |
c.execute('select * from users where email like "%' + requests.query.get("n") + '%"') # execute sql here. | |
r = c.fetchall() | |
if r: |