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
#!/bin/bash | |
############################################################################ | |
# Export a file to several QR files | |
# | |
# Requirements: | |
# - qrencode (https://github.com/fukuchi/libqrencode) | |
# | |
# How to use | |
# $ export_file_qr.sh name.of.your.file |
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
{ | |
// See https://go.microsoft.com/fwlink/?LinkId=733558 | |
// for the documentation about the tasks.json format | |
"version": "2.0.0", | |
"tasks": [ | |
{ | |
"label": "android-emulator", | |
"type": "shell", | |
// <USERNAME> is your Windows username. Otherwise you shold enter the full path for the emulator binary | |
// <AVD> is the Android AVD name you want to use. For example: 'Nexus_5X_API_24_x86' |
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
# Access bash inside a container | |
docker exec -it "container_name" /bin/bash | |
# Build composer clean | |
docker-compose build --no-cache |
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
# Assume a branch called 'gh-pages' and a directory called 'dist' | |
git subtree push --prefix=dist origin gh-pages |
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
0 0 * * * sh /route/to/script/mysql_backup.sh >> /var/log/myapp/mysql_backup.log 2>&1 |
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 | |
/** | |
* Mapping arrays for | |
* ISO 3166-1 alpha-2 and alpha-2 | |
*/ | |
// Mapping from ISO alpha-2 to ISO alpha-3 | |
$countryIsoMapping2to3 = [ | |
'AF' => 'AFG', | |
'AX' => 'ALA', |
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
Verifying my Blockstack ID is secured with the address 12wEcUDCwYZVRzY2aemhU5uF33uvkxotzM https://explorer.blockstack.org/address/12wEcUDCwYZVRzY2aemhU5uF33uvkxotzM |
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
#!/bin/bash | |
# Fetch from repository | |
git fetch origin | |
reslog=$(git log HEAD..origin/master --oneline) | |
git reset --hard origin/master | |
if [ "${reslog}" != "" ] ; then | |
git merge origin/master # completing the pull | |
# Project dependencies install/update |
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
#!/bin/bash | |
# Fetch from repository | |
git fetch origin | |
reslog=$(git log HEAD..origin/master --oneline) | |
git reset --hard origin/master | |
if [ "${reslog}" != "" ] ; then | |
git merge origin/master # completing the pull | |
# Symfony deployment |
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
# Redmine - project management software | |
# Copyright (C) 2006-2014 Jean-Philippe Lang | |
# | |
# This program is free software; you can redistribute it and/or | |
# modify it under the terms of the GNU General Public License | |
# as published by the Free Software Foundation; either version 2 | |
# of the License, or (at your option) any later version. | |
# | |
# This program is distributed in the hope that it will be useful, | |
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
NewerOlder