Skip to content

Instantly share code, notes, and snippets.

View byteshiva's full-sized avatar
🎯
Focusing

Siva byteshiva

🎯
Focusing
View GitHub Profile
@byteshiva
byteshiva / hbr-Happiness Traps
Created October 10, 2017 11:14
HBR - Harvard Business Review
https://hbr.org/2017/09/happiness-traps
@byteshiva
byteshiva / OpenBIM
Last active October 10, 2017 11:07
OpenBIM
https://www.youtube.com/watch?v=D-tue-ZPThY
http://info.bimobject.com/bimobject-apps
http://www.graphisoft.com/downloads/
http://www.openbim.org/
@byteshiva
byteshiva / simple_args_parsing.sh
Created May 29, 2017 14:14 — forked from jehiah/simple_args_parsing.sh
a simple way to parse shell script arguments
#!/bin/sh
#
# a simple way to parse shell script arguments
#
# please edit and use to your hearts content
#
ENVIRONMENT="dev"
@byteshiva
byteshiva / start-stop-server-in-background.sh
Created May 24, 2017 07:57 — forked from pwittchen/start-stop-server-in-background.sh
Starting and stopping simple HTTP server in background on Linux. After starting server and closing terminal, server should keep running
# starting simple HTTP server with Python in background
screen -d -m python -m SimpleHTTPServer 7777
# killing process running with screen in background
kill -9 `top -n 1 | pgrep screen`
@byteshiva
byteshiva / 0-README.md
Created May 7, 2017 05:35 — forked from leonardofed/0-README.md
AWS Lambda: Advanced Coding Session - clda.co/aws-lambda-webinar

AWS Lambda: Advanced Coding Session (slides)

Live demos:

  1. Amazon API Gateway Access Control
  2. Amazon Kinesis Streams processing
  3. Amazon Cognito Sync trigger
  4. AWS CloudFormation Custom Resources
@byteshiva
byteshiva / README.md
Created May 7, 2017 05:34 — forked from leonardofed/README.md
A curated list of AWS resources to prepare for the AWS Certifications


A curated list of AWS resources to prepare for the AWS Certifications

A curated list of awesome AWS resources you need to prepare for the all 5 AWS Certifications. This gist will include: open source repos, blogs & blogposts, ebooks, PDF, whitepapers, video courses, free lecture, slides, sample test and many other resources.

For more about AWS and AWS Certifications and updates to this Gist you should follow me @leonardofed


@byteshiva
byteshiva / .bashrc.sh
Created April 18, 2017 13:35
mosh faster than ssh uses udp ssp
##### load it in the server #####
#!/bin/bash
#mosh-server
#sshd
moshserver=$(ps -aef | grep mosh-server | wc -l);
sshdstate=$(ps -aef | grep sshd | wc -l);
[[ $moshserver > 1 ]] && echo "didnt load mosh-server" || mosh-server
[[ $sshdstate > 1 ]] && echo "didnt load sshd" || sshd
Set all files to zero.
```
ls | xargs -I {} sh -c '> {}'
```
@byteshiva
byteshiva / gist:e4c569b257e09ef7e278cc5984943651
Created March 17, 2017 14:57 — forked from chris3000/gist:4740404
Check if Asterisk is running and notify by email if it's not.
#!/usr/bin/ruby
require 'pony' #pony gem takes care of email
require 'syslog' #syslog logs to /var/log/syslog, the core log file for Ubuntu.
def log(msg)
# $0 is the current script name
Syslog.open($0, Syslog::LOG_PID | Syslog::LOG_CONS) { |s| s.warning msg }
end
ps=`ps ax`
@byteshiva
byteshiva / gist:ebedab43b709c8bddfed16b4454a14b0
Created March 16, 2017 12:45
copy large files using dd command
dd if=/dev/zero of=CREATE_TEST_FILE bs=1k count=4700000