Skip to content

Instantly share code, notes, and snippets.

View bright-light-in-the-night's full-sized avatar
🏠
Working from home

Singing Dinosaur bright-light-in-the-night

🏠
Working from home
View GitHub Profile
@DavidFricker
DavidFricker / gist:67319b82b822246f0a1f2c2e60b17b05
Created February 6, 2018 20:11
Puppeter (Chrome) dependencies on Ubuntu 16 LTS
sudo apt-get update
sudo apt-get install libxcomposite-dev -y
sudo apt-get install libxcursor1 -y
sudo apt-get install libxi6 libgconf-2-4 -y
sudo apt-get install libxtst6 -y
sudo apt-get install libnss3-dev -y
sudo apt-get install libcups -y
sudo apt-get install libxss1
sudo apt-get install libxrandr2
@Amar-Chaudhari
Amar-Chaudhari / Readme.md
Last active May 26, 2023 15:55
How To Compile And Install PHP Extensions From Source

If you have already compiled and installed PHP and need to install more extension, I will show you a quick-n-dirty way of installing and compiling your desired extension without re-compiling everything

Download & unzip the PHP5 source code

cd /tmp
wget -O php-5.6.22.tar.gz http://pl1.php.net/get/php-5.6.22.tar.gz/from/this/mirror
tar -zxvf php-5.6.22.tar.gz
cd php-5.6.22
@davestevens
davestevens / LetsEncrypt.md
Last active March 28, 2024 10:35
Let’s Encrypt setup for Apache, NGINX & Node.js

Let's Encrypt

Examples of getting certificates from Let's Encrypt working on Apache, NGINX and Node.js servers.

Obtain certificates

I chose to use the manual method, you have to make a file available to verify you own the domain. Follow the commands from running

git clone https://github.com/letsencrypt/letsencrypt
cd letsencrypt
@dgp
dgp / youtube api video category id list
Created June 11, 2015 05:57
youtube api video category id list
2 - Autos & Vehicles
1 - Film & Animation
10 - Music
15 - Pets & Animals
17 - Sports
18 - Short Movies
19 - Travel & Events
20 - Gaming
21 - Videoblogging
22 - People & Blogs
@evandrix
evandrix / README.md
Created December 29, 2013 15:44
Gmail API

Gmail.js - JavaScript API for Gmail

TL;DR Summary

  • Lots of api methods to work with gmail. Useful for chrome extensions
  • Most of them dont take arguments, they work on what is currently visible on the screen
  • I still need to add implementation for chrome extension, works by injecting js for now
  • Main method is gmail.observe.on('lots_of_actions_here', callback())
  • Click on a method link to view more detailed docs
  • Create an issue/pull request for feedback, requests and fixes
@umidjons
umidjons / index.html
Last active January 6, 2024 18:46
Upload File using jQuery.ajax() with progress support
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Upload File using jQuery.ajax() with progress support</title>
</head>
<body>
<input type="file" name="file" id="sel-file"/>
@JamieMason
JamieMason / is_installed.sh
Last active February 17, 2024 10:12
Check if a program exists from a bash script.Thanks to twitter.com/joshnesbitt and twitter.com/mheap for the help with detecting npm packages.
#!/bin/bash
# Functions ==============================================
# return 1 if global command line program installed, else 0
# example
# echo "node: $(program_is_installed node)"
function program_is_installed {
# set to 1 initially
local return_=1