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
$ cat main.swift | |
import Kitura | |
import HeliumLogger | |
// Initialize HeliumLogger | |
HeliumLogger.use() | |
// Create a new router | |
let router = Router() |
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
func setupItem( router: Router ) { | |
router.post( "/:id" ) { | |
let myJSON = JSON( ["HTTP _POST item id": id] ) | |
response.status( 200 ).send( json: myJSON ) | |
next() | |
} | |
router.get( "/:id" ) { | |
let myJSON = JSON( ["HTTP _GET item id ": id] ) | |
response.status( 200 ).send( json: myJSON ) } | |
next() |
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
// | |
// AppDelegate.swift | |
// test | |
// | |
// Created by IOANNIS DELIGIANNIS on 1/2/16. | |
// Copyright © 2016 IOANNIS DELIGIANNIS. All rights reserved. | |
// | |
import Cocoa |
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
import UIKit | |
import PlaygroundSupport | |
let thisIsNotPlayground = false | |
//: NSLayoutConstraint convenience methods | |
public extension NSLayoutConstraint { | |
public static func pinning(attribute: NSLayoutAttribute, ofView firstView: UIView, toView secondView: UIView, multiplier: CGFloat = 1, offset: CGFloat = 0) -> NSLayoutConstraint { | |
return NSLayoutConstraint(item: firstView, attribute: attribute, relatedBy: .equal, toItem: secondView, attribute: attribute, multiplier: multiplier, constant: offset) |
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
# FileMaker CWP | |
server { | |
listen 0.0.0.0:8080; | |
location / { | |
proxy_pass http://127.0.0.1:80; | |
proxy_set_header Host $host; | |
proxy_set_header X-Real-IP $remote_addr; | |
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | |
} |
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
{ | |
"brand": "kvm", | |
"alias": "w2k16", | |
"cpu_type": "Nehalem", | |
"vcpus": 1, | |
"autoboot": false, | |
"ram": 16384, | |
"resolvers": ["10.0.0.10","208.67.222.222","208.67.220.220"], | |
"disks": [ | |
{ |
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
cd /opt | |
git clone https://github.com/lukas2511/dehydrated | |
cd dehydrated | |
sudo mkdir -p /usr/local/etc/dehydrated | |
sudo mkdir -p /var/www/dehydrated | |
cp docs/examples/config /usr/local/etc/dehydrated | |
vim /usr/local/etc/dehydrated/config | |
echo "domain.tld mail.domain.tld www.domain.tld ws.domain.tld api.domain.tld" > /usr/local/etc/dehydrated/domains.txt | |
Make sure /var/www/dehydrated is exposed publicly as this is the temp folder used for validation; \ |
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
#import <Foundation/Foundation.h> | |
int main(int argc, const char * argv[]) | |
{ | |
NSRunLoop * runLoop; | |
CLIMain * main; // replace with desired class | |
@autoreleasepool | |
{ | |
// create run loop |
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 | |
echo "building TomSellers's nmap..." | |
set -x -e | |
pwd | |
git clone https://github.com/TomSellers/nmap.git | |
( cd nmap && git branch build 7c833b933e771923e660 && checkout build ) | |
( cd nmap && ./configure --prefix=/opt/nmap ) | |
( cd nmap/libdnet-stripped && make ) | |
( cd nmap/liblinear && make ) |
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
/* | |
FileMaker 16 Insert Other Symbol all alternatives is a copy of the following table: | |
http://www.filemaker.com/help/16/fmp/en/index.html#page/FMP_Help%2Fget-functions.html%23wwconnect_header | |
when you paste this file into a text block in FileMaker please remember to set the tab accordingly. | |
1) Select text block | |
2) Open inspector | |
3) Go to appearance( the palette icon ), close all the sections apart from the bottom one in which is named tab, | |
add a tab; for me 2 and 6 cm was reasonable. |