Skip to content

Instantly share code, notes, and snippets.

View xtroncode's full-sized avatar
🤠
Dangling between system-design and design-systems

Meet Shah xtroncode

🤠
Dangling between system-design and design-systems
View GitHub Profile
#!/bin/bash
curl https://zuddl-recordings.s3.ap-south-1.amazonaws.com/binaries/comcast --output ~/comcast
chmod +x ~/comcast
@xtroncode
xtroncode / SailsIOClient.java
Last active January 3, 2016 08:43
Sails js SocketIO Android client with API's similar to the official browser client.
package ;
/*
Java implementation Sails.io.js Socket.io client for Android.
Using Socket.io-client-java library
*/
import android.util.Log;
import org.json.JSONArray;
import org.json.JSONException;
# Author = Nikhil Venkat Sonti
# email = nikhilsv92@gmail.com
# github ID = shadowfax92
import sys
from xml.dom.minidom import _get_StringIO
from lxml import html
import requests
import os
import re
import time

Fix locale problem

Run the following command

$ update-locale LC_ALL="en_US.UTF-8"

If it failed, you will need to add the following to /var/lib/locales/supported.d/local file

en_US.UTF-8 UTF-8

A Brief Introduction to Fabric

Fabric is a deployment management framework written in Python which makes remotely managing multiple servers incredibly easy. If you've ever had to issue a change to a group servers, this should look pretty familiar:

for s in $(cat servers.txt); do ssh $s service httpd graceful; done

Fabric improves on this process by providing a suite of functions to run commands on the servers, as well as a number of other features which just aren't possible in a simple for loop. While a working knowledge of Python is helpful when using Fabric, it certainly isn't necessary. This tutorial will cover the steps necessary to get started with the framework and introduce how it can be used to improve on administering groups of servers.

Resources for learning web design & front-end development:
================================================================================
**ONLINE**
Design
> http://52weeksofux.com
> http://thedesigncubicle.com
import urllib2, re, time
from Tkinter import *
class App:
def __init__(self, master):
self.master = master
frame = Frame(master)
frame.pack()