Skip to content

Instantly share code, notes, and snippets.

View sentinelleader's full-sized avatar

Deepak Mohandas sentinelleader

View GitHub Profile
@sentinelleader
sentinelleader / web-servers.md
Created May 13, 2021 14:02 — forked from willurd/web-servers.md
Big list of http static server one-liners

Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.

Discussion on reddit.

Python 2.x

$ python -m SimpleHTTPServer 8000
@sentinelleader
sentinelleader / ls.rst
Created February 13, 2018 12:04 — forked from amitsaha/ls.rst
How does `ls` work?

How does ls work?

I wanted to be really able to explain to a fair amount of detail how does the program ls actually work right from the moment you type the command name and hit ENTER. What goes on in user space and and in kernel space? This is my attempt and what I have learned so far on Linux (Fedora 19, 3.x kernel).

How does the shell find the location of 'ls' ?

@sentinelleader
sentinelleader / gist:6f9c27a1ed495aa8568ce12c679902b5
Created November 27, 2017 07:58 — forked from ptigas/gist:2820165
linked list implementation in python
class Node :
def __init__( self, data ) :
self.data = data
self.next = None
self.prev = None
class LinkedList :
def __init__( self ) :
self.head = None
<Response>
<Gather input="speech"
action="http://0a485498.ngrok.io/"
partialResultCallback="http://0a485498.ngrok.io/">
<Say>Say ahoy to Twilio Speech Recognition!</Say>
</Gather>
</Response>
@sentinelleader
sentinelleader / complexitypython.txt
Created September 27, 2017 01:15 — forked from Gr1N/complexitypython.txt
Complexity of Python Operations
Complexity of Python Operations
In this lecture we will learn the complexity classes of various operations on
Python data types. Then we wil learn how to combine these complexity classes to
compute the complexity class of all the code in a function, and therefore the
complexity class of the function. This is called "static" analysis, because we
do not need to run any code to perform it.
------------------------------------------------------------------------------
@sentinelleader
sentinelleader / snowden-ietf93.md
Last active August 29, 2015 14:27 — forked from mnot/snowden-ietf93.md
Transcript of Edward Snowden's comments at IETF93.
@sentinelleader
sentinelleader / rmq-publish-with-header.c
Last active August 29, 2015 14:23
rmq-publish-with-header.c for Mosquitto MQTT broker
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <stdint.h>
#include <clem_rmq.h>
#include <assert.h>
#include <amqp_tcp_socket.h>
#include <amqp.h>
---
# ^^^ YAML documents must begin with the document separator "---"
#
#### Example docblock, I like to put a descriptive comment at the top of my
#### playbooks.
#
# Overview: Playbook to bootstrap a new host for configuration management.
# Applies to: production
# Description:
# Ensures that a host is configured for management with Ansible.

Keybase proof

I hereby claim:

  • I am sentinelleader on github.
  • I am deepakmdass88 (https://keybase.io/deepakmdass88) on keybase.
  • I have a public key whose fingerprint is 833D E36D 021F 47A5 4288 E1CC C77C EE24 9379 FD6B

To claim this, I am signing this object:

@sentinelleader
sentinelleader / keybase.md
Created December 5, 2014 08:36
keybase.md

Keybase proof

I hereby claim:

  • I am deepakmdass88 on github.
  • I am deepakmdass88 (https://keybase.io/deepakmdass88) on keybase.
  • I have a public key whose fingerprint is 833D E36D 021F 47A5 4288 E1CC C77C EE24 9379 FD6B

To claim this, I am signing this object: