Skip to content

Instantly share code, notes, and snippets.

View danieljimenez's full-sized avatar

Daniel danieljimenez

  • Texas
  • 13:20 (UTC -05:00)
View GitHub Profile
sudo defaults write /Library/Preferences/com.apple.MCXDebug debugOutput -2
sudo defaults write /Library/Preferences/com.apple.MCXDebug collateLogs 1
sudo odutil set log debug
@danieljimenez
danieljimenez / gist:1511959
Created December 22, 2011 21:34
props.conf
[javagc]
SHOULD_LINEMERGE=FALSE
DATETIME_CONFIG=CURRENT
LINE_BREAKER=([\r\n]+)\d+\.\d+:\s+
@danieljimenez
danieljimenez / gist:1512272
Created December 22, 2011 23:16
splunk cmd btool --debug props list javagc
system [javagc]
system ANNOTATE_PUNCT = True
system BREAK_ONLY_BEFORE =
system BREAK_ONLY_BEFORE_DATE = True
system CHARSET = AUTO
system DATETIME_CONFIG = CURRENT
system HEADER_MODE =
system LEARN_SOURCETYPE = true
SEVERE: Exception sending context initialized event to listener instance of class org.xeustechnologies.jcl.web.JclContextLoaderListener
org.xeustechnologies.jcl.exception.JclContextException: org.xeustechnologies.jcl.exception.JclException: Unknown Resource type
at org.xeustechnologies.jcl.context.XmlContextLoader.loadContext(XmlContextLoader.java:161)
at org.xeustechnologies.jcl.web.JclContextLoaderListener.contextInitialized(JclContextLoaderListener.java:63)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4206)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4705)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:840)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)
WITH sortOrderFixer AS
(
SELECT [YourId], ROW_NUMBER() OVER(ORDER BY [NameColumn] asc) AS RowNum
from [YourTable]
where active = 'yes'
)
update [YourTable] set SortOrder = sortOrderFixer.RowNum
from [YourTable] t join
sortOrderFixer on sortOrderFixer.[YourId] = t.[YourId]
@danieljimenez
danieljimenez / -
Last active August 29, 2015 14:16
/System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart -activate -configure -access -off -restart -agent -privs -all -allowAccessFor -allUsers
set completion-ignore-case on
set show-all-if-ambiguous on
set mark-directories on
set mark-symlinked-directories on
"\e[A": history-search-backward
"\e[B": history-search-forward
$if Bash
Space: magic-space
$endif
Contributor: Adam Edwards
1. Install chocolatey – http://chocolatey.org
2. Install PSReadline to give PowerShell readline power – use the –emacs mode in your PowerShell profile so you have history search and other keyboard behavior like bash: https://github.com/lzybkr/PSReadLine
3. Use chocolatey to install ConEmu, a terminal replacement that supports ANSI colors, dynamic resizing, “normal” text selection and cut and paste, and lots of other customizations: cinst conemu. And set the startup shell for ConEmu to PowerShell (not cmd.exe)
4. Use chocolatey to install an editor – if you’re not already an emacs or vim person, use it to install Atom or Sublime, or Notepad++
5. Always use PowerShell – do not use cmd.exe
6. Install ChefDK and use chef shell-init powershell to get at your Chef Ruby environment.
7. Use Pantry – it can automate #1, 3, 4, and 6 and will probably have support for #2. https://github.com/chef/pantry-chef-repo
8. If you get stuck on a box where you don’t an editor or chocolatey and need to e
fuel-prices.txt
list-resource-record-sets