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
from github import Github | |
# or using an access token | |
g = Github("<token>") | |
# Then play with your Github objects: | |
for repo in g.get_user().get_repos(): | |
repo_details = g.get_repo(repo.id) | |
if not repo_details.fork: | |
repo_details.edit(private=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 | |
# This is the init script for starting up the | |
# Jakarta Tomcat server | |
# | |
# chkconfig: 345 91 10 | |
# description: Starts and stops the Tomcat daemon. | |
# | |
# Source function library. | |
. /etc/rc.d/init.d/functions |
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 java.io.InputStream; | |
import java.sql.Timestamp; | |
import javax.servlet.http.HttpServletRequest; | |
import org.apache.cxf.binding.soap.SoapMessage; | |
import org.apache.cxf.binding.soap.interceptor.AbstractSoapInterceptor; | |
import org.apache.cxf.helpers.IOUtils; | |
import org.apache.cxf.interceptor.Fault; | |
import org.apache.cxf.io.CachedOutputStream; |
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
org.ops4j.pax.url.mvn.repositories= \ | |
http://repo1.maven.org/maven2, \ | |
http://repo.fusesource.com/nexus/content/repositories/releases, \ | |
http://repo.fusesource.com/nexus/content/groups/ea, \ | |
http://repository.springsource.com/maven/bundles/release, \ | |
http://repository.springsource.com/maven/bundles/external, \ | |
http://scala-tools.org/repo-releases default |
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 java.io.BufferedReader; | |
import java.io.File; | |
import java.io.FileInputStream; | |
import java.io.FileOutputStream; | |
import java.io.InputStream; | |
import java.io.InputStreamReader; | |
import java.io.OutputStream; | |
import java.security.KeyStore; | |
import java.security.MessageDigest; | |
import java.security.cert.CertificateException; |
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
alias clear-orig='find . -iname "*.orig" -exec rm "{}" ";"' |
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
$$ | |
CREATE PROCEDURE simpleproc (OUT param1 INT) | |
BEGIN | |
SELECT COUNT(*) INTO param1 FROM t; | |
END | |
$$ |
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
<jdbc:initialize-database data-source="dataSource" > | |
<jdbc:script execution="INIT" separator="//" location="classpath:/scripts/StoredProcedures/*.sql"/> | |
</jdbc:initialize-database> |
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
delimiter // | |
CREATE PROCEDURE simpleproc (OUT param1 INT) | |
BEGIN | |
SELECT COUNT(*) INTO param1 FROM t; | |
END// | |
delimiter ; |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xmlns:camel="http://camel.apache.org/schema/blueprint" | |
xsi:schemaLocation=" | |
http://www.osgi.org/xmlns/blueprint/v1.0.0 http://www.osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd | |
http://camel.apache.org/schema/blueprint http://camel.apache.org/schema/blueprint/camel-blueprint.xsd"> | |
<reference id="helloBean" interface="com.osgi.HelloWorldInterface"/> | |
<bean id="sageMasterStockService" class="com.osgi.blueprint.impl.HelloWorldService"> | |
<property name="helloBean" ref="helloBean"/> |
NewerOlder