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:
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 |
# 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' |
#!/bin/bash | |
# | |
# Restart Bluetooth Module on Mac OS X | |
# | |
# Requires Blueutil to be installed: http://brewformulas.org/blueutil | |
BT="/usr/local/bin/blueutil" | |
log() { | |
echo "$@" |
Windows just released the windows subsystem for linux feature to the public with its latest windows fall creator update, if you are not familiar with this feature it allows you to run linux binaries natively on windows - F.A.Q.
The feature is not enabled by default and you need to activate it, you can do it via powershell (with admin rights):
Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux
Or you can open: Control-Panel -> Programs -> Turn Windows feature on ro off, and click the "windows subsystem for linux (beta)" button.
#//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. |