I use Namecheap.com as a registrar, and they resale SSL Certs from a number of other companies, including Comodo.
These are the steps I went through to set up an SSL cert.
| /* | |
| * CryptoJS by default: | |
| * - uses CBC mode | |
| * - pkcs7 for padding | |
| * - evpKDF to extract key | |
| * - part of the key is used as IV | |
| * - before converting to base64 it makes "Salt__"+salt+encrypted_text | |
| */ | |
| var CryptoJS = require('crypto-js'); |
| #!/usr/bin/env groovy | |
| node('php') { | |
| stage('Get code from SCM') { | |
| checkout( | |
| [$class: 'GitSCM', branches: [[name: '*/#your-dev-branch#']], | |
| doGenerateSubmoduleConfigurations: false, | |
| extensions: [], | |
| submoduleCfg: [], |
| # vim: ts=2 | |
| # | |
| require 'fluent/parser' | |
| module Fluent | |
| class TextParser | |
| class PhpErrorParser < Parser | |
| Plugin.register_parser('phperror', self) | |
| config_param :xdebug, :bool, :default => false |
| var EventYouTubeVideo = (function(){ | |
| var module = {}; | |
| module.init = function(){ | |
| var tag = document.createElement('script'); | |
| tag.src = "http://www.youtube.com/iframe_api"; | |
| var firstScriptTag = document.getElementsByTagName('script')[0]; | |
| firstScriptTag.parentNode.insertBefore(tag, firstScriptTag); | |
| }; | |
I use Namecheap.com as a registrar, and they resale SSL Certs from a number of other companies, including Comodo.
These are the steps I went through to set up an SSL cert.
| #!/usr/bin/expect | |
| #author PeterZhang | |
| set pass "YOUR_PASSPHRASE" | |
| spawn ssh-add $HOME/.ssh/id_rsa | |
| expect "*passphrase*" {send "$pass\r"} | |
| interact |
| #!/bin/bash | |
| # Send login info to slack | |
| IP=$(echo $SSH_CONNECTION | awk '{print $1}') | |
| TIME=$(date -u "+%Y-%m-%d %H:%M:%S %Z") | |
| MESSAGE="$(whoami) just connected to $(hostname) via $IP at $TIME" | |
| SLACK_WEBHOOK="YOUR_SLACK_WEBHOOK" | |
| slack_msg() { | |
| cat <<EOF |
| #!/bin/bash | |
| SLOWDUMP="/opt/mysql/bin/mysqldumpslow" | |
| EMAIL_TO="$YOUR_EMAIL" | |
| SLOWLOG_FILE="/var/log/mysql-slow.log" | |
| SLOWLOG_ALL="/var/log/mysql-slow-all.log" | |
| text=$(cat "$SLOWLOG_FILE") | |
| if [ "$text" != "" ]; then | |
| echo "find update, send mail" | |
| $SLOWDUMP $SLOWLOG_FILE | mutt -s "[BANANA] mysql slow query report" $EMAIL_TO |
| #!/bin/bash | |
| SERVER="" | |
| PORT=8080 | |
| PASSWORD="" | |
| iptables -t nat -N SHADOWSOCKS | |
| iptables -t mangle -N SHADOWSOCKS | |
| # Ignore your shadowsocks server's addresses |
| #!/bin/bash | |
| w3m "http://www.iciba.com/$@" |