This gist is an implementation of http://sirile.github.io/2015/05/18/using-haproxy-and-consul-for-dynamic-service-discovery-on-docker.html on top of Docker Machine and Docker Swarm.
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
Sub LangInFrames() | |
scount = ActivePresentation.Slides.Count | |
For j = 1 To scount | |
fcount = ActivePresentation.Slides(j).Shapes.Count | |
For k = 1 To fcount | |
If ActivePresentation.Slides(j).Shapes(k).HasTextFrame Then | |
ActivePresentation.Slides(j).Shapes(k).TextFrame.TextRange.LanguageID = msoLanguageIDEnglishUK | |
End If | |
Next k | |
Next j |
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
// | |
// How to use: | |
// | |
// 1. Start node: | |
// node nodeproxy.js | |
// 2. Send a URL like this: | |
// http://localhost:8080/http://www.google.com | |
// | |
// Watch www.google.com come through your local HTTP proxy. | |
// |
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
<ehcache xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../config/ehcache.xsd" updateCheck="false"> | |
<!-- This is a default configuration for 256Mb of cached data using the JVM's heap, but it must be adjusted | |
according to specific requirement and heap sizes --> | |
<defaultCache | |
maxBytesLocalHeap="256000000" | |
eternal="false" | |
timeToIdleSeconds="120" | |
timeToLiveSeconds="120" |
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
## Skeleton config file for RetroArch | |
# Save all save files (*.srm) to this directory. This includes related files like .bsv, .rtc, .psrm, etc ... | |
# This will be overridden by explicit command line options. | |
savefile_directory =/storage/.xbmc/userdata/addon_data/emulators.retroarch/save/ | |
# Save all save states (*.state) to this directory. | |
# This will be overridden by explicit command line options. | |
savestate_directory =/storage/.xbmc/userdata/addon_data/emulators.retroarch/save/ |
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
// --- cheat sheet --- | |
// | |
// Enumerator &> -> filters the output of the enumerator through an Enumeratee | |
// Enumerator >>> -> alias for andThen; adds the output of the second enumerator after the first one is done | |
// Enumerator |>> -> feeds the output of the enumerator into the given iteratee for processing | |
// --- end of cheat sheet --- | |
// Example | |
// Iteratee that sums up the size of the input: |
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
// | |
// Compile and run: | |
// scalac isnumber.scala | |
// scala IsNumber | |
// | |
// this is the class that provides the isNumber method when called on java.lang.String | |
class ExtendedString(s:String) { | |
def isNumber: Boolean = s.matches("[+-]?\\d+.?\\d+") | |
} |
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
FROM openjdk:8-jdk AS builder | |
RUN mkdir /src | |
COPY HelloWorld.java /src | |
RUN javac /src/HelloWorld.java | |
FROM openjdk:8-jre | |
COPY --from=builder /src/HelloWorld.class / | |
WORKDIR / | |
CMD ["java", "HelloWorld"] |
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
<keymap> | |
<global> | |
<remote> | |
<Yellow>RunScript("/storage/.xbmc/userdata/keymaps/sound.py")</Yellow> | |
</remote> | |
</global> | |
</keymap> |
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
xserver* x11-common x11-utils x11-xkb-utils x11-xserver-utils xarchiver xauth xkb-data console-setup xinit lightdm libx{composite,cb,cursor,damage,dmcp,ext,font,ft,i,inerama,kbfile,klavier,mu,pm,randr,render,res,t,xf86}* lxde* lx{input,menu-data,panel,polkit,randr,session,session-edit,shortcut,task,terminal} obconf openbox gtk* libgtk* alsa* nano python-pygame python-tk python3-tk scratch tsconf |
NewerOlder