Skip to content

Instantly share code, notes, and snippets.

View umrashrf's full-sized avatar

Umair Ashraf umrashrf

View GitHub Profile
# WELCOME TO SQUID 3.1.19
# ----------------------------
#
# This is the documentation for the Squid configuration file.
# This documentation can also be found online at:
# http://www.squid-cache.org/Doc/config/
#
# You may wish to look at the Squid home page and wiki for the
# FAQ and other documentation:
# http://www.squid-cache.org/
showpopout=1&player_wide=1&cc_font=Arial%20Unicode%20MS%2C%20arial%2C%20verdana%2C%20_sans&account_playback_token=fMDdREPDBef036MEXlXQiNQqfut8MTM4NzQ1MTQ1OEAxMzg3MzY1MDU4&ttsurl=https%3A%2F%2Fwww.youtube.com%2Fapi%2Ftimedtext%3Fv%3DNyXEVPFheEc%26signature%3DA72E12F9587181D4E20876F2AFC52B1E6924BF5B.307D0FB4A336398D2B96B221659B4B2A22451ECE%26hl%3Den_US%26expire%3D1387390258%26sparams%3Dasr_langs%252Ccaps%252Cv%252Cexpire%26caps%3Dasr%26asr_langs%3Dpt%252Cen%252Cfr%252Cja%252Cnl%252Ces%252Cru%252Cko%252Cit%252Cde%26key%3Dyttt1&enablecsi=1&loaderUrl=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DNyXEVPFheEc&user_gender=m&tmi=1&plid=AATtzRmBzyie-13E&user_age=24&storyboard_spec=https%3A%2F%2Fi1.ytimg.com%2Fsb%2FNyXEVPFheEc%2Fstoryboard3_L%24L%2F%24N.jpg%7C48%2327%23100%2310%2310%230%23default%23BHER0Qo7VsAgbEjur6qAcEJBxl8%7C80%2345%23284%2310%2310%2310000%23M%24M%23Ao-gkGuB3FiwItN7Eae8phfgnW0%7C160%2390%23284%235%235%2310000%23M%24M%23Obiv07WwxgMNEU3LAH2nFK3pd9E%7C320%23180%23284%233%233%2310000%23M%24M%23iuQjMgd4mhNT
@umrashrf
umrashrf / paste.ubuntu.com
Created December 18, 2013 12:22
ubuntu paste with curl
curl -d "syntax=text&poster=title&content=" \
-D - http://paste.ubuntu.com/ \
-o /dev/null \
--header "Content-Type:application/x-www-form-urlencoded"
@umrashrf
umrashrf / market ssl issue
Created December 24, 2013 17:13
playstore not working
D/vending ( 1669): [17] LocalAssetDatabase.notifyListener(): v2:com.dropbox.android:1:231104 / DOWNLOAD_PENDING
W/vending ( 1669): [17] RequestDispatcher.performRequestsOverNetwork(): IOException while performing API request: SSL handshake aborted: ssl=0x53fbc0: I/O error during system call, Connection reset by peer
E/vending ( 1669): [17] RequestRunnable.run(): Got IOException from async request: SSL handshake aborted: ssl=0x53fbc0: I/O error during system call, Connection reset by peer
D/vending ( 1669): [17] LocalAssetDatabase.notifyListener(): v2:com.dropbox.android:1:231104 / DOWNLOAD_FAILED
D/vending ( 1669): [17] VendingNotificationManager.showNotification(): Showing notification: [AssetID=v2:com.dropbox.android:1:231104, NotificationID=-1682937546, Title=Dropbox, Message=Download was unsuccessful, please try again.]
I/StatusBarManagerService( 162): UPDATE-Download of "Dropbox" was unsuccessful. , 0x108008a
D/BatteryService( 162): update start
@umrashrf
umrashrf / android sync
Created December 25, 2013 10:09
android sync uploading photos fails
D/ContactsSyncAdapter( 283): error uploading photo https://www.google.com/m8/feeds/photos/media/umr.ashrf%40gmail.com/139976e38ec7e27d, disabling uploads until it changes again
D/ContactsSyncAdapter( 283): com.google.wireless.gdata2.client.ForbiddenException: Could not update entry https://www.google.com/m8/feeds/photos/media/umr.ashrf%40gmail.com/139976e38ec7e27d com.google.wireless.gdata2.client.HttpException: Received 403 status code: If-Match or If-None-Match header or entry etag attribute required
D/ContactsSyncAdapter( 283): at com.google.wireless.gdata2.client.GDataServiceClient.convertHttpExceptionForWrites(GDataServiceClient.java:466)
D/ContactsSyncAdapter( 283): at com.google.wireless.gdata2.client.GDataServiceClient.updateMediaEntry(GDataServiceClient.java:312)
D/ContactsSyncAdapter( 283): at com.google.android.syncadapters.contacts.ContactHandler.uploadPhotos(ContactHandler.java:1515)
D/ContactsSyncAdapter( 283): at com.google.android.syncadapters.contacts.ContactsSyncAdapter.innerPerfor
{
type: 'list',
cont: 'fmCont1',
lang: 'en',
width: 680,
search: '',
path: '/',
icons: [{
name: 'new.gif',
width: 11,
@umrashrf
umrashrf / de.cron.sh
Created December 27, 2013 18:22
code that checks current and new DE tickets and inform
#!/bin/bash
de_scrapy_audio='de-scrapy.ogg'
alarm_audio='alarm.ogg'
function get_total {
total=$(curl \
-H "Content-Type: application/json" \
-H "X-Redmine-API-Key: 146afe99da2f0f229d71e7aa4ff91949ab56e410" \
"$1" \
#Location - Piscataway, NJ **About iconectiv** Telcordia Technologies, Inc., a wholly owned subsidiary of Ericsson, doing business as **iconectiv**, develops market leading solutions that enable operators to interconnect networks, devices, and applications critical to evolving the global telecommunications marketplace. iconectiv's powerful, trusted, neutral solutions for the telecommunications industry includes number portability clearinghouses, mobile messaging services, anti-theft mobile device registries, spectrum management databases and other interconnection information services. iconectiv's solutions are used by more than 1,000 operators, regulators and content providers and are currently used to provide services to over 1 billion end users. **General Responsibilities** Works on problems of moderate scope and complexity where analysis of situations or data requires a review of identifiable factors. Regularly exercises judgment to determine appropriate action. Responsible for coordinating the more c
@umrashrf
umrashrf / watermarker
Created January 25, 2014 13:42
How to watermark text over images using Python with PIL
#!/usr/bin/python
__author__ = 'umair'
FONTS = (
"/usr/share/fonts/truetype/ubuntu-font-family/Ubuntu-R.ttf",
"/usr/share/fonts/truetype/droid/DroidSerif-Regular.ttf",
"/usr/share/fonts/truetype/ttf-dejavu/DejaVuSans.ttf",
"/home/umair/Downloads/Dosis/Dosis-ExtraBold.ttf"
)
@umrashrf
umrashrf / masters_germany.md
Created February 6, 2014 17:32
Admission in Masters degree program in Germany with Visa Guide
  1. Deciding degree program