Symbol not found: _ruby_current_thread (LoadError) ruby 1.9.3-p125

If you have that issue it’s an issue with the gem gem ‘ruby-debug19’, :require => ‘ruby-debug’. To resolved this just use:
gem ‘debugger’
and it’s done

Anuncios

WSUS

All command line options for the wuauclt:

From a dump of the .exe (W2k3 R2 version ) we can extract the following options:
/DetectNow
/ReportNow
/RunHandlerComServer
/RunStoreAsComServer
/ShowSettingsDialog
/ResetAuthorization
/ResetEulas
/ShowWU
/ShowWindowsUpdate
/SelfUpdateManaged
/SelfUpdateUnmanaged
/UpdateNow
/ShowWUAutoScan
/ShowFeaturedUpdates
/ShowOptions
/ShowFeaturedOptInDialog
/DemoUI

Windows update service can be started from command line(CMD) using the below command.

net start wuauserv

It can be stopped from windows command line(CMD) using the below net stop command.

net stop wuauserv

To restart the wsus server you can run:

net stop WSUSService

and

net start WSUSService

SNMP on windows

To modify the traps or the access to the SNMP 
you can open the services console, and find SNMP 
services in case the Security tap it's lock you can modify 
the information on the registries:

HKLM\SOFTWARE\Policies\SNMP\Parameters\ValidCommunities
HKLM\SOFTWARE\Policies\SNMP\Parameters\PermittedManagers

To add a host on the accept snmp packets, 
create a new string key on the ValidCommunities 
regestry, after this restart the service, 
and everything will start working.

Insecure world writable dir on rails

Error: warning: Insecure world writable dir /usr/local/bin in PATH, mode 040766

I found this error at running any rails command, this is due UNIX doesn’t like the word writable on that path; the solution:

sudo chmod go-w /usr/local/bin

So breaking down the command above:

chmod – change the ‘mode’ of the file (i.e. its permissions)

go – for group(g) and others(o)

-w – (minus w) remove write permission

/home/chance – the file (or directory) in question