Skip to content

Instantly share code, notes, and snippets.

View musman92's full-sized avatar

usman musman92

View GitHub Profile
@ganey
ganey / reset-valet.sh
Created May 19, 2020 19:48
valet reset mac
valet uninstall
composer global remove laravel/valet
brew uninstall --force php@7.3
brew uninstall --force php@7.2
brew uninstall --force php@7.1
brew uninstall --force php nginx dnsmasq
brew upgrade
brew install php
composer global require laravel/valet
valet install
@keithweaver
keithweaver / setting-up-lamp-ec2.md
Created March 20, 2017 22:48
Setting up a LAMP stack on Amazon Web Services (AWS) EC2

Setting Up EC2

  1. Sign into AWS
  2. Open EC2
  3. Click Instances on Left Side
  4. Click "Launch Instance"
  5. Select "Amazon Linux AMI 2016.09.1 (HVM), SSD Volume Type"
  6. Select Free Tier
  7. Click review and launch
  8. Press Launch
@ldong
ldong / download_egghead_videos.md
Last active November 17, 2025 13:01
download egghead videos

Download videos from egghead

Go to the egghead website, i.e. Building a React.js App

run

$.each($('h4 a'), function(index, video){
  console.log(video.href);
});
@thewarpaint
thewarpaint / filter.js
Created August 25, 2014 04:30
Angular filter to convert numbers to thousand suffixes (1234 > 1.2k)
// Based on http://stackoverflow.com/questions/1571374/converting-values-to-unit-prefixes-in-jsp-page.
// The inner filter function can be used standalone.
angular.module('Utils')
.filter('thousandSuffix', function () {
return function (input, decimals) {
var exp, rounded,
suffixes = ['k', 'M', 'G', 'T', 'P', 'E'];
if(window.isNaN(input)) {