Skip to content

Instantly share code, notes, and snippets.

View vladsf's full-sized avatar
💭
#Openforwork

Vlad Safronov vladsf

💭
#Openforwork
  • #openforjob
  • Tashkent
View GitHub Profile
@vladsf
vladsf / make-server-csr-with-newkey
Created November 3, 2015 15:41
Make new server certificate request with new RSA key
#!/bin/sh
umask 077
answers() {
HOSTNAME=`hostname`
echo "
[ req ]
distinguished_name = req_DN
[ req_DN ]
0.organizationName = \"1. Organization Name (leave as is)\"
@vladsf
vladsf / get_sso_cookies.py
Created July 20, 2015 14:59
This script authenticates and saves cookies for further use with RBTools.
#!/usr/bin/env python
# vim: tabstop=8 expandtab shiftwidth=4 softtabstop=4
import cookielib
import urllib2
from six.moves.urllib.parse import urlencode, urlparse, urlunparse
sso_username = "someuser"
sso_password = "password"
sso_cookies_file = "my_sso_cookies.txt"
sso_host = "login.ssohost.com"