Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save ABHISHEK-KEDAR-21/7da9d2eec100df8cb8cfa9ec0fb77a8c to your computer and use it in GitHub Desktop.
Save ABHISHEK-KEDAR-21/7da9d2eec100df8cb8cfa9ec0fb77a8c to your computer and use it in GitHub Desktop.
My data

BTBV1R0CZR-eyJsaWNlbnNlSWQiOiJCVEJWMVIwQ1pSIiwibGljZW5zZWVOYW1lIjoiTXVzaGZpcXVyIFJhaG1hbiIsImFzc2lnbmVlTmFtZSI6IiIsImFzc2lnbmVlRW1haWwiOiIiLCJsaWNlbnNlUmVzdHJpY3Rpb24iOiJGb3IgZWR1Y2F0aW9uYWwgdXNlIG9ubHkiLCJjaGVja0NvbmN1cnJlbnRVc2UiOmZhbHNlLCJwcm9kdWN0cyI6W3siY29kZSI6IklJIiwicGFpZFVwVG8iOiIyMDE5LTExLTI4In0seyJjb2RlIjoiQUMiLCJwYWlkVXBUbyI6IjIwMTktMTEtMjgifSx7ImNvZGUiOiJEUE4iLCJwYWlkVXBUbyI6IjIwMTktMTEtMjgifSx7ImNvZGUiOiJQUyIsInBhaWRVcFRvIjoiMjAxOS0xMS0yOCJ9LHsiY29kZSI6IkdPIiwicGFpZFVwVG8iOiIyMDE5LTExLTI4In0seyJjb2RlIjoiRE0iLCJwYWlkVXBUbyI6IjIwMTktMTEtMjgifSx7ImNvZGUiOiJDTCIsInBhaWRVcFRvIjoiMjAxOS0xMS0yOCJ9LHsiY29kZSI6IlJTMCIsInBhaWRVcFRvIjoiMjAxOS0xMS0yOCJ9LHsiY29kZSI6IlJDIiwicGFpZFVwVG8iOiIyMDE5LTExLTI4In0seyJjb2RlIjoiUkQiLCJwYWlkVXBUbyI6IjIwMTktMTEtMjgifSx7ImNvZGUiOiJQQyIsInBhaWRVcFRvIjoiMjAxOS0xMS0yOCJ9LHsiY29kZSI6IlJNIiwicGFpZFVwVG8iOiIyMDE5LTExLTI4In0seyJjb2RlIjoiV1MiLCJwYWlkVXBUbyI6Ij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rnQcXOl1rHq7ByB8CFAxNotRUYL9IF5n3wJOgkPojMy6jetQA5Ogc8Sm7RG6vg1yow==

bench new-site <new-site-name>
bench use <new-site-name> && bench install-app support_tool && bench install-app velocityduos && bench install-app barista && bench set-config developer_mode 1 && bench restart && bench clear-cache
###########################################################
update `tabSeries` set current=x where name="TestData-";update `tabSeries` set current=x where name="TestCase-";Insert into `tabSeries` (name,current) values ('TestCase-',85);
##########################################################
from barista.barista.doctype.test_suite.run_test import RunTest
RunTest().run_complete_suite("velocityduos")
from barista.barista.doctype.test_suite.run_test import RunTest
RunTest().get_executed_lines('velocityduos','hooks.py')
truncate `tabTest Result`;truncate `tabTest Data`;truncate `tabTest Case`;truncate `tabAssertion`;truncate `tabTestdatafield`;truncate `tabTest Suite`;truncate `tabAssertion Result`;truncate `tabTestcase Item`;truncate `tabTestdata Item`;truncate `tabParameter`;truncate `tabTestsuite Item`;update `tabTest Data` set test_record_name='',status='PENDING';
bench init frappe-bench --frappe-path=https://engg.elasticrun.in/<frappe_srun_path> --frappe-branch=<frappe_srun_branch>
bench new-site <site-name>
bench get-app https://engg.elasticrun.in/ <srun_path> --branch=release
bench migrate-env python3.7
bench use <site-name>
echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p######################################################################
Sancharun######################################################################
bench init sancharun-bench --frappe-path=https://engg.elasticrun.in/sancharun/erpcore/frappe.git --frappe-branch=version-11 --python=/usr/bin/python3.7
cd sancharun-benchbench new-site [site-name]bench get-app https://engg.elasticrun.in/sancharun/sancharun.gitbench install-app sancharundelete from `tabModule Def` where name in ('Sancharun','PMS','Party Contract')
 bench get-app https://engg.elasticrun.in/datascience/subodh.git --branch velocity-releasebench install-app subodh
########################################################################VelocityDuos########################################################################
bench init velocityduos-bench --frappe-path=https://engg.elasticrun.in/sancharun/erpcore/frappe.git --frappe-branch=version-11 --python=/usr/bin/python3.7cd [bench-folder]bench new-site [site-name]
bench get-app https://engg.elasticrun.in/sancharun/velocityduos.git
bench install-app velocityduos
bench get-app https://engg.elasticrun.in/platform-foundation/spine.git --branch releasebench  install-app spine
bench get-app https://engg.elasticrun.in/sancharun/barista.git --branch velocityduosbench install-app barista
ModuleNotFoundError: No module named 'werkzeug.contrib'
./env/bin/pip install werkzeug==0.16.0
############################################################################VTS########################################################################### bench init vts-bench --frappe-path=https://engg.elasticrun.in/sancharun/erpcore/frappe.git --frappe-branch=version-10 --python=/usr/bin/python2.7
bench get-app https://engg.elasticrun.in/Alta-Velocity/velocity.git --branch master
#####################################################TREDRUN#############################################################################
bench init tredrun-bench --frappe-path=https://engg.elasticrun.in/tredrun/tredrun-core/frappe.git --frappe-branch=v11.1.59-upstream --python=/usr/bin/python3.7
bench get-app https://engg.elasticrun.in/tredrun/tredrun-core/erpnext.git --branch v11.1.59 && bench get-app https://engg.elasticrun.in/tredrun/cas_client_adapter.git --branch develop && bench get-app https://engg.elasticrun.in/tredrun/kyc.git --branch develop
bench new-site tredrun21 --mariadb-root-username root --mariadb-root-password 123 --admin-password 123 --install-app erpnext && bench install-app cas_client_adapter && bench install-app kyc
#######   bench get-app https://engg.elasticrun.in/tredrun/credrun.git --branch develop && bench install-app credrun
bench get-app https://engg.elasticrun.in/tredrun/latte.git --branch beta-release && bench install-app latte && bench get-app https://engg.elasticrun.in/tredrun/tredrun-v2.git --branch develop && bench install-app tredv2
sudo apt update && sudo apt install nginx -y && sudo ufw app list && sudo ufw allow 'Nginx HTTP' && sudo ufw status
bench setup nginx && cd config/ && pwd && cd /etc/nginx/conf.d
sudo ln -s /home/abhishek/code_workspace/tredrun-bench/config/nginx.conf frappe.conf
sudo service nginx reload
sudo vi /etc/hosts
function chunkArray(myArray, chunk_size) { var index = 0; var arrayLength = myArray.length; var tempArray = []; for (index = 0; index < arrayLength; index += chunk_size) { myChunk = myArray.slice(index, index + chunk_size); // Do something if you want with the group tempArray.push(myChunk); } return tempArray;}function processTrackingIds(item, index) { document.getElementById("multiSearchCheckbox").checked = true; document.getElementById("multiShipmentID").value = ""; console.log('Batch-', index); document.getElementById("multiShipmentID").value = item.join("\n"); getShipDetails(); $("[title='Export to excel']").click();}trackingIds = []function downloadExcel() { console.log('Total Tracking Ids-', trackingIds.length); batch500 = chunkArray(trackingIds, 500); console.log('Total Batches-', batch500.length); batch500.forEach(processTrackingIds);}

user@void:~/Downloads/ifuse/usbmuxd$

sudo LD_LIBRARY_PATH=/usr/local/lib usbmuxd

export LD_LIBRARY_PATH=/usr/local/lib

idevicepair pair

ifuse /media/iPhone

sudo apt-get install software-properties-common    sudo apt-key adv --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 0xF1656F24C74CD1D8    sudo add-apt-repository 'deb [arch=amd64,arm64,i386,ppc64el] http://mirror.jaleco.com/mariadb/repo/10.3/ubuntu xenial main'    sudo apt update    sudo apt install mariadb-server

fetch('https://engg.elasticrun.in/sancharun/velocityduos/merge_requests/63/diffs.json')     .then((response) => {         return response.json();     })     .then((data) => {         let output = [];         data['diff_files'].forEach((f) => {             let file = {}             file['filename'] = f['blob']['name'];             file['file_path'] = f['file_path'];             let lines = [];             f['highlighted_diff_lines'].forEach((l) => {                 if (l['type'] === "new") {                     lines.push(l['new_line'])                 }             })             file['new_lines'] = lines;             output.push(file);         })       console.table(output)     });

http://jetbrains.license.laucyun.com/

Free JetBrains Products License Serverjetbrains.license.laucyun.comFree License Server for JetBrains products: IntelliJ IDEA, PhpStorm, WebStorm, Pycharm, RubyMine and other.

maria db user access grant all privileges on . to root@'localhost' identified by '123'; ################################################################################################################################################## Check for : git config remote.upstream.fetch Change it to below line for listing all branches instead of just single branch: git config remote.upstream.fetch "+refs/heads/:refs/remotes/upstream/"

git config remote.origin.fetch "+refs/heads/:refs/remotes/origin/" ########################################################################################################################################Install Visual Studio Code: curl https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.gpgsudo mv microsoft.gpg /etc/apt/trusted.gpg.d/microsoft.gpgsudo sh -c 'echo "deb [arch=amd64] https://packages.microsoft.com/repos/vscode stable main" > /etc/apt/sources.list.d/vscode.list'Then update the package cache and install the package using:sudo apt-get updatesudo apt-get install code # or code-insiders

yarn start
react-native start --reset-cache --verbose
npx react-native run-android --verbose
npx react-native run-android --variant=release --verbose
react-native bundle --platform android --dev false --entry-file index.js --bundle-output android/app/src/main/assets/index.android.bundle --assets-dest android/app/src/main/res
./gradlew assembleRelease -x bundleReleaseJsAndAssets
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment