Hi there!
The docker cheat sheet has moved to a Github project under https://github.com/wsargent/docker-cheat-sheet.
Please click on the link above to go to the cheat sheet.
<?xml version="1.0" encoding="UTF-8"?> | |
<lifecycleMappingMetadata> | |
<lifecycleMappings> | |
<lifecycleMapping> | |
<packagingType>maven-plugin</packagingType> | |
<lifecycleMappingId>org.eclipse.m2e.jdt.JarLifecycleMapping</lifecycleMappingId> | |
<pluginExecutions> | |
<pluginExecution> | |
<pluginExecutionFilter> | |
<groupId>org.apache.maven.plugins</groupId> |
Hi there!
The docker cheat sheet has moved to a Github project under https://github.com/wsargent/docker-cheat-sheet.
Please click on the link above to go to the cheat sheet.
import datetime | |
import functools | |
from flask import ( | |
current_app, | |
make_response, | |
request | |
) | |
mkdir flaskapp && cd flaskapp | |
touch config.py run.py shell.py app.db requirements.txt | |
mkdir app | |
touch app/__init__.py app/constants.py | |
mkdir app/static app/templates | |
After finding a lot of other posts on the topic that didn't work out for me this one did the trick so I'm reposting for my own sense of self preservation.
Copy the Virtualbox autostart plist template file to your system's LaunchDaemons folder.
sudo cp \
/Applications/VirtualBox.app/Contents/MacOS/org.virtualbox.vboxautostart.plist \
-server | |
-Xms512m | |
-Xmx2048m | |
-XX:MaxPermSize=512m | |
-XX:ReservedCodeCacheSize=256m | |
-XX:+UseCodeCacheFlushing | |
-XX:+UseCompressedOops | |
-XX:+UseConcMarkSweepGC | |
-XX:+AggressiveOpts | |
-XX:+CMSClassUnloadingEnabled |
require 'facter' | |
Facter.add(:tw_cli) do | |
confine :kernel => "Linux" | |
setcode do | |
Facter::Util::Resolution.which('tw_cli') | |
end | |
end |
<html> | |
<body> | |
<p>Here are Webber’s points:</p> | |
<ul> | |
<li>If a method can be static, declare it static. Speed improvement is by a factor of 4.</li> | |
<li>echo is faster than print.(<em>* compare with list from phplens by John Lim</em>)</li> | |
<li>Use echo’s multiple parameters instead of string concatenation.</li> | |
<li>Set the maxvalue for your for-loops before and not in the loop.</li> | |
<li>Unset your variables to free memory, especially large arrays.</li> | |
<li>Avoid magic like __get, __set, __autoload</li> |
/* TypeTireitles Authors Date | |
*Create DFS and TypeTireries Chatsiri.rat 06/10/2012 | |
*Separate trie class and dfs Chatsiri.rat | |
*/ | |
#include <boost/bind.hpp> | |
#include <boost/shared_ptr.hpp> | |
#include <boost/lexical_cast.hpp> | |
#include <boost/tuple/tuple.hpp> | |
#include <boost/tuple/tuple_io.hpp> |