View gist:5295471
This file contains 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
ovs-ofctl add-flow xenbr0 "in_port=1,ip,nw_src=172.20.0.1,actions=drop" | |
ovs-ofctl add-flow xenbr0 "in_port=1,ip,nw_dst=172.20.0.1,actions=drop" |
View Windows quick settings
This file contains 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
reg add HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\ /v Hidden /t REG_DWORD /d 1 /f | |
reg add HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\ /v SuperHidden /t REG_DWORD /d 1 /f | |
reg add HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\ /v ShowSuperHidden /t REG_DWORD /d 1 /f | |
reg add HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\ /v TaskbarGlomming /t REG_DWORD /d 0 /f | |
reg add HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\ /v TaskbarGlomLevel /t REG_DWORD /d 2 /f | |
reg add HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\ /v TaskbarSmallIcons /t REG_DWORD /d 1 /f | |
reg add HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\ /v HideFileExt /t REG_DWORD /d 0 /f | |
reg add HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\ /v FriendlyTree /t REG_DWORD /d 1 /f | |
reg add HKEY_CURRENT_USER |
View gist:6375515
This file contains 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
task wrapper(type: Wrapper) { | |
gradleVersion = '1.7' | |
jarFile "${project.projectDir}/.gradle/wrapper/gradle-wrapper.jar" | |
} |
View gist:7401737
This file contains 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
apply plugin: 'idea' | |
idea.module.iml { | |
def customDependencies = ['org.objectweb.proactive', 'org.ow2.proactive'] | |
whenMerged { module -> | |
// to reorder dependencies | |
def existingDependencies = module.dependencies | |
module.dependencies = new LinkedHashSet() | |
configurations.compile.resolvedConfiguration.resolvedArtifacts.each { | |
if (it.moduleVersion.id.group == project.group || customDependencies.contains(it.moduleVersion.id.group) ) { | |
logger.info("Custom idea: adding ${it.name}") |
View gist:8937568
This file contains 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
set -x | |
[ -f "$0" ] && SCRIPT=$0 | |
TARGET1=$1 | |
shift | |
TARGETS=$* | |
TARGET2=$1 | |
for TARGET in $TARGETS | |
do |
View workflow.xml
This file contains 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"?> | |
<job xmlns="urn:proactive:jobdescriptor:dev" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="urn:proactive:jobdescriptor:dev http://www.activeeon.com/public_content/schemas/proactive/jobdescriptor/dev/schedulerjob.xsd" | |
name="BashHelloWorld" priority="normal" cancelJobOnError="false"> | |
<taskFlow> | |
<task name="BashScript"> | |
<scriptExecutable> | |
<script> | |
<code language="bash"> | |
echo "Hello World" |
View build.sh
This file contains 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
git clone https://github.com/youribonnaffe/jsr223-nativeshell.git | |
cd jsr223-nativeshell | |
./gradlew | |
java -cp build/libs/jsr223-nativeshell-0.1.jar jsr223.nativeshell.Main bash echo Hello World |
View gist:10016567
This file contains 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
@Grab(group='org.ccil.cowan.tagsoup', | |
module='tagsoup', version='1.2' ) | |
def tagsoupParser = new org.ccil.cowan.tagsoup.Parser() | |
def slurper = new XmlSlurper(tagsoupParser) | |
def htmlParser = slurper.parseText(new File('file.html').text) | |
htmlParser.'**'.findAll{ it.name() == 'img'}.each { | |
if(it.@width != "") { | |
println "Resizing ${it.@src} to width ${it.@width}" | |
View gist:76dfab1c2b4fa1319ce9
This file contains 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
unzip ProActiveScheduling-3.4.4_bin_full.zip | |
cd ProActiveScheduling-3.4.4_bin_full | |
./bin/unix/scheduler-start-gui -Dproactive.useIPaddress=true -Dproactive.net.interface=docker0 |
View job.xml
This file contains 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"?> | |
<job xmlns="urn:proactive:jobdescriptor:dev" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="urn:proactive:jobdescriptor:dev ../../src/scheduler/src/org/ow2/proactive/scheduler/common/xml/schemas/jobdescriptor/dev/schedulerjob.xsd" | |
name="docker" priority="normal" cancelJobOnError="false"> | |
<taskFlow> | |
<task name="run"> | |
<scriptExecutable> | |
<script> | |
<code language="groovy"> | |
println "ps -e".execute().text |
OlderNewer