Skip to content

Instantly share code, notes, and snippets.

<Response>
<script/>
<Say voice="alice">Welcome call from TrustIQ.</Say>
<Play>http://demo.twilio.com/docs/classic.mp3</Play>
</Response>
A - 🍎 - APPLE
B - 🏏 - BAT BALL
C - 😺 - CAT
D - 🐕 - DOG
E - 🐘 - ELEPHANT
F - 🐟 - FISH
G - 🐐 - GOAT
H - 🎩 - HAT
I - 🍦
J - 🃏
@nishantmodak
nishantmodak / example.com.conf
Last active August 29, 2015 14:18
sites-enabled/example.com
server {
listen 80;
server_name www.example.com example.com;
access_log /var/log/Nginx/example_com_access.log;
error_log /var/log/Nginx/example_com_error.log;
location / {
root /var/www/www.example.com;
index index.html index.htm;
}
@nishantmodak
nishantmodak / nginx.conf
Created April 2, 2015 18:08
nginx.conf
user www-data;
worker_processes 4;
pid /var/run/nginx.pid;
events {
worker_connections 768;
# multi_accept on;
}
http {
  • Xively
  • Carriots
  • 1248
  • Opensense
  • opensensors.io
  • Eyehub
  • Thingspeak
  • Yanza
@nishantmodak
nishantmodak / nginx.conf.default
Last active September 9, 2024 14:30
Default Nginx Conf
#user nobody;
#Defines which Linux system user will own and run the Nginx server
worker_processes 1;
#Referes to single threaded process. Generally set to be equal to the number of CPUs or cores.
#error_log logs/error.log; #error_log logs/error.log notice;
#Specifies the file where server logs.
package main
import (
"fmt"
"net/http"
"time"
)
func main() {
http.HandleFunc("/", root)
package main
import (
"fmt"
"net/http"
"time"
)
func main() {
http.HandleFunc("/", handler)
package main
import (
"net/http"
)
func main() {
fs := http.FileServer(http.Dir("public"))
http.ListenAndServe(":8080", fs)
}