-
:e# C-^
toggle between two buffers
-
:bn :bp :br :bf :bl
walk through multiple buffers
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
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) | |
} | |
} |
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
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) |
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
# 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 |
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 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 |
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
@echo off | |
pushd "%~dp0" | |
for %%f in ( | |
bin\git-receive-pack.exe | |
bin\git-upload-archive.exe | |
libexec\git-core\git.exe | |
libexec\git-core\git-add.exe | |
libexec\git-core\git-annotate.exe |
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
Imports System | |
Imports EnvDTE | |
Imports EnvDTE80 | |
Imports EnvDTE90 | |
Imports EnvDTE90a | |
Imports EnvDTE100 | |
Imports System.Diagnostics | |
Public Module IndentStyle | |
Public Sub Space2() |
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
@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 |
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
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, _ |
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
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') |
OlderNewer