Skip to content

Instantly share code, notes, and snippets.

for (job in Hudson.instance.getItems(AbstractProject.class))
{
for (entry in job.getProperties()) {
def prop = entry.getValue()
if (prop instanceof hudson.security.AuthorizationMatrixProperty)
{
println(prop)
job.removeProperty(prop)
}
}
def jobs = Hudson.instance.getItems(AbstractProject.class)
for (job in jobs)
{
for (entry in job.getProperties()) {
def prop = entry.getValue()
if (prop instanceof hudson.security.AuthorizationMatrixProperty) {
for (jobN in jobs) {
if (jobN != job)
jobN.addProperty(prop)
# MPlayer M2TS troubleshooting
# larger number
mplayer -tsprobe nnn
# force libavformat
mplayer -demuxer lavf
# ffmpeg-mt
mplayer -lavdopts threads=3 -vf yadif
browser.taskbar.previews.enable
# set static IP
netsh interface ip set address eth0 static 192.168.11.1 255.255.255.252
# set dhcp
netsh interface ip set address eth0 dhcp
# set MTU
netsh interface ipv4 set subinterface "Local Area Connection" mtu=9000 store=persistent
Imports System
Imports EnvDTE
Imports EnvDTE80
Imports EnvDTE90
Imports EnvDTE90a
Imports EnvDTE100
Imports System.Diagnostics
Public Module IndentStyle
Public Sub Space2()
@echo off
call "%ProgramFiles(x86)%\Microsoft Visual Studio 10.0\VC\vcvarsall.bat" x86
"%~dp0configure.exe" -debug-and-release -opensource -ltcg -no-qt3support -plugin-sql-odbc -plugin-sql-mysql -plugin-sql-psql -plugin-sql-sqlite -platform win32-msvc2010
Private Sub DocumentEvents_Documents(ByVal document As EnvDTE.Document) _
Handles DocumentEvents.DocumentSaved
Try
' Remove all the trailing whitespaces.
If vsFindResult.vsFindResultReplaced = _
DTE.Find.FindReplace( _
vsFindAction.vsFindActionReplaceAll, _
"{:b}+$", _
vsFindOptions.vsFindOptionsRegularExpression, _
String.Empty, _
@JackieKu
JackieKu / Rakefile
Created October 21, 2010 02:04 — forked from andreyvit/Rakefile
require 'rake/clean'
HAML = FileList['**/*.haml']
LESS = FileList['**/*.less']
COFFEE = FileList['**/*.coffee']
MINJS = FileList['**/*.js']
HTML = HAML.ext('html')
CSS = LESS.ext('css')
JS = COFFEE.ext('js')

Multiple files

  • :e# C-^

    toggle between two buffers

  • :bn :bp :br :bf :bl

    walk through multiple buffers