Skip to content

Instantly share code, notes, and snippets.

View abshkd's full-sized avatar
:shipit:
Focusing

Abhishek Dujari abshkd

:shipit:
Focusing
View GitHub Profile
@abshkd
abshkd / worker nginx conf
Created November 6, 2015 11:33 — forked from fqrouter/worker nginx conf
Youtube Reverse Proxy
resolver 8.8.8.8;
location /video/ {
if ($request_uri ~ "^/video/(.+?)/.+") {
set $upstream_host $1.googlevideo.com;
add_header Content-Disposition "attachment; filename=video.mp4;";
}
rewrite /video/.+?/(.+)$ /$1 break;
proxy_buffering off;
proxy_pass https://$upstream_host;
proxy_set_header Host $upstream_host;
@abshkd
abshkd / find_dupes.py
Last active July 29, 2019 15:52
http://www.webmastersupport.com a simple script to find duplicate files (even if they are renamed) in a given location with python.
#!/usr/bin/env python
# A simple python script to list duplicate files for a given path
# This is useful to find music, videos, pictures etc that may have different names or locations but same content.
# Usage: $python find_dupes.py <windows or unix path>
# http://www.webmastersupport.com
__author__ = 'abhishek.dujari'
import os
import sys
import hashlib
@abshkd
abshkd / cpuinfo
Created May 7, 2013 19:50
cat /proc/cpuinfo example
processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 23
model name : Intel(R) Core(TM)2 Duo CPU T6500 @ 2.10GHz
stepping : 10
microcode : 0xa0b
cpu MHz : 1600.000
cache size : 2048 KB
physical id : 0
@abshkd
abshkd / glacier.py
Created August 22, 2012 10:05 — forked from ewindisch/glacier.py
glacier python client with multipart
#!/usr/bin/env python
#
# Copyright (c) 2012 Eric Windisch <[email protected]>
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions: