Skip to content

Instantly share code, notes, and snippets.

View hedcler's full-sized avatar

Hedcler Morais hedcler

View GitHub Profile
@hedcler
hedcler / npmwosudo.sh
Last active August 24, 2017 14:56
Install npm globally without sudo
#!/bin/sh
# No need to download this script, just run it on your terminal:
#
# $ curl -L git.io/v5qOi | sh
#
mkdir "${HOME}/.npm-packages"
echo "prefix=${HOME}/.npm-packages" >> ~/.npmrc
echo "# RUN NPM WITHOUT SUDO" >> ~/.bashrc
echo "NPM_PACKAGES=\"${HOME}/.npm-packages\"" >> ~/.bashrc
# http://stackoverflow.com/questions/9548755/powerpoint-ppt-to-jpg-or-png-image-conversion-using-php#16045442
## Dependencies
apt-get install unoconv
apt-get install imagemagick
## First converts your presentation to PDF
unoconv -f pdf presentation.ppt
## Then convert your PDF to jpg
convert presentation.pdf presentation_%03d.jpg
@fourcube
fourcube / UseCase-Template
Created January 7, 2015 10:51
Markdown Template for describing Use Cases
Use Case 1: (Target) Title (Type)
=================================
**Primary Actor**: User
**Scope**: Software system
**Level**: Summary / User Goal
Main success scenario:
----------------------
1. ...
2. ...
@simonewebdesign
simonewebdesign / install_sublime_text.sh
Last active March 11, 2024 12:23
Install Sublime Text 3 on Linux via POSIX shell script - http://simonewebdesign.it/install-sublime-text-3-on-linux/
#!/bin/sh
# Sublime Text 3 Install (last update: Monday 13 March 2017)
#
# No need to download this script, just run it on your terminal:
#
# curl -L git.io/sublimetext | sh
# Detect the architecture