Skip to content

Instantly share code, notes, and snippets.

View mariohmol's full-sized avatar
:octocat:
lets make opensource!

Mario Mol mariohmol

:octocat:
lets make opensource!
View GitHub Profile
@aric87
aric87 / New Code Review Curric.md
Last active June 18, 2016 01:26
Proposed new Curric

As a developer, you will very likely work for a company that has a peer review process. While the specific process that a company uses may differ, there is one underlying goal - for you to write better code.

Why code reviews are important?

The code review process has multiple goals:

Ensure the team is staying up to date with changes in the code Ensure everyone is following the company approved style guide Better each others coding skills by creating discussion around different methods, or solutions Ensuring good documentation

@cnk
cnk / app-controllers-application_controller.rb
Created March 15, 2015 02:58
Work around for files getting uploaded as application/octet-stream
class ApplicationController < ActionController::Base
# omitted stuff
private
# Used to correct content type for files uploaded with bulkupload or from PicMonkey
def correct_content_type_for_octet_stream(filedata)
return nil if filedata.blank?
# see what the unix file command thinks this is
if filedata.content_type == 'application/octet-stream'
filedata.content_type = type_from_file_command(filedata.path)
end
@mrebola
mrebola / gist:3758957
Created September 20, 2012 23:30
All database WHM MYSQL Backup
mysqldump --all-databases | gzip > /home/alldatabases.sql.gz
@coolaj86
coolaj86 / how-to-publish-to-npm.md
Last active April 2, 2024 20:18
How to publish packages to NPM

Getting Started with NPM (as a developer)

As easy as 1, 2, 3!

Updated:

  • Aug, 08, 2022 update config docs for npm 8+
  • Jul 27, 2021 add private scopes
  • Jul 22, 2021 add dist tags
  • Jun 20, 2021 update for --access=public
  • Sep 07, 2020 update docs for npm version