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/sh | |
| # Script for managing build and version numbers using git and agvtool. | |
| # Change log: | |
| # v1.0 18-Jul-11 First public release. | |
| # v1.1 29-Sep-12 Launch git, agvtool via xcrun. | |
| version() { |
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
| import ldap | |
| def check_credentials(username, password): | |
| """Verifies credentials for username and password. | |
| Returns None on success or a string describing the error on failure | |
| # Adapt to your needs | |
| """ | |
| LDAP_SERVER = 'ldap://xxx' | |
| # fully qualified AD user name | |
| LDAP_USERNAME = '%[email protected]' % username |
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
| public class Constellation{ | |
| ... | |
| @XStreamOmmitField | |
| private byte[] starCardData; | |
| } |
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
| package com.example; | |
| import java.util.concurrent.TimeUnit; | |
| import org.springframework.context.ApplicationContext; | |
| import org.springframework.context.support.ClassPathXmlApplicationContext; | |
| import org.springframework.integration.core.MessageHandler; | |
| import org.springframework.integration.core.PollableChannel; | |
| import org.springframework.integration.core.SubscribableChannel; | |
| import org.springframework.integration.endpoint.PollingConsumer; |
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
| # Copyright (c) 2011, Eng Eder de Souza | |
| # ___ _ _ ___ | |
| # | __|__| |___ _ _ __| |___ / __| ___ _ _ _____ _ | |
| # | _|/ _` / -_) '_| / _` / -_) \__ \/ _ \ || |_ / _` | | |
| # |___\__,_\___|_| \__,_\___| |___/\___/\_,_/__\__,_| | |
| #Accessing the Google API for speech recognition! | |
| #Open a file type Wav to speech recognition | |
| #This source does not require any external programs to perform audio conversions :-) | |
| #http://ederwander.wordpress.com/2011/11/06/accessing-the-google-speech-api-python/ | |
| #Eng Eder de Souza |
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
| OBJ = genload.o | |
| BINS = genload | |
| CC=g++ | |
| OPTIMIZATION?=-O3 | |
| CFLAGS?=$(OPTIMIZATION) $(ARCH) $(PROF) -I ../hiredis | |
| CCLINK?=-pthread | |
| LDFLAGS?=-L../hiredis -lhiredis -lm | |
| OBJ = example.o |
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
| ## Configure eth0 | |
| # | |
| # vi /etc/sysconfig/network-scripts/ifcfg-eth0 | |
| DEVICE="eth0" | |
| NM_CONTROLLED="yes" | |
| ONBOOT=yes | |
| HWADDR=A4:BA:DB:37:F1:04 | |
| TYPE=Ethernet | |
| BOOTPROTO=static |
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
| ffprobe -v quiet -print_format json -show_format -show_streams "lolwut.mp4" > "lolwut.mp4.json" |
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
| #!/usr/bin/env bash | |
| # repository | |
| cd /tmp | |
| wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm | |
| rpm -Uvh epel-release-6-8.noarch.rpm | |
| # system update | |
| yum -y update | |
| yum -y groupinstall "Development Tools" | |
| yum -y install libxslt-devel libyaml-devel libxml2-devel gdbm-devel libffi-devel zlib-devel openssl-devel libyaml-devel readline-devel curl-devel openssl-devel pcre-devel git memcached-devel valgrind-devel mysql-devel ImageMagick-devel ImageMagick |
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
| MANIFEST_FILE='AndroidManifest.xml' | |
| VERSIONCODE=`grep versionCode $MANIFEST_FILE | sed 's/.*versionCode="//;s/".*//'` | |
| VERSIONNAME=`grep versionName $MANIFEST_FILE | sed 's/.*versionName="//;s/\.[0-9]*".*//'` | |
| NEWCODE=$BUILD_NUMBER | |
| NEWNAME=$VERSIONNAME.$BUILD_NUMBER | |
| echo "Updating Android build information. New version code: $NEWCODE - New version name: $NEWNAME"; | |
| sed -i 's/versionCode *= *"'$VERSIONCODE'"/versionCode="'$NEWCODE'"/; s/versionName *= *"[^"]*"/versionName="'$NEWNAME'"/' $MANIFEST_FILE |