# Remove index.php$
if ($request_uri ~* "^(.*/)index\.php$") {
return 301 $1;
}
location / {
try_files $uri $uri/ /index.php?$query_string;
# Remove from everywhere index.php
if ($request_uri ~* "^(./)index.php(/?)(.)") {
| #this is my config | |
| server { | |
| listen [::]:443 ssl ipv6only=on default_server; # managed by Certbot | |
| listen 443 ssl default_server; # managed by Certbot | |
| server_name www.zilpi.in; | |
| root /var/www/zilpi/public; |
| [user] | |
| name = Pavan Kumar Sunkara | |
| email = [email protected] | |
| username = pksunkara | |
| [core] | |
| editor = vim | |
| whitespace = fix,-indent-with-non-tab,trailing-space,cr-at-eol | |
| excludesfile = ~/.gitignore | |
| [sendemail] | |
| smtpencryption = tls |
# Remove index.php$
if ($request_uri ~* "^(.*/)index\.php$") {
return 301 $1;
}
location / {
try_files $uri $uri/ /index.php?$query_string;
# Remove from everywhere index.php
if ($request_uri ~* "^(./)index.php(/?)(.)") {
| #!/bin/sh | |
| # based on guide from Microsoft https://docs.microsoft.com/en-us/visualstudio/mac/uninstall | |
| # Uninstall Visual Studio for Mac | |
| echo "Uninstalling Visual Studio for Mac ..." | |
| sudo rm -rf "/Applications/Visual Studio.app" | |
| rm -rf ~/Library/Caches/VisualStudio | |
| rm -rf ~/Library/Preferences/VisualStudio |
There are two main modes to run the Let's Encrypt client (called Certbot):
Webroot is better because it doesn't need to replace Nginx (to bind to port 80).
In the following, we're setting up mydomain.com.
HTML is served from /var/www/mydomain, and challenges are served from /var/www/letsencrypt.
| server { | |
| listen 80 default_server; | |
| listen [::]:80 default_server; | |
| root /your/root/path; | |
| index index.html; | |
| server_name you.server.com; |
| -- Levenshtein function | |
| -- Source: https://openquery.com.au/blog/levenshtein-mysql-stored-function | |
| -- Levenshtein reference: http://en.wikipedia.org/wiki/Levenshtein_distance | |
| -- Arjen note: because the levenshtein value is encoded in a byte array, distance cannot exceed 255; | |
| -- thus the maximum string length this implementation can handle is also limited to 255 characters. | |
| DELIMITER $$ | |
| DROP FUNCTION IF EXISTS LEVENSHTEIN $$ | |
| CREATE FUNCTION LEVENSHTEIN(s1 VARCHAR(255) CHARACTER SET utf8, s2 VARCHAR(255) CHARACTER SET utf8) |
| #!/bin/bash | |
| # environment credentials | |
| host=127.0.0.1 | |
| user=root | |
| password= | |
| database=test | |
| # filename that you want to read : |
Install Package Control for easy package management.
Ctrl+`
| [ | |
| "United States" => "us", | |
| "Afghanistan" => "af", | |
| "Albania" => "al", | |
| "Algeria" => "dz", | |
| "American Samoa" => "as", | |
| "Andorra" => "ad", | |
| "Angola" => "ad", | |
| "Anguilla" => "ai", | |
| "Antarctica" => "aq", |