Skip to content

Instantly share code, notes, and snippets.

Avatar
🐒
Converting caffeine to code

Joaquim Homrighausen joho1968

🐒
Converting caffeine to code
  • WebbPlatsen i Sverige AB
  • Sweden
View GitHub Profile
@patriclougheed
patriclougheed / streamer.conf
Last active Jul 8, 2021
YouPHPTube Streamer NginX Conf
View streamer.conf
server {
listen 80;
server_name <domain> <www.domain>;
root /var/www;
index index.php;
charset utf-8;
location = /favicon.ico { access_log off; log_not_found off; }
location = /robots.txt { access_log off; log_not_found off; }
@jniltinho
jniltinho / install_redmine_nginx.sh
Last active Jan 3, 2018
Install Redmine on Debian 8.7 64Bits + Nginx
View install_redmine_nginx.sh
#!/bin/bash
## Install Redmine + Nginx
## Tested on Debian 8.7 64Bits
## Author: Nilton OS -- www.linuxpro.com.br
## Version: 0.1
# Check if user has root privileges
if [[ $EUID -ne 0 ]]; then
echo "You must run the script as root or using sudo"
@mjackson
mjackson / color-conversion-algorithms.js
Last active Sep 21, 2021
RGB, HSV, and HSL color conversion algorithms in JavaScript
View color-conversion-algorithms.js
/**
* Converts an RGB color value to HSL. Conversion formula
* adapted from http://en.wikipedia.org/wiki/HSL_color_space.
* Assumes r, g, and b are contained in the set [0, 255] and
* returns h, s, and l in the set [0, 1].
*
* @param Number r The red color value
* @param Number g The green color value
* @param Number b The blue color value
* @return Array The HSL representation