This gist shows how to create a GIF screencast using only free OS X tools: QuickTime, ffmpeg, and gifsicle.
To capture the video (filesize: 19MB), using the free "QuickTime Player" application:
# http://www.mono-project.com/Compiling_Mono_on_OSX | |
# Version 3.2.6 | |
require 'formula' | |
class Mono < Formula | |
url 'http://download.mono-project.com/sources/mono/mono-3.2.6.tar.bz2' | |
sha1 '27a08194f21ab853c669f42a1435e3a6fc326b8b' | |
#url 'http://download.mono-project.com/sources/mono/mono-2.10.9.tar.bz2' | |
#sha1 '1a6e8c5a0c3d88d87982259aa04402e028a283de' |
using System.Web.Mvc; | |
using System.Web.Mvc.Html; | |
using System.Linq; | |
namespace Web.Extensions | |
{ | |
public static class HtmlHelpers | |
{ | |
public static MvcHtmlString MenuLink(this HtmlHelper htmlHelper, string linkText, string actionName, | |
string controllerName, bool onlyMatchCt = false, string[] relatedCts = null) |
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
# defaults for jenkins continuous integration server | |
JENKINS_ARGS="-jnlpUrl http://test.lnc.jp:8080/computer/wock/slave-agent.jnlp" | |
# jenkins home location | |
JENKINS_HOME=/opt/jenkins-slave | |
# location of the jenkins war file | |
JENKINS_WAR=$JENKINS_HOME/slave.jar | |
# pulled in from the init script; makes things easier. | |
NAME=jenkins |
source: http://www.markbrilman.nl/2011/08/howto-convert-a-pfx-to-a-seperate-key-crt-file/
openssl pkcs12 -in [yourfile.pfx] -nocerts -out [keyfile-encrypted.key]
What this command does is extract the private key from the .pfx file. Once entered you need to type in the importpassword of the .pfx file. This is the password that you used to protect your keypair when you created your .pfx file. If you cannot remember it anymore you can just throw your .pfx file away, cause you won’t be able to import it again, anywhere!. Once you entered the import password OpenSSL requests you to type in another password, twice!. This new password will protect your .key file.
Now let’s extract the certificate:
openssl pkcs12 -in [yourfile.pfx] -clcerts -nokeys -out [certificate.crt]
<!- .... ->
<log4net>
<appender name="RollingLogFileAppenderLogstash" type="log4net.Appender.RollingFileAppender">
<encoding value="utf-8" />
<!--该目录必需有 IIS用户 写权限-->
<file value="X:/var/log/[app_name]/logfile.log" />
<appendToFile value="true" />
<rollingStyle value="Date" />
<lockingModel type="log4net.Appender.FileAppender+MinimalLock" />
#//INSTRUCTIONS FOR DOWNLOADING AND INSTALLING JAVA WITHIN LINUX SYSTEMS AND UPDATING ALTERNATIVES FILES | |
#// rpm Installation Oracle JDK 1.8.0_151 | |
wget --no-check-certificate --no-cookies --header "Cookie: oraclelicense=accept-securebackup-cookie" http://download.oracle.com/otn-pub/java/jdk/8u151-b12/e758a0de34e24606bca991d704f6dcbf/jdk-8u151-linux-x64.rpm | |
#// installation command | |
#// -i = install | |
#// -n = non-interactive | |
#// -v = verbose | |
#// -h = The hash table is a feature of bash that prevents it from having to search $PATH every time you type a command by caching the results in memory. |