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
#!/bin/bash | |
if lspci | grep -i 'nvidia' | |
then | |
echo "\nNVIDIA GPU is likely present." | |
else | |
echo "\nNo NVIDIA GPU was detected. Exiting ...\n" | |
exit 1 | |
fi |
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
c = get_config() # get the config object | |
c.IPKernelApp.pylab = 'inline' # in-line figure when using Matplotlib | |
c.NotebookApp.open_browser = False # do not open a browser window by default when using notebooks | |
c.NotebookApp.token = '' # No token. But, please, please always use jupyter over ssh tunnel |
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
import play.core.StaticApplication | |
import java.io.File | |
val app = new StaticApplication(new File(".")) | |
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
scalaVersion := "2.9.1" | |
resolvers += "durgeshm repo" at "http://durgeshm.github.com/releases/" | |
libraryDependencies ++= Seq( | |
"com.twitter" %% "finagle-core" % "1.9.7", | |
"com.twitter" %% "finagle-http" % "1.9.7") |
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
scalaVersion := "2.9.1" | |
resolvers += "durgeshm repo" at "http://durgeshm.github.com/releases" | |
libraryDependencies += "com.twitter" %% "util-core" % "1.12.5" |
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
scalaVersion := "2.9.1" | |
resolvers += "durgeshm repo" at "http://durgeshm.github.com/releases/" | |
libraryDependencies ++= Seq( | |
"com.twitter" %% "finagle-core" % "1.9.6", | |
"com.twitter" %% "finagle-http" % "1.9.6") |
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
# Add this to the bottom of your settings.py | |
try: | |
from local_settings import * | |
except ImportError: | |
pass | |
# Now you can create, a specific local_settings.py on other servers | |
# and override any setting as necessary. | |
# Make sure to add local_settings.py to your .gitignore |
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 up the Django Enviroment | |
from django.core.management import setup_environ | |
import settings | |
setup_environ(settings) | |
# Normal inports, and code here |