I hereby claim:
- I am omarish on github.
- I am obb (https://keybase.io/obb) on keybase.
- I have a public key ASDIeAVpKvwV3vCq56hv4VTRXv_wNzmDUIvvTUJiMJwrhwo
To claim this, I am signing this object:
# Allow command substitution in the prompt | |
setopt prompt_subst | |
# Helper function: Show Git branch info as ":branch" (± if dirty) | |
function prompt_git_info() { | |
if git rev-parse --is-inside-work-tree &>/dev/null; then | |
local branch="$(git rev-parse --abbrev-ref HEAD 2>/dev/null)" | |
# Check for uncommitted changes | |
if ! git diff --quiet --ignore-submodules HEAD &>/dev/null; then | |
# Dirty repo: append ± |
#!/usr/bin/env ruby | |
require 'optparse' | |
options = { | |
:subdir => "_posts" | |
} | |
parsed = OptionParser.new do |opts| | |
opts.banner = 'Usage: newpost --title "post title" [options]' |
import mutations | |
class UserSignup(mutations.Mutation): | |
"""Sign up the user if and only if their name is a palindrome. """ | |
name = mutations.fields.CharField() | |
email = mutations.fields.CharField() | |
def validate_name_is_palindrome(self): | |
""" | |
Since this method is prefixed with validate_, it's assumed to be |
import mutations | |
class UserSignup(mutations.Mutation): | |
name = mutations.fields.CharField() | |
email = mutations.fields.CharField() | |
def execute(self): | |
user = User.objects.create([...]) | |
if user.is_referred_through_partner: | |
[...] |
I hereby claim:
To claim this, I am signing this object:
Dear Client:
We are writing to share with you important information about a security compromise involving a database containing some of your personal information, as well as steps we are taking in response, and the resources we are making available to you.
What Happened
Federal law enforcement officials recently informed us that they’ve been investigating cybersecurity crimes involving the theft of information from Scottrade and other financial services companies. We immediately initiated a comprehensive response.
Based upon our subsequent internal investigation coupled with information provided by the authorities, we believe a list of client names and street addresses was taken from our system. Importantly, we have no reason to believe that Scottrade’s trading platforms or any client funds were compromised. All client passwords remained encrypted at all times and we have not seen any indication of fraudulent activity as a result of this incident.
Here's an efficient way to load a dataset into Vertica by splitting it up into multiple pieces and then parallelizing the load process.
Note that this only makes sense if your Vertica cluster is a single node. If it's running more nodes, there are definitely more efficient ways of doing this.
For this example, the large CSV file will be called large_file.csv
. If your file is under 1GB, it
probably makes sense to load it using a single COPY
command.
# Setting the prefix from `C-b` to `C-a`. | |
# By remapping the `CapsLock` key to `Ctrl`, | |
# you can make triggering commands more comfottable! | |
set -g prefix C-a | |
# Free the original `Ctrl-b` prefix keybinding. | |
unbind C-b | |
# Ensure that we can send `Ctrl-a` to other apps. | |
bind C-a send-prefix |
mpg | cylinders | displacement | horsepower | weight | acceleration | model_year | origin | name | |
---|---|---|---|---|---|---|---|---|---|
18 | 8 | 307 | 130 | 3504 | 12 | 70 | 1 | chevrolet chevelle malibu | |
15 | 8 | 350 | 165 | 3693 | 11.5 | 70 | 1 | buick skylark 320 | |
18 | 8 | 318 | 150 | 3436 | 11 | 70 | 1 | plymouth satellite | |
16 | 8 | 304 | 150 | 3433 | 12 | 70 | 1 | amc rebel sst | |
17 | 8 | 302 | 140 | 3449 | 10.5 | 70 | 1 | ford torino | |
15 | 8 | 429 | 198 | 4341 | 10 | 70 | 1 | ford galaxie 500 | |
14 | 8 | 454 | 220 | 4354 | 9 | 70 | 1 | chevrolet impala | |
14 | 8 | 440 | 215 | 4312 | 8.5 | 70 | 1 | plymouth fury iii | |
14 | 8 | 455 | 225 | 4425 | 10 | 70 | 1 | pontiac catalina |
import tornado.web | |
class NoCacheStaticFileHandler(tornado.web.StaticFileHandler): | |
def set_extra_headers(self, path): | |
self.set_header("Cache-control", "no-cache") | |
class Application(tornado.web.Application): | |
def __init__(self): | |
handlers = [ | |
# ... |