Skip to content

Instantly share code, notes, and snippets.

View okram999's full-sized avatar

Niris Okram okram999

View GitHub Profile
s = gets.downcase.chomp
uniq_s = s.split(//).uniq.sort
uniq_s.shift if uniq_s[0] == " "
puts 'pangram' if uniq_s.length == 26
puts 'not pangram' if uniq_s.length != 26
Opportunity -> New Record Type -> Select the Sales process
@okram999
okram999 / js functions
Created April 4, 2018 16:56
types of java script functions
//function declaration
function age(n) {
return n*n
}
//function expression
var age = fuction(n) {
return n * n
}
18 regions
2/more AZ's
AWS uses Intel Xeon processors
H1 - storage optimized - high disk throughput and high sequential IO
`
EC2 Purchasing Options:
- On demand
/**********************************************
*** GENERAL
**********************************************/
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
NOkram@TX590-4RYTQN2 MINGW64 ~/Documents/iTrack/s3Test
$ aws s3 mb s3://itrack-okram --profile okram
make_bucket: itrack-okram
NOkram@TX590-4RYTQN2 MINGW64 ~/Documents/iTrack/s3Test
$ aws s3 cp s3://itrack-okram/3/ download/ --recursive --profile okram
download: s3://itrack-okram/3/Config/web-dev.config to download\Config\web-dev.c onfig
download: s3://itrack-okram/3/iTack.zip to download\iTack.zip
@okram999
okram999 / Kafka
Last active November 12, 2018 19:00
Kafka
Kafka:
Topics/Partitions/Offsets:
* Think of it as a database, which have streams of data
* Can have many topics, identified by names
* Topics are splitted into partitions
-- partitions are ordered
-- each msg within each partition gets an incremental id called OFFSETS
-- Order of a msg is only garantueed within a partition. NOT accross partitions
@okram999
okram999 / Sending Amazon Simple Notification Service Alerts for Task Stopped Events
Created October 15, 2018 16:39
Sending Amazon Simple Notification Service Alerts for Task Stopped Events
Follow this https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs_cwet2.html
And create the rule and the target.
Note: The document doesnt match the latest AWS web console
@okram999
okram999 / VPC Peering
Created October 24, 2018 17:36
VPC Peering
Create VPC's
10.200.0.0/16
- 10.200.1.0/24 - public
- 10.200.2.0/24 - private
10.25.0.0/16
- 10.25.0.0/24 - private
Create Subnets
- 10.200.1.0/24 - public
@okram999
okram999 / Topics to Revisit
Created October 24, 2018 20:54
Topics to Revisit
Route53
DynamoDB
Kinesis
EMR
ElasticCache
Memcached
- Not persistent
- Cannot be used as a data store
- Supports large nodes with multiple cores or threads