- UpperCamel case for classes. e.g.,
MyClass {}
- lowerCamel case for variable names. e.g.,
myVar = "";
- snake_case for Python functions and other functions delimited with underscores _ e.g.,
my_function();
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 | |
## | |
# Author: Pierre-Henry Soria <ph7software@gmail.com> | |
# Copyright: (c) 2012-2017, Pierre-Henry Soria. All Rights Reserved. | |
# License: GNU General Public License; See PH7.LICENSE.txt and PH7.COPYRIGHT.txt in the root directory. | |
## | |
accepted_ext="-name '*.php' -or -name '*.css' -or -name '*.js' -or -name '*.html' -or -name '*.xml' -or -name '*.xsl' -or -name '*.xslt' -or -name '*.json' -or -name '*.yml' -or -name '*.tpl' -or -name '*.phs' -or -name '*.ph7' -or -name '*.sh' -or -name '*.sql' -or -name '*.ini' -or -name '*.md' -or -name '*.markdown' -or -name '.htaccess'" | |
exec="find . -type f \( $accepted_ext \) -print0 | xargs -0 perl -wi -pe" |
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"?> | |
<info> | |
<ph7> | |
<social-dating-cms> | |
<upd-alert>false</upd-alert> | |
<name>NaOH</name> | |
<version>7.0.0</version> | |
<sql-shcema-version>1.3.6</sql-shcema-version> | |
<build>1</build> | |
</social-dating-cms> |
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
-- | |
-- Author: Pierre-Henry Soria <hi@ph7.me> | |
-- Website: https://ph7cms.com | |
-- Copyright: (c) 2011-2019, Pierre-Henry Soria. All Rights Reserved. | |
-- License: GNU General Public License | |
-- | |
--- | |
-- Reset the pH7CMS, admin panel's IP restriction. | |
-- Sometimes, you cannot log in anymore to your admin panel, because your public IP changed, or your website is hosted on a localhost and cannot work with. |
First, open your Terminal and run the following steps (I personally use iTerm2).
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
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
echo "\n# Allow unmatched wildcard expressions in zsh\nsetopt NO_NOMATCH" >> ~/.zshrc |
Apple's iCloud isn't able to sync the Finder preferences. However, you can copy/paste the following two plist files to your new Mac.
Copy the following two files to your other Mac computer
~/Library/Preferences/com.apple.dock.plist
~/Library/Preferences/com.apple.finder.plist
- Space Mono (my favorite one)
- Fira Code (my second favorite one 😄)
- MonoLisa
- Inconsolata
- Apercu Mono
- Input Mono
- Gintronic
OlderNewer