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
# https://certbot.eff.org/#ubuntutrusty-nginx | |
# http://www.jeffmould.com/2016/05/14/install-lets-encrypt-ssl-certificate-laravel/ | |
# https://loune.net/2016/01/https-with-lets-encrypt-ssl-and-nginx/ | |
# https://community.letsencrypt.org/t/how-to-nginx-configuration-to-enable-acme-challenge-support-on-all-http-virtual-hosts/5622 | |
sudo mkdir /usr/share/nginx/letsencrypt/.well-known | |
sudo cd /usr/share/nginx/letsencrypt | |
sudo chown -R user:www-data letsencrypt |
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
REM ----------------------------------------------- | |
REM Install basic programs | |
REM ----------------------------------------------- | |
echo Installing chocolatey | |
@powershell -NoProfile -ExecutionPolicy Bypass -Command "iex ((new-object net.webclient).DownloadString('https://chocolatey.org/install.ps1'))" && SET PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin | |
echo Installing utility programs |
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 | |
/* | |
src - https://stackoverflow.com/a/36291595 | |
usage - php winginx_patch.php | |
After applying this patch you can use "php56", "php70" and "php71" | |
folders in the root directory of winginx. | |
*/ | |
function patch($file, $offset, $old_data, $new_data) { | |
if (!$f = fopen($file, 'r+b')) { | |
die("Can not open $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
Nice setup nginx php-fpm | |
https://www.webfoobar.com/node/64 | |
Run Nginx + PHP (FPM) on your Kubernetes cluster! | |
https://github.com/b00giZm/kubernetes-php-nginx |
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
start "C:\dvt-jb-lic-server\" dvt-jb_licsrv.amd64.exe | |
c: | |
cd "C:\Program Files (x86)\JetBrains\PhpStorm 2016.3.2\bin\" | |
start "C:\Program Files (x86)\JetBrains\PhpStorm 2016.3.2\bin\" phpstorm64.exe | |
timeout /t 180 | |
Taskkill /im dvt-jb_licsrv.amd64.exe /f |
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/sh | |
RESTORE=$(echo '\033[0m') | |
BOLD=$(echo '\033[1m') | |
GREEN=$(echo '\033[1;32m') | |
echo | |
echo ${GREEN} | |
echo "------------------------------" | |
echo " Installing prerequisites " | |
echo "------------------------------" | |
echo |
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 | |
# pdf2htmlEX install shell script for Ubuntu 16.04, using latest sources | |
# Created by James A. Prempeh ( github.com/prmph ) | |
HOME_PATH=$(cd ~/ && pwd) | |
LINUX_ARCH="$(lscpu | grep 'Architecture' | awk -F\: '{ print $2 }' | tr -d ' ')" | |
POPPLER_SOURCE="https://poppler.freedesktop.org/poppler-0.43.0.tar.xz" | |
FONTFORGE_SOURCE="https://github.com/fontforge/fontforge.git" | |
PDF2HTMLEX_SOURCE="https://github.com/coolwanglu/pdf2htmlEX.git" |
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
[config] | |
command = bash deploy.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
Go to Bitbucket and create a new repository (its better to have an empty repo) | |
git clone [email protected]:abc/myforkedrepo.git | |
cd myforkedrepo | |
Now add Github repo as a new remote in Bitbucket called "sync" | |
git remote add sync [email protected]:def/originalrepo.git | |
Verify what are the remotes currently being setup for "myforkedrepo". This following command should show "fetch" and "push" for two remotes i.e. "origin" and "sync" | |
git remote -v |
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
PRIMEIRA COISA | |
https://copr.fedorainfracloud.org/coprs/duh/GNOME_3.22_for_RHEL_and_CentOS_7.x/ | |
############################################################################################################################# | |
# | |
# INSTALAÇÃO DO CENTOS 7.2 - CUSTOMIZAÇÃO BÁSICA | |
# | |
############################################################################################################################# | |
# Passos básicos - Configuração do Gnome (como root)R |