Click anywhere to generate a new random graph.
- The nodes are colored by the number of their neighbors.
- Nodes with higher number of neighbours are bigger.
javascript: | |
document.querySelectorAll('.load-diff-button').forEach(node => node.click()) |
Magic words:
psql -U postgres
Some interesting flags (to see all, use -h
or --help
depending on your psql version):
-E
: will describe the underlaying queries of the \
commands (cool for learning!)-l
: psql will list all databases and then exit (useful if the user you connect with doesn't has a default database, like at AWS RDS)- name: Testing variables with SUDO=NO | |
hosts: "*" | |
sudo: no | |
tasks: | |
- name: "PLAYBOOK SUDO=NO, TASK SUDO=NO" | |
command: whoami | |
register: whoami_output | |
sudo: no | |
- debug: var=whoami_output.stdout |
How To Become A Hacker
Eric Steven Raymond, Thyrsus Enterprises, < esr@thyrsus.com >
Copyright © 2001 Eric S. Raymond
翻译:柯非, < zer4tul@gmail.com >
This is an opinionated guide to learning about computer security (independently of a university or training program), starting with the absolute basics (suitable for someone without any exposure to or knowledge of computer security) and moving into progressively more difficult subject matter.
It seems that most people don't realize how much information is actually available on the internet. People love to share (especially geeks) and everything you need to become well versed in computer security is already available to you (and mostly for free). However, sometimes knowing where to start is the hardest part - which is the problem that this guide is intended to address. Therefore, this guide can accuratley be described as a 'guide to guides', with additional recommendations on effective learning and execises, based on my own experiences.
Many of the free resources are the best resources and this guide focuses on them. It is intended to provided a comprehensive
In this article, I will share some of my experience on installing NVIDIA driver and CUDA on Linux OS. Here I mainly use Ubuntu as example. Comments for CentOS/Fedora are also provided as much as I can.
""" | |
A file lock implementation that tries to avoid platform specific | |
issues. It is inspired by a whole bunch of different implementations | |
listed below. | |
- https://bitbucket.org/jaraco/yg.lockfile/src/6c448dcbf6e5/yg/lockfile/__init__.py | |
- http://svn.zope.org/zc.lockfile/trunk/src/zc/lockfile/__init__.py?rev=121133&view=markup | |
- http://stackoverflow.com/questions/489861/locking-a-file-in-python | |
- http://www.evanfosmark.com/2009/01/cross-platform-file-locking-support-in-python/ | |
- http://packages.python.org/lockfile/lockfile.html |
#!/usr/bin/env python | |
# Author: Chris Eberle <eberle1080@gmail.com> | |
# Watch for any changes in a module or package, and reload it automatically | |
import pyinotify | |
import imp | |
import os | |
class ModuleWatcher(pyinotify.ProcessEvent): | |
""" |