Skip to content

Instantly share code, notes, and snippets.

🏠
Working from home

Thanh Dang dasani08

🏠
Working from home
Block or report user

Report or block dasani08

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@dasani08
dasani08 / README.md
Created Jan 20, 2020 — forked from leonardofed/README.md
A curated list of AWS resources to prepare for the AWS Certifications
View README.md


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.


@dasani08
dasani08 / interview-questions.md
Created Jan 2, 2020 — forked from jvns/interview-questions.md
A list of questions you could ask while interviewing
View interview-questions.md

A lot of these are outright stolen from Edward O'Campo-Gooding's list of questions. I really like his list.

I'm having some trouble paring this down to a manageable list of questions -- I realistically want to know all of these things before starting to work at a company, but it's a lot to ask all at once. My current game plan is to pick 6 before an interview and ask those.

I'd love comments and suggestions about any of these.

I've found questions like "do you have smart people? Can I learn a lot at your company?" to be basically totally useless -- everybody will say "yeah, definitely!" and it's hard to learn anything from them. So I'm trying to make all of these questions pretty concrete -- if a team doesn't have an issue tracker, they don't have an issue tracker.

I'm also mostly not asking about principles, but the way things are -- not "do you think code review is important?", but "Does all code get reviewed?".

View npm-global-without-sudo.md

Source: https://github.com/sindresorhus/guides/blob/master/npm-global-without-sudo.md

Install npm packages globally without sudo on macOS and Linux

npm installs packages locally within your projects by default. You can also install packages globally (e.g. npm install -g <package>) (useful for command-line apps). However the downside of this is that you need to be root (or use sudo) to be able to install globally.

Here is a way to install packages globally for a given user.

1. Create a directory for global packages
@dasani08
dasani08 / README.md
Created Oct 26, 2019 — forked from vapurrmaid/README.md
Sequelize + Express + Migrations + Seed Starter
View README.md
View keybase.md

Keybase proof

I hereby claim:

  • I am dasani08 on github.
  • I am thanhdang (https://keybase.io/thanhdang) on keybase.
  • I have a public key ASBT1mcSNQ-lcdhIxR5v_ZXDUmCIXkW5J0X3RIqAiNxp4Qo

To claim this, I am signing this object:

@dasani08
dasani08 / alexa.js
Created Aug 5, 2019 — forked from chilts/alexa.js
Getting the Alexa top 1 million sites directly from the server, unzipping it, parsing the csv and getting each line as an array.
View alexa.js
var request = require('request');
var unzip = require('unzip');
var csv2 = require('csv2');
request.get('http://s3.amazonaws.com/alexa-static/top-1m.csv.zip')
.pipe(unzip.Parse())
.on('entry', function (entry) {
entry.pipe(csv2()).on('data', console.log);
})
;
@dasani08
dasani08 / dockergrep.sh
Created Jul 5, 2019 — forked from roylee0704/dockergrep.sh
how to grep docker log
View dockergrep.sh
docker logs nginx 2>&1 | grep "127."
# ref: http://stackoverflow.com/questions/34724980/finding-a-string-in-docker-logs-of-container
View FFMPEG MP4 to HLS Conversion.md

Direct copy of pre-encoded file:

$ ffmpeg -i filename.mp4 -codec: copy -start_number 0 -hls_time 10 -hls_list_size 0 -f hls filename.m3u8
@dasani08
dasani08 / bobp-python.md
Created Jun 27, 2019 — forked from sloria/bobp-python.md
A "Best of the Best Practices" (BOBP) guide to developing in Python.
View bobp-python.md

The Best of the Best Practices (BOBP) Guide for Python

A "Best of the Best Practices" (BOBP) guide to developing in Python.

In General

Values

  • "Build tools for others that you want to be built for you." - Kenneth Reitz
  • "Simplicity is alway better than functionality." - Pieter Hintjens
@dasani08
dasani08 / models.py
Created Feb 23, 2019 — forked from asyd/models.py
Flask SQLAlchemy multiple column unique constraint
View models.py
class ComponentCommit(db.Model):
__tablename__ = 'component_version'
__table_args__ = (
db.UniqueConstraint('component_id', 'commit_id', name='unique_component_commit'),
)
id = db.Column(db.Integer, primary_key=True)
component_id = db.Column(db.Integer, db.ForeignKey("component.id"))
commit_id = db.Column(db.String)
branch = db.Column(db.String)
dependencies = db.Column(db.Text)
You can’t perform that action at this time.