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
$ openssl genrsa -des3 -out domainname.key 2048 # protect key with passphrase | |
$ openssl genrsa -out domainname.key 2048 # do not use passphrase | |
$ openssl req -sha1 -new -key domainname.key -out domainname.csr | |
# ... truncated | |
Country Name (2 letter code) [XX]:PL | |
State or Province Name (full name) []:Mazowieckie | |
Locality Name (eg, city) [Default City]:Warsaw | |
Organization Name (eg, company) [Default Company Ltd]: | |
Organizational Unit Name (eg, section) []: | |
Common Name (eg, your name or your server's hostname) []:my.domain.com |
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
NfcAdapter nfcAdapter = NfcAdapter.getDefaultAdapter(getApplicationContext()); | |
if ( nfcAdapter == null ) { | |
// Alert user that his device is incompatible | |
// or deal with it in different way | |
Log.w("nfc-test", "No NFC adapter present"); | |
} else { | |
if ( nfcAdapter.isEnabled() ) { | |
// Everything ok: NFC present and enabled. | |
Log.d("nfc-test", "NFC enabled"); |
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
<uses-feature android:name="android.hardware.nfc" android:required="true" /> |
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 | |
USERS=($(ps axu | cut -f 1 -d \ | tail -n +2 | sort | uniq | xargs echo -n)) | |
echo ${#USERS[@]} users: ${USERS[@]} |
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
$ yum install expat expat-devel openssl openssl-devel | |
$ yum remove git git-all |
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
$ wget http://git-core.googlecode.com/files/git-1.8.1.tar.gz | |
$ tar zxf git-1.8.1.tar.gz | |
$ cd git-1.8.1 | |
$ ./configure --with-expat --with-openssl |
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
checking for curl_global_init in -lcurl... yes | |
checking for XML_ParserCreate in -lexpat... yes |
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
$ make | |
$ make install |
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
$ apt-get install python-setuptools | |
$ wget http://buildbot.googlecode.com/files/buildbot-0.8.7p1.tar.gz | |
$ wget http://buildbot.googlecode.com/files/buildbot-slave-0.8.7p1.tar.gz | |
$ tar zxf buildbot-0.8.7p1.tar.gz | |
$ tar zxf buildbot-slave-0.8.7p1.tar.gz | |
$ easy_install buildbot-0.8.7p1 | |
$ easy_install buildbot-slave-0.8.7p1 |
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
# Syntax: buildbot create-master DIR/ | |
$ buildbot create-master master/ | |
$ cp master/master.cfg.sample master/master.cfg | |
# Syntax: buildslave create-slave DIR MASTER_CONN NAME PASS | |
$ buildslave create-slave slave/ localhost:9989 example-slave pass |