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 / 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 <eric@cloudscaling.com>
#
# 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:
@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 / 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 / KF2Bots.KF2BotsMut.log
Created June 26, 2016 04:21
Kf2Bots Mutator logs
0069.71] Log: === Critical error: ===
Fatal error!
Address = 0xab14736d (filename not found) [in F:\kf2-server\Binaries\win64\KFServer.exe]
Address = 0xab147c14 (filename not found) [in F:\kf2-server\Binaries\win64\KFServer.exe]
Address = 0xab14bb74 (filename not found) [in F:\kf2-server\Binaries\win64\KFServer.exe]
Address = 0xab168170 (filename not found) [in F:\kf2-server\Binaries\win64\KFServer.exe]
Address = 0xab15ab65 (filename not found) [in F:\kf2-server\Binaries\win64\KFServer.exe]
Address = 0xab168170 (filename not found) [in F:\kf2-server\Binaries\win64\KFServer.exe]
Address = 0xab15ab65 (filename not found) [in F:\kf2-server\Binaries\win64\KFServer.exe]
@abshkd
abshkd / Gemfile
Created September 5, 2016 12:14
Gemfile template. This is enough to run "bundle install" then edit to make your changes
#From https://gist.github.com/abshkd/92c76ec570d6821dce1ac28c2de8073e
source 'https://rubygems.org'
ruby '2.3.0'
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem 'rails', '4.2.7'
# Use sqlite3 as the database for Active Record
gem 'sqlite3'
@abshkd
abshkd / rails-4-quickstart
Last active September 5, 2016 12:31
New Rails 4.x project quickstart
# Assuming you are using rbenv
#ensure right ruby version 2.3.0 in my case
rbenv version
mkdir projects
cd projects
#create a Gemfile by hand and then bundle install. use the basic template to start
wget https://gist.githubusercontent.com/abshkd/92c76ec570d6821dce1ac28c2de8073e/raw/3ea01c79d607d2dd1f370971cd5f57b23cb6d436/Gemfile
bundle install
rails new my_project --skip-test-unit
@abshkd
abshkd / Gemfile
Created September 5, 2016 14:51
A basic starter Gemfile with Rspec
source 'https://rubygems.org'
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem 'rails', '4.2.7'
# Use sqlite3 as the database for Active Record
gem 'sqlite3'
# Use SCSS for stylesheets
gem 'sass-rails', '~> 5.0'
# Use Uglifier as compressor for JavaScript assets
@abshkd
abshkd / developers.md
Last active September 9, 2016 15:58
Superuser Developer's toolbelt
@abshkd
abshkd / RTAnalytics.md
Created October 21, 2016 09:50
What is Analytics

Stages

  • Discovery - Patterns in Data
  • Communicating - Provide ingiht at higher level

##Types of Analytics

  • Cubic Analytics - BI, filtering aggregation on Dimension. usually 3 to N dimension including Time often but not always
  • Predictive Analysis - Statistical and machine learning. ** regression ** etc
@abshkd
abshkd / iperf-RB-3011-UiAS-RM
Created December 21, 2017 07:32
iperf of RB 3011 uiAS-RM
# over Cat 5e with over 10 clients connected
iperf -c 192.168.88.252
------------------------------------------------------------
Client connecting to 192.168.88.252, TCP port 5001
TCP window size: 85.0 KByte (default)
------------------------------------------------------------
[ 3] local 192.168.88.251 port 37608 connected with 192.168.88.252 port 5001
[ ID] Interval Transfer Bandwidth
[ 3] 0.0-10.0 sec 1.03 GBytes 887 Mbits/sec