git config --global http.version HTTP/1.1
git config --global http.postBuffer 157286400
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
int width = 500; | |
int height = 200; | |
int lineWidth = 10; | |
int lineLength = 1000; | |
int startX = 0; | |
int startY = 0; | |
Snake snake; |
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 | |
class RC4 | |
{ | |
public static $_key = 'aRand0mStr1ng'; | |
public static function encode($string, $key = null) | |
{ | |
$res = self::_rc4($string, $key); | |
$encrypted = unpack('H*', $res); |
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 | |
TRAGET="/path/to/your/website/folder" | |
GIT_DIR="/path/to/your/git/repo.git" | |
BRANCH="master" | |
while read oldrev newrev ref | |
do | |
# only checking out the master (or whatever branch you would like to deploy) | |
if [[ $ref = refs/heads/$BRANCH ]]; | |
then |
[error] 14066#0: *168 FastCGI sent in stderr: "PHP message: PHP Warning: Unknown: failed to open stream: Permission denied in Unknown on line 0Unable to open primary script: index.php (Permission denied)" while reading response header from upstream, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/run/php-fpm/www.sock:"
- Open the
/etc/selinux/config
file and set theSELINUX
mod todisabled
- Save the file and reboot your CentOS system
- Check status
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 | |
# Update and upgrade packages | |
sudo apt-get update | |
sudo apt-get upgrade -y | |
# Install Homebrew | |
NONINTERACTIVE=1 /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" | |
# Add Homebrew to PATH |