For educational reasons I've decided to create my own CA. Here is what I learned.
Lets get some context first.
#! /bin/bash | |
### Console Google Translate | |
### Example usage: | |
### gtran.sh en fr lovely spam | |
USAGE="Usage: | |
$0 en es Lovely spam! | |
Some codes: en|fr|de|ru|nl|it|es|ja|la|pl|bo | |
All language codes: |
#301 Redirects for .htaccess | |
#Redirect a single page: | |
Redirect 301 /pagename.php http://www.domain.com/pagename.html | |
#Redirect an entire site: | |
Redirect 301 / http://www.domain.com/ | |
#Redirect an entire site to a sub folder | |
Redirect 301 / http://www.domain.com/subfolder/ |
#!/bin/bash | |
# Application Deployer | |
# @author: @IAmReliQ | |
# @link: https://gist.github.com/reliq/75dc97a713982150b18d1825a907be4f | |
# | |
# | |
# Input: | |
# $1 - Server to deploy to | |
# $2 - Remote user home | |
# $3 - Remote username |
TOKEN="xoxp-abc" | |
CHANNEL="some-channel" | |
TEXT="hello" | |
curl -X POST "https://slack.com/api/chat.postMessage" -d "token=$TOKEN&channel=$CHANNEL&text=$TEXT" |
/** | |
* Escapes the inserted value for LDAP. | |
* | |
* @param string $value The value to escape | |
* @param string $ignore The characters to ignore | |
* @param int $flags The PHP flag to use | |
* | |
* @return bool|string | |
*/ | |
public function escapeManual($value, $ignore = '*', $flags = 0) |
var http = require("https"); | |
var querystring = require('querystring'); | |
//2 attachments as JavaScript Objects | |
var attachments = [{ | |
fallback: "Attachment 1 Fallback", | |
title: "This is Attachment 1", | |
text: "Attachment 1 Text", | |
color: "#3964db" | |
}, { |