Skip to content

Instantly share code, notes, and snippets.

View jauhari's full-sized avatar
😇

Jauhari jauhari

😇
View GitHub Profile
@jauhari
jauhari / hosts
Created April 1, 2018 22:15 — forked from mul14/00_etc-hosts.md
/etc/hosts for Vimeo and Reddit
# ---------------------------------------------------
# Vimeo
# ---------------------------------------------------
151.101.0.217 player.vimeo.com
151.101.192.249 vimeo-hp-videos.global.ssl.fastly.net
151.101.2.109 f.vimeocdn.com
151.101.192.217 vimeo.com
151.101.66.109 i.vimeocdn.com
151.101.64.217 developer.vimeo.com
@jauhari
jauhari / Lazy Image Size
Created July 20, 2017 22:54 — forked from mtinsley/Lazy Image Size
Generate image sizes on the fly for WordPress
/**
* Create an image with the desired size on-the-fly.
*
* @param $image_id
* @param $width
* @param $height
* @param $crop
*
* @return array
*/
@jauhari
jauhari / 0_reuse_code.js
Created April 7, 2017 22:04
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
#!/bin/bash
# put cron every 15 minutes. Change my login, or you can use this
sleep 3
curl --request POST --insecure -d "dst=&popup=true&username=1234qwer%40melsahotspot.com&password=1234" https://login.melsahotspot.com/login
curl --insecure --request GET --referer "http://melsahotspot.com/promo/advert/http:login.melsahotspot.com/status" http://login.melsahotspot.com/status