Skip to content

Instantly share code, notes, and snippets.

View rcotrina94's full-sized avatar

Richard Cotrina rcotrina94

View GitHub Profile
anonymous
anonymous / gist:887026
Created March 25, 2011 15:31
reverse proxy for tumblr
upstream tumblr {
server 72.32.231.8:80;
}
server {
listen 80;
server_name jyorr.com;
access_log /var/log/nginx/jyorr.access.log;
@dz0ny
dz0ny / 99java
Created July 7, 2012 10:23
Install java,flash,mp3,mp4 to Chromium OS
## Setup java
if [ `uname -m` == 'x86_64' ]; then
PATH="/usr/lib64/jvm/java-7-oracle/jre/bin/"
JAVA_HOME="/usr/lib64/jvm/java-7-oracle/"
else
PATH="/usr/lib/jvm/java-7-oracle/jre/bin/"
JAVA_HOME="/usr/lib/jvm/java-7-oracle/"
fi
@croxton
croxton / leaflet_custom_zoom_levels.js
Last active May 20, 2022 16:13
Leaflet custom zoom levels
/*
Most map tile providers use 256px square tiles so Leaflet's basic zoom algorithm looks like this:
256 * Math.pow(2, zoom);
If you're working with vector layers you can extend one of leaflet's default CRSs
and make it return tile sizes in smaller increments. This can be very helpful when using
fitBounds() with layer groups, so the zoomed group fits better within the map bounds:
E.g., extending L.CRS.EPSG3857 (the default CRS):
@rcotrina94
rcotrina94 / How to vertically center HTML objects.
Last active December 23, 2015 13:49
How to vertically center HTML objects whitin a container
#How to vertically center HTML objects.
Only with pure HTML and CSS
Requirements:
- The height of the element's container must be known or specified.
@yetithefoot
yetithefoot / stuns
Last active July 13, 2024 17:34 — forked from zziuni/stuns
STUN+TURN servers list
{url:'stun:stun01.sipphone.com'},
{url:'stun:stun.ekiga.net'},
{url:'stun:stun.fwdnet.net'},
{url:'stun:stun.ideasip.com'},
{url:'stun:stun.iptel.org'},
{url:'stun:stun.rixtelecom.se'},
{url:'stun:stun.schlund.de'},
{url:'stun:stun.l.google.com:19302'},
{url:'stun:stun1.l.google.com:19302'},
{url:'stun:stun2.l.google.com:19302'},
@rcotrina94
rcotrina94 / How to use Images as Radio buttons.md
Last active July 20, 2024 11:31
How to use images for radio buttons (input-radio).
service: sls-layers-python
provider:
name: aws
runtime: python3.6
package:
individually: true
exclude: