Skip to content

Instantly share code, notes, and snippets.

View musebe's full-sized avatar
🎯
Focusing

eugene musebe musebe

🎯
Focusing
View GitHub Profile
@musebe
musebe / 0_reuse_code.js
Created April 19, 2017 12:16
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@musebe
musebe / deploy.php
Created February 3, 2018 15:49 — forked from Billcountry/deploy.php
This file will deploy your git repository to a php server or the directory it's. It's convenient for cpanel hosting and you can add it's URL as a web-hook so that it's updated every time you push your updates to git.
<?php
ini_set('display_errors', 1);
header('Content-Type: text/plain');
$account = '_YOUR_ACCOUNT_NAME_'; // Example Billcountry
$repo = '_REPO_TO_DEPLOY_'; // iF i NEED TO EXPLAIN THIS YOU SHOULD PROBABLY LEAVE
$branch = '_BRANCH_TO_DEPLOY_';
$url = "https://github.com/$account/$repo/archive/$branch.zip";
echo("Cloning into $url\n");
$path = dirname(__FILE__)."/$branch.zip";
@musebe
musebe / images.js
Created February 4, 2018 11:34 — forked from Billcountry/images.js
Load images after the whole page has loaded by just adding the class .async-img
// Default image data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mO8dPv2fwAImAOJMh4kwgAAAABJRU5ErkJggg==
function load_images(){
var images = document.querySelectorAll(".async-img");
for(var id=0; id<images.length; id++){
var image = images[id];
var img_url = image.getAttribute('url');
image.src = img_url;
}
@musebe
musebe / sample.md
Created March 24, 2018 08:50 — forked from bradtraversy/sample.md
Markdown Cheat Sheet

Heading 1

Heading 2

Heading 3

Heading 4

Heading 5
Heading 6

This text is italic

@musebe
musebe / myscript.sh
Created May 17, 2018 21:20 — forked from bradtraversy/myscript.sh
Basic Shell Scripting
#! /bin/bash
# ECHO COMMAND
# echo Hello World!
# VARIABLES
# Uppercase by convention
# Letters, numbers, underscores
NAME="Bob"
# echo "My name is $NAME"
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/skeleton/2.0.4/skeleton.css" />
<title>Node SMS Texting</title>
</head>
<body>
@musebe
musebe / index.html
Created June 27, 2018 22:43
SMS Frontend
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/skeleton/2.0.4/skeleton.css" />
<title>Node SMS Texting</title>
</head>
<body>
@musebe
musebe / gist:5a08248ad4f46c542fe3f731586cee9c
Created June 28, 2018 18:51 — forked from paulallies/gist:0052fab554b14bbfa3ef
Remove node_modules from git repo
#add 'node_modules' to .gitignore file
git rm -r --cached node_modules
git commit -m 'Remove the now ignored directory node_modules'
git push origin master
@musebe
musebe / webdev_online_resources.md
Created July 18, 2018 22:17 — forked from bradtraversy/webdev_online_resources.md
Online Resources For Web Developers (No Downloading)
@musebe
musebe / docker-help.md
Created September 12, 2018 19:37 — forked from bradtraversy/docker-help.md
Docker Commands, Help & Tips

Docker Commands, Help & Tips

Show commands & management commands

$ docker

Docker version info