Skip to content

Instantly share code, notes, and snippets.

View aguynamedben's full-sized avatar

Ben Standefer aguynamedben

View GitHub Profile
@aguynamedben
aguynamedben / gist:ff2810d9a4f5e8ac3e60
Last active August 29, 2015 14:18
lock your computer
If you walk away from your computer and do not lock it or log off, it poses a security risk to you and the company. Someone can use your computer in an unauthorized way even if you are away for a few minutes, such as:
Send email from your account
Tamper and delete your files
Access and download Confidential data
The easiest way to prevent unauthorized access to your desktop is to lock it when you are away, because you will not shut down any program is close any files you are working on. All you have to do to get back in is enter your password and you can pick up where you left off.
If you walk away from your computer and do not lock it or log off, it poses a security risk to you and the company. Someone can use your computer in an unauthorized way even if you are away for a few minutes, such as:
Send email from your account
Tamper and delete your files
Access and download Confidential data
The easiest way to prevent unauthorized access to your desktop is to lock it when you are away, because you will not shut
root@chef1:~/chef# chef-solo -c ~/solo.rb -j ~/chef.json
[Sun, 04 Apr 2010 14:52:53 -0600] INFO: Starting Chef Solo Run
/usr/lib/ruby/gems/1.8/gems/json-1.2.3/lib/json/common.rb:128:in `initialize': A JSON text must at least contain two octets! (JSON::ParserError)
from /usr/lib/ruby/gems/1.8/gems/json-1.2.3/lib/json/common.rb:128:in `new'
from /usr/lib/ruby/gems/1.8/gems/json-1.2.3/lib/json/common.rb:128:in `parse'
from /usr/lib/ruby/gems/1.8/gems/chef-0.8.10/bin/../lib/chef/cookbook/metadata.rb:425:in `from_json'
from /usr/lib/ruby/gems/1.8/gems/chef-0.8.10/bin/../lib/chef/cookbook_loader.rb:117:in `load_cookbooks'
from /usr/lib/ruby/gems/1.8/gems/chef-0.8.10/bin/../lib/chef/cookbook_loader.rb:116:in `each'
from /usr/lib/ruby/gems/1.8/gems/chef-0.8.10/bin/../lib/chef/cookbook_loader.rb:116:in `load_cookbooks'
from /usr/lib/ruby/gems/1.8/gems/chef-0.8.10/bin/../lib/chef/cookbook_loader.rb:105:in `each_key'
root@domU-12-31-39-07-CD-E1:~/chef# knife ec2 instance data role[emacs_server] role[chef_client]
{
"attributes": {
"run_list": [
"roles",
"role[chef_client]"
]
},
"validation_key": "-----BEGIN RSA PRIVATE KEY-
....
2010-04-08_00:00:59.55136 [Wed, 07 Apr 2010 23:58:48 +0000] INFO: Client key /etc/chef/client.pem is not present - registering
2010-04-08_00:00:59.55137 [Wed, 07 Apr 2010 23:58:48 +0000] ERROR: Net::HTTPServerException
2010-04-08_00:00:59.55138 [Wed, 07 Apr 2010 23:58:48 +0000] FATAL: 401 "Unauthorized"
2010-04-08_00:00:59.55138 /usr/lib/ruby/1.8/net/http.rb:2097:in `error!'
[Tue, 20 Apr 2010 01:13:16 +0000] INFO: Starting Chef Run
[Tue, 20 Apr 2010 01:13:22 +0000] ERROR: undefined method `has_key' for nil:NilClass
...
[Tue, 20 Apr 2010 07:27:52 +0000] INFO: Starting Chef Run
/usr/lib/ruby/gems/1.8/gems/chef-0.8.10/bin/../lib/chef/mixin/recipe_definition_dsl_core.rb:59:in `method_missing': Cannot find Include for include (NameError)
Original exception: NameError: uninitialized constant Chef::Resource::Include
from /var/chef/cache/cookbooks/raid/libraries/default.rb:11:in `raid_drives'
Here's the libraries file...
module DriveRaider
def raid_drives(...)
require 'rubygems'
deb http://us.ec2.archive.ubuntu.com/ubuntu/ karmic main universe multiverse
deb-src http://us.ec2.archive.ubuntu.com/ubuntu/ karmic main universe multiverse
# Don't automatically install updates
# deb http://us.ec2.archive.ubuntu.com/ubuntu/ karmic-updates main universe multiverse
# deb-src http://us.ec2.archive.ubuntu.com/ubuntu/ karmic-updates main universe multiverse
deb http://security.ubuntu.com/ubuntu karmic-security main universe multiverse
deb-src http://security.ubuntu.com/ubuntu karmic-security main universe multiverse
_pylibmcmodule.c:1013: warning: assignment makes pointer from integer without a cast
_pylibmcmodule.c:1020: warning: statement with no effect
_pylibmcmodule.c:1020: error: expected ‘;’ before ‘get_val_rc’
_pylibmcmodule.c:1023: warning: implicit declaration of function ‘memcached_stat_get_value’
_pylibmcmodule.c:1023: error: ‘PylibMC_Client’ has no member named ‘mc’
_pylibmcmodule.c:1024: error: ‘get_val_rc’ undeclared (first use in this function)
_pylibmcmodule.c:1024: warning: assignment makes pointer from integer without a cast
_pylibmcmodule.c:1026: error: too many arguments to function ‘PylibMC_ErrFromMemcached’
_pylibmcmodule.c:1044: error: ‘PylibMC_Behavior’ has no member named ‘hostname’
_pylibmcmodule.c:1044: error: ‘PylibMC_Behavior’ has no member named ‘port’
root@domU-12-31-39-10-3C-82:~/SG/SG/test/system# python test_interface_web_client.py
Traceback (most recent call last):
File "test_interface_web_client.py", line 571, in <module>
unittest.main()
AttributeError: 'module' object has no attribute 'main'
Best match: pylibmc 1.0
Downloading http://pypi.python.org/packages/source/p/pylibmc/pylibmc-1.0.tar.gz#md5=182d95a6d493f3cbb7bc83ae7e275816
Processing pylibmc-1.0.tar.gz
Running pylibmc-1.0/setup.py -q bdist_egg --dist-dir /tmp/easy_install-utpYCY/pylibmc-1.0/egg-dist-tmp-wHUG5H
_pylibmcmodule.c:36:20: error: zlib.h: No such file or directory
_pylibmcmodule.c: In function ‘_PylibMC_Deflate’:
_pylibmcmodule.c:168: error: ‘z_stream’ undeclared (first use in this function)
_pylibmcmodule.c:168: error: (Each undeclared identifier is reported only once
_pylibmcmodule.c:168: error: for each function it appears in.)
_pylibmcmodule.c:168: error: expected ‘;’ before ‘strm’