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
cake |
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
#!/bin/bash | |
NGINX_DIR="/etc/nginx" | |
NGINX_SITES_AVAILABLE_DIR="${NGINX_DIR}/sites-available" | |
NGINX_SITES_ENABLED_DIR="${NGINX_DIR}/sites-enabled" | |
## vhost.sh (create|delete|link|unlink|list) [APP_NAME] [DOMAIN] | |
create() { | |
if [[ $# -le 1 ]]; then | |
echo "$0 create <NAME> <DOMAIN>" | |
return |
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
server { | |
listen 80; | |
server_name <DOMAIN>; | |
return 301 https://$server_name$request_uri; | |
} | |
server { | |
listen 443 ssl http2; | |
server_name <DOMAIN>; |
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
server { | |
listen 80; | |
server_name <DOMAIN>; | |
return 301 https://$server_name$request_uri; | |
} | |
server { | |
listen 443 ssl http2; | |
server_name <DOMAIN>; |
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
server { | |
listen 80; | |
server_name <DOMAIN>; | |
return 301 https://$server_name$request_uri; | |
} | |
server { | |
listen 443 ssl http2; | |
server_name <DOMAIN>; |
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
server { | |
listen 80; | |
server_name <DOMAIN>; | |
return 301 https://$server_name$request_uri; | |
} | |
server { | |
listen 443 ssl http2; | |
server_name <DOMAIN>; |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Assignment 1</title> | |
<style type="text/css"> | |
.container { | |
width: 240px; | |
height: 120px; | |
position: relative; |
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
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | |
<modelVersion>4.0.0</modelVersion> | |
<groupId>{{ PROJECT_GROUPID }}</groupId> | |
<artifactId>{{ PROJECT_ARTIFACTID }}</artifactId> | |
<version>{{ PROJECT_VERSION }}</version> | |
<properties> | |
<encoding>UTF-8</encoding> | |
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
#include "example.h" | |
Person* Person__create(char* firstName, char* lastName, unsigned int age) { | |
printf("Creating person with name \"%s %s\" and age %d.", firstName, lastName, age); | |
Person* person = malloc(sizeof(Person)); | |
person->firstName = firstName; | |
person->lastName = lastName; | |
person.age = age; | |
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
### | |
The code below repesents a section in the configuration. | |
### | |
section database { | |
var (host) = '127.0.0.1' % The host. | |
var (username) = 'root' % The username. | |
var (password) = 'admin' % The password. | |
var (schema) = 'test' % The schema. | |
NewerOlder