This file contains hidden or 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
| #### | |
| # ZSH function to auto-switch to correct Node version | |
| # https://gist.github.com/callumlocke/30990e247e52ab6ac1aa98e5f0e5bbf5 | |
| # | |
| # - Searches up your directory tree for the closest .nvmrc, just like `nvm use` does. | |
| # | |
| # - If you are already on the right Node version, IT DOES NOTHING, AND PRINTS NOTHING. | |
| # | |
| # - Works correctly if your .nvmrc file contains something relaxed/generic, | |
| # like "4" or "v12.0" or "stable". |
This file contains hidden or 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
| /** | |
| * Check if a given ip is in a network | |
| * @param string $ip IP to check in IPV4 format eg. 127.0.0.1 | |
| * @param string $range IP/CIDR netmask eg. 127.0.0.0/24, also 127.0.0.1 is accepted and /32 assumed | |
| * @return boolean true if the ip is in this range / false if not. | |
| */ | |
| function ip_in_range( $ip, $range ) { | |
| if ( strpos( $range, '/' ) == false ) { | |
| $range .= '/32'; | |
| } |
This file contains hidden or 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
| /* Decrease the tabs bar height in gnome-terminal | |
| * Add: ~/.config/gtk-3.0/gtk.css | |
| * See: https://stackoverflow.com/questions/36869701/decrease-the-tabs-bar-height-in-gnome-terminal | |
| */ | |
| terminal-window notebook > header.top button { | |
| padding: 0 0 0 0; | |
| background-image: none; | |
| border: 0; | |
| margin-right: 10px; |
This file contains hidden or 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
| sudo apt update | |
| sudo apt install apt-transport-https ca-certificates curl software-properties-common | |
| curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg | |
| echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null | |
| sudo apt update | |
| apt-cache policy docker-ce | |
| sudo apt install docker-ce | |
| sudo systemctl status docker | |
| sudo usermod -aG docker ${USER} | |
| su - ${USER} |
This file contains hidden or 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
| <IfModule mod_rewrite.c> | |
| #Custom | |
| Options +FollowSymlinks | |
| Options -Indexes | |
| <IfModule mod_negotiation.c> | |
| Options -MultiViews -Indexes | |
| </IfModule> | |
| RewriteEngine On |
This file contains hidden or 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
| // Detects the browser locale for Date translations. | |
| const locale = (navigator.languages && navigator.languages.length) ? | |
| navigator.languages[0] : | |
| navigator.language ? | |
| navigator.language : | |
| 'en'; | |
| // Date formatter with php-compatible format syntax | |
| export const formatDate = (format, date) => { | |
| if (format === undefined) { |
This file contains hidden or 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
| diff --git a/compile.sh b/compile.sh | |
| index 0b8fc71..95d09c5 100755 | |
| --- a/compile.sh | |
| +++ b/compile.sh | |
| @@ -809,11 +809,10 @@ $HAS_POCKETMINE_CHUNKUTILS \ | |
| --disable-xmlwriter \ | |
| --disable-cgi \ | |
| --disable-session \ | |
| ---disable-pdo \ | |
| --without-pear \ |
This file contains hidden or 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 | |
| namespace app\components; | |
| use Yii; | |
| use yii\base\BootstrapInterface; | |
| use yii\base\Event; | |
| use yii\base\InvalidConfigException; | |
| class Base implements BootstrapInterface | |
| { | |
| public $nameSpace = 'app\module'; | |
| const CACHE_ID = 'erp_modules_config'; |
This file contains hidden or 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
| Industry | ||
|---|---|---|
| Accounting | ||
| Airlines/Aviation | ||
| Alternative Dispute Resolution | ||
| Alternative Medicine | ||
| Animation | ||
| Apparel/Fashion | ||
| Architecture/Planning | ||
| Arts/Crafts | ||
| Automotive |
NewerOlder