openssl genrsa -out server.key 2048
openssl req -new -x509 -key server.key -out server.pem -days 3650
sed -i '/<pattern>/s/^/#/g' file #comment | |
sed -i '/<pattern>/s/^#//g' file #uncomment |
#!/usr/bin/env bash | |
##### | |
# Script to install postfix | |
##### | |
DOMAIN="example.com" | |
EMAIL="haisum@example.com" | |
PASSWORD="example.com1*" |
function sleepFor( sleepDuration ){ | |
var now = new Date().getTime(); | |
while(new Date().getTime() < now + sleepDuration){ /* do nothing */ } | |
} |
{ | |
"cmd" : ["gcc", "$file_name", "-o", "${file_base_name}.exe"], | |
"selector" : "source.c", | |
"shell": true, | |
"working_dir" : "$file_path", | |
"variants" : [ | |
{ "name": "Run", | |
"cmd" : ["${file_base_name}.exe"] | |
} |
response='{"buildsNumbers":[{"uri":"/7","started":"2015-11-26T04:28:24.443-0500"},{"uri":"/8","started":"2015-11-26T06:31:54.770-0500"}],"uri":"http://example.com/api"}' | |
python -c "import json; s=json.loads('$response');print(max(s['buildsNumbers'], key = (lambda key: int(key['uri'][1:])))['uri']);" |
#!/bin/bash -x | |
#Tue Jul 2 15:32:21 CEST 2013 | |
#Made by Edward Z. | |
set -e #stops execution if a variable is not set | |
set -u #stop execution if something goes wrong | |
usage() { | |
echo "usage: $(basename $0) [option]" | |
echo "option=full: do a full backup of vinnie /var/lib/mysql using innobackupex, aprox time 6 hours." |
<?xml version="1.0" encoding="UTF-8"?> | |
<definitions name="Hsmpp Service" | |
targetNamespace="http://www.csoft.co.uk/dtd/sendsms5.wsdl" | |
xmlns:tns="http://www.csoft.co.uk/dtd/sendsms5.wsdl" | |
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" | |
xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xmlns:xsd="http://www.w3.org/2001/XMLSchema" | |
xmlns:ns2="http://www.csoft.co.uk/dtd/sendsms5.xsd" | |
xmlns:SOAP="http://schemas.xmlsoap.org/wsdl/soap/" |
select | |
src_cc.owner as src_owner, | |
src_cc.table_name as src_table, | |
src_cc.column_name as src_column, | |
dest_cc.owner as dest_owner, | |
dest_cc.table_name as dest_table, | |
dest_cc.column_name as dest_column, | |
c.constraint_name | |
from | |
all_constraints c |
#!/bin/bash | |
SRC=$1 | |
DST=$2 | |
MSG=$3 | |
CONN=$4 | |
GROUP=$5 | |
# Example of saving received sms to a file as csv |