Skip to content

Instantly share code, notes, and snippets.

View WyekS's full-sized avatar
🎯
Focusing

WyekS WyekS

🎯
Focusing
View GitHub Profile
@JamesMGreene
JamesMGreene / gitflow-breakdown.md
Last active November 5, 2024 15:51
`git flow` vs. `git`: A comparison of using `git flow` commands versus raw `git` commands.

Initialize

gitflow git
git flow init git init
  git commit --allow-empty -m "Initial commit"
  git checkout -b develop master

Connect to the remote repository

@spalladino
spalladino / mysql-docker.sh
Created December 22, 2015 13:47
Backup and restore a mysql database from a running Docker mysql container
# Backup
docker exec CONTAINER /usr/bin/mysqldump -u root --password=root DATABASE > backup.sql
# Restore
cat backup.sql | docker exec -i CONTAINER /usr/bin/mysql -u root --password=root DATABASE
  1. Drag this link into your bookmarks bar: [Flexible search CSV export bookmarklet](javascript:function addCsvDownloadLink(){console.log("Adding download link"),$("#queryResultTable_length").append(' <a id="csvDownloadLink" href="#" class="export">Download as CSV</a>'),console.log("Modifying link behaviour"),$("#csvDownloadLink").click(function(){var n=$("#queryResultTable"),o=exportTableToCsvString(n),t="data:application/csv;charset=utf-8,"+encodeURIComponent(o);$(this).attr({download:"flexibleSearch.csv",href:t,target:"_blank"})}),console.log("CSV ready for download")}function exportTableToCsvString(n){var o=tableToData(n);return dataToCsvString(o)}function tableToData(n){var o=n.find("thead").find("tr"),t=n.find("tbody").find("tr"),a=o.map(trRowToArray).get(),r=t.map(trRowToArray).get();return r.unshift(a[0]),r}function trRowToArray(n,o)
@mpern
mpern / docker-compose.yml
Last active April 15, 2021 09:16
Minimal docker-compose file to setup a MySQL server for SAP Commerce
version: '3.7'
services:
db:
image: mysql:5.7
restart: "unless-stopped"
ports:
- 3306:3306
# uncomment the volume mount to import .sql files
# during database initalization
# volumes: