- Some good values to promulgate: truth, caring for one another, radical candor, working hard, shipping.
- A corporate culture is indispensable. “Someone adhering to the values of of the corporate culture—an intelligent corporate citizen—will behave consistently under similar conditions, which means that managers don’t have to suffer inefficiencies engendered by formal rules, procedures, and regulations that are sometimes used to get the same result.” ~ High Output Management
- "Be wary of making too many rules. Rules can simplify life for managers, but they can be demeaning to the 95 percent who behave well. Don’t create rules to rein in the other 5 percent—address abuses of common sense individually. This is more work but ultimately healthier." ~ Creativity, Inc.
- Set a clear vision for the team. (From Google's Project Oxygen)
- Building a culture of continuous shipping can create a flywheel effect (from Good to Great). You can promote this b
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env perl | |
| use strict; | |
| use Date::Parse::Lite; | |
| ## See this module: http://search.cpan.org/~gbarr/TimeDate-2.30/lib/Date/Parse.pm | |
| my @user_inputs = ( | |
| '9-14-2016', | |
| '9 14 2016', | |
| '9.14.2016', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python | |
| """ | |
| Example Usage: | |
| $ ansible -i machine.py machinename -m ping | |
| """ | |
| import argparse | |
| import subprocess |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import sys | |
| import uuid | |
| import threading | |
| import stomp | |
| class BcastMTWorkerListener(stomp.ConnectionListener): | |
| def __init__(self, conn, receipt_waiting): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/perl -T | |
| use strict; | |
| use POSIX qw/strftime/; | |
| my $DEBUG = defined($ENV{TAILFTS_DEBUG}) ? $ENV{TAILFTS_DEBUG} : 1; | |
| my $LOGGER = sub { $DEBUG && print STDERR strftime("%Y-%m-%dT%H:%M:%S ", localtime(time())), @_; }; | |
| my $parent = $$; | |
| my $USAGE = "USAGE: $0 <path/to/filename_pattern>\n"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?xml version="1.0" encoding="UTF-8"?> | |
| <Response> | |
| <Gather input="dtmf" timeout="5" numDigits="1" finishOnKey="5" action="https://gist.githubusercontent.com/dexterbt1/a9c63b79c1e697c52d417b4b8d3c71ac/raw/da9e63a70079e6d9868c2dca24ca4e6e6322776a/m360-intro-playback.xml"> | |
| <Play>https://m360vt.zygote.cc/m360/hi.ogg</Play> | |
| </Gather> | |
| <Play>https://m360vt.zygote.cc/m360/thankyoucall.ogg</Play> | |
| </Response> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?xml version="1.0" encoding="UTF-8"?> | |
| <Response> | |
| <Play>https://m360vt.zygote.cc/m360/m360-intro.ogg</Play> | |
| </Response> |
Source log data from: https://github.com/logpai/loghub/blob/master/OpenSSH/OpenSSH_2k.log
Using a programming language you are strong at, code a single program that reads the file to obtain the results for the ff. ..
- for those who triggered POSSIBLE BREAK-IN ATTEMPT
- who are the offending IPs (and reversed mapped domains)?
- how many attempts for each IP?
- for those who triggered and matched log lines: "failed password for $user from $ip"
Write a function that takes two semantic version strings (e.g., "1.2.3" and "1.10.1") and returns 1 if the first is higher, -1 if the second is higher, and 0 if they are equal.
Implement an in-memory class or function that tracks API requests per user ID. It should accept a user ID and a timestamp, returning true if the user is allowed to make a request (maximum 3 requests per 10 rolling seconds) and false otherwise.
OlderNewer