- Download PHP binaries: https://windows.php.net/download/
- Extract .zip to
C:\php
- Rename
C:\php\php.ini-production
tophp.ini
- On php.ini, find
extension_dir
and change the existing value to"C:\php\ext"
- On php.ini, enable the needed extensions. E.g.
extension=php_curl.dll
- Edit the system environment variables by editing system variable Path and add
C:\php
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
package "modes-example" | |
version "1.0" | |
purpose "modes-example" | |
description "An example of use of the Gengetopt." | |
######################################################################## | |
section "Decompression modes" | |
######################################################################## | |
#-- DEF MODES ---------------------------------------------------------- |
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 | |
wget -q https://github.com/atom/atom/releases/latest -O /tmp/latest | |
wget --progress=bar -q $(awk -F '[<>]' '/href=".*atom-amd64.deb/ {match($0,"href=\"(.*.deb)\"",a); print "https://github.com/" a[1]} ' /tmp/latest) -O /tmp/atom-amd64.deb --show-progress | |
dpkg -i /tmp/atom-amd64.deb |
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
function removeAccents (str) { | |
map = { | |
'a' : 'á|à|ã|â|À|Á|Ã|Â', | |
'e' : 'é|è|ê|É|È|Ê', | |
'i' : 'í|ì|î', | |
'o' : 'ó|ò|ô|õ|Ó|Ò|Ô|Õ', | |
'u' : 'ú|ù|û|ü|Ú|Ù|Û|Ü', | |
'c' : 'ç|Ç', | |
'n' : 'ñ|Ñ' | |
}; |
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 | |
# Reload iptables if... (e.g. ip was changed) | |
# Dependencies: dig (apt-get install dnsutils in debian/ubuntu) | |
# Note: Run "touch ~/current_ip" and add a new cron job with cmd "crontab -e" to run this script periodically. | |
HOSTNAME=<hostname-to-check.dyndns.org> | |
LOGFILE=~/current_ip | |
Current_IP=$(dig +short $HOSTNAME) |
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
# Replace _WEBSITE.COM_ with YOUR_DOMAIN.TLD | |
# Replace _ADMIN_FOLDER_ with YOUR_ADMIN_FOLDER | |
server { | |
listen 80; | |
listen [::]:80; | |
listen 443 ssl; | |
listen [::]:443 ssl; | |
server_name 127.0.0.1 _WEBSITE.com_ www._WEBSITE.com_; |
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 log --author="Fábio Santos" --oneline --shortstat --after="2017-01-01" | grep -E " files? changed," |
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
{ | |
"directory": "./resources/assets/vendor" | |
} |
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
# Generated by iptables-save v1.4.21 on Mon Apr 25 12:53:52 2016 | |
*filter | |
:INPUT ACCEPT [0:0] | |
:FORWARD ACCEPT [0:0] | |
:OUTPUT ACCEPT [0:0] | |
-A INPUT -i lo -j ACCEPT | |
-A INPUT -p tcp -m tcp --dport 80 -j ACCEPT | |
-A INPUT -p tcp -m tcp --dport 443 -j ACCEPT | |
-A INPUT -p tcp -m tcp -s hostname.com --dport 22 -j ACCEPT | |
-A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT |
OlderNewer