- Get all of these files into the target folder
- Run the following commands:
chmod +x *.sh
./nginx-start.sh
| ## Configure eth0 | |
| # | |
| # vi /etc/sysconfig/network-scripts/ifcfg-eth0 | |
| DEVICE="eth0" | |
| NM_CONTROLLED="yes" | |
| ONBOOT=yes | |
| HWADDR=A4:BA:DB:37:F1:04 | |
| TYPE=Ethernet | |
| BOOTPROTO=static |
| var child_process = require('child_process'); | |
| exports.handler = function(event, context) { | |
| var proc = spawn('./test', [ JSON.stringify(event) ], { stdio: 'inherit' }); | |
| proc.on('close', function(code){ | |
| if(code !== 0) { | |
| return context.done(new Error("Process exited with non-zero status code")); | |
| } |
chmod +x *.sh
./nginx-start.sh
| /** | |
| * D Holbrook | |
| * | |
| * Code Club: PO1 | |
| * | |
| * (*) Define a binary tree data structure and related fundamental operations. | |
| * | |
| * Use whichever language features are the best fit (this will depend on the language you have selected). The following operations should be supported: | |
| * | |
| * Constructors |
| // Tarantool quick test | |
| // Copyright, Dennis Anikin 2016 | |
| // | |
| // Quick disclaimer: | |
| // | |
| // This test shows 500K-1000K transactions per second on one CPU core | |
| // and 600K-1600K queries per second on one CPU core. | |
| // | |
| // Based on the $6.57 per-month-price for the AWS t2.micro instance we can afford the tremendous number of 630bln queries for just $1 | |
| // |
| // Trie.js - super simple JS implementation | |
| // https://en.wikipedia.org/wiki/Trie | |
| // ----------------------------------------- | |
| // we start with the TrieNode | |
| function TrieNode(key) { | |
| // the "key" value will be the character in sequence | |
| this.key = key; | |
| -- Installs "file_fdw" extension and creates foreign table to work with data from CSV file. | |
| -- See also the comment below which helps to automate the process for Google Spreadsheets | |
| -- Another option would be using Multicorn for Google Spreadsheets, but it requires additional steps | |
| -- (see https://wiki.postgresql.org/wiki/Foreign_data_wrappers). | |
| CREATE EXTENSION file_fdw; | |
| CREATE SERVER import FOREIGN DATA WRAPPER file_fdw; | |
| CREATE FOREIGN TABLE table1_import ( | |
| col1 text, | |
| col2 text, |
| 1 | CTAAGGTAA | |
|---|---|---|
| 2 | TAAGGAGAA | |
| 3 | AAGAGGATT | |
| 4 | TACCAAGAT | |
| 5 | CAGAAGGAA | |
| 6 | CTGCAAGTT | |
| 7 | TTCGTGATT | |
| 8 | TTCCGATAA | |
| 9 | TGAGCGGAA | |
| 10 | CTGACCGAA |
| struct Point { | |
| x: i32, | |
| y: i32, | |
| } | |
| fn takes_point(Point {x, y}: Point) { | |
| println!("({}, {})", x, y); | |
| } | |
| fn main() { |
Disclaimer: This piece is written anonymously. The names of a few particular companies are mentioned, but as common examples only.
This is a short write-up on things that I wish I'd known and considered before joining a private company (aka startup, aka unicorn in some cases). I'm not trying to make the case that you should never join a private company, but the power imbalance between founder and employee is extreme, and that potential candidates would