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
ln -s /Applications/Xcode.app/Contents/Developer/Applications/Simulator.app /Applications/iPhone\ Simulator.app |
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
In iOS >= 10.3, you must take an additional step to trust the Charles Root Certificate that is not currently documented on their website: | |
Settings > General > About > Certificate Trust Testings | |
Source: https://www.neglectedpotential.com/2017/04/trusting-custom-root-certificates-on-ios-10-3/ | |
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
* Backup / sync Apache configs | |
* Backup / sync browser settings | |
* Backup / sync Atom editor config | |
For Apache and PHP | |
* Check Apache root for the previous settings file. They will have a 'previous' suffix. Just rename. | |
* After upgrade, probably your PHP version will be changed. So, you should check your httpd.conf file for the PHP version. | |
For example your previous PHP version was 5.6. Then find the following line on your httpd.conf file after copy/paste: | |
php5_module libexec/apache2/libphp5.so |
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
rm ./node_modules/react-native/local-cli/core/__fixtures__/files/package.json |
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
git branch -m old_branch new_branch # Rename branch locally | |
git push origin :old_branch # Delete the old branch | |
git push --set-upstream origin new_branch # Push the new branch, set local branch to track the new remote |
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
const sleep = ms => new Promise(resolve => setTimeout(resolve, ms)); | |
return await sleep(300).then(() => ({ console.log('waited 300ms'); }); |
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 | |
/** | |
* Single or multiple array key changer. | |
* | |
* @author Abdullah M CEYLAN | |
* @author URI http://www.abdullahceylan.com | |
* | |
* @param {array} $array Old array | |
* @param {string | array} $old_key Old array keys that can be string or array |
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
# Create your delete_repo token -> https://github.com/settings/tokens | |
while read repo | |
do | |
curl -X DELETE -H "Authorization: token YOUR_DELETE_REPO_TOKEN" "https://api.github.com/repos/$repo" | |
done < repos.txt |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<configuration> | |
<system.webServer> | |
<rewrite> | |
<rules> | |
<rule name="WordPress Rule 1" stopProcessing="true"> | |
<match url="^index\.php$" ignoreCase="false" /> | |
<action type="None" /> | |
</rule> | |
<rule name="WordPress Rule 2" stopProcessing="true"> |
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
while true; do | |
read -p "Remove the themes folder (deletes all themes) and create a new one? [y/n] " yn | |
case $yn in | |
[Yy]* ) rm -rf themes/; mkdir themes/; break;; | |
[Nn]* ) break;; | |
* ) echo "Please answer yes or no.";; | |
esac | |
done | |
while true; do |
NewerOlder