Simple as typing in terminal:
mail
d*
q
That's it.
Simple as typing in terminal:
mail
d*
q
That's it.
This must be AFTER including recipe mysql::server
Chef: Message at compile phase that looks like a warning:
INFO: Could not find previously defined grants.sql resource
Solution: Suppress that message
It is from opscode/mysql Cookbook because some template resource is not specified. So, to solve, just copy the code from recipe, before including opscode/mysql cookbook
Add command line completion to Windows in two copy-paste steps
(
echo/@echo off
echo/:: History alias is assuming you are using clink with default clink profile location
echo/doskey history=cat "%LOCALAPPDATA%\clink\.history" $*
echo/doskey l=ls -CF --color=auto $*
echo/doskey la=ls -A --color=auto $*
echo/doskey ll=ls -alF --color=auto $*
See my GitHub API current rate limits:
curl -sI "https://api.github.com/users/cookbooks/repos" | grep "^X-RateLimit" Any left? curl -sI "https://api.github.com/users/cookbooks/repos" | sed -nr 's/^X-RateLimit-Remaining: (.*)$/\1/p'
Or even simpler:
curl -s "https://api.github.com/rate_limit"
| :: Download ZeroMQ for Windows [Installers for Microsoft Windows](http://www.zeromq.org/distro:microsoft-windows) | |
| :: Use only 32bit install, even on 64bit Windows and only 2.2.0 version (not 3.x) | |
| :: Make sure you're not using the 3.x beta version of zeromq - you must use the official 2.x libs | |
| ZeroMQ-<whatever>.exe /S /D=c:\tools\zeromq && echo ZeroMQ for Windows installed | |
| :: DLL must be renamed | |
| copy c:\tools\zeromq\bin\libzmq-v100-mt.dll c:\tools\zeromq\bin\libzmq.dll | |
| :: Install Ruby Gem zmq |
| :: Make --no-ri --no-rdoc default gem install options (without documentation) | |
| :: Possible variations: | |
| :: For every user: | |
| :: echo gem: --no-ri --no-rdoc > "%PROGRAMDATA%\gemrc" | |
| :: Only for you | |
| :: echo gem: --no-ri --no-rdoc >> "%USERPROFILE%\.gemrc" | |
| :: | |
| :: Note: In Windows, %PROGRAMDATA% is /etc on Linux | |
| :: | |
| :: But finally, the best way to do it. See: http://stackoverflow.com/a/7662245/1579985 |
Batch file vagrant.bat sets both GEM_HOME and GEM_PATH environment variables.
It would be nice of him to restore old values after finishing it's work.
Something like:
:: Save variables
SET "GEM_HOME_SAVED=%GEM_HOME%"
SET "GEM_PATH_SAVED=%GEM_PATH%"Linux Mint has something called MintMenu button that has a functionality similar to the Start button in Windows.
To define keyboart shortcut for this button, we need to right-click on the MintMenu button on the panel
and from the dropdown to click on Preferences. Change the keyboard shortcut there.
Log out and back in, to see effects of changes made.
Recursively convert text files from DOS to Unix line-endings
Type in Windows command line:
for /r "miscellaneous" %x in ("*") do @dos2unix --d2u --verbose --skipbin "%x"
Using variables, also called repeated nodes in YAML, but in JSON variant of YAML format. I'm using this for the whole subtree. Great!
{
"original": &VAR
{
"x": "Value x",
"subtree":
{
"y": "Value Y"