Skip to content

Instantly share code, notes, and snippets.

View samj1912's full-sized avatar

Sambhav Kothari samj1912

View GitHub Profile
acl allowed_ips src 127.0.0.1 10.0.2.21
http_access allow allowed_ips
cache_peer 202.141.80.22 parent 3128 0 default no-query proxy-only login=username:password
never_direct allow all
http_port 3128
cache_effective_user proxy
cache_effective_group proxy
auth_param basic program /usr/lib/squid3/basic_ncsa_auth /etc/squid3/passwd
acl ncsa_users proxy_auth REQUIRED
http_access allow ncsa_users
cache_peer 202.141.80.22 parent 3128 0 default no-query proxy-only login=username:password
never_direct allow all
http_port 3128
cache_effective_user proxy
cache_effective_group proxy
##############################################
# Sample client-side OpenVPN 2.0 config file #
# for connecting to multi-client server. #
# #
# This configuration can be used by multiple #
# clients, however each client should have #
# its own cert and key files. #
# #
# On Windows, you might want to rename this #
# file so it has a .ovpn extension #
#################################################
# Sample OpenVPN 2.0 config file for #
# multi-client server. #
# #
# This file is for the server side #
# of a many-clients <-> one-server #
# OpenVPN configuration. #
# #
# OpenVPN also supports #
# single-machine <-> single-machine #
void recursive_pipes(char*** piped_commands, int no_of_pipes_left)
{
// //ps | sort | less
if (no_of_pipes_left < 0)
{
return;
}
int fds[2];
pipe(fds);
int pid = fork();

Keybase proof

I hereby claim:

  • I am samj1912 on github.
  • I am samj1912 (https://keybase.io/samj1912) on keybase.
  • I have a public key whose fingerprint is 7EE4 A3FE 79EE FD05 A355 EEF6 FA1E E51E E9B0 0C28

To claim this, I am signing this object:

# -*- coding: utf-8 -*-
PLUGIN_NAME = u"Cover Art Processors"
PLUGIN_AUTHOR = u"Sambhav Kothari"
PLUGIN_DESCRIPTION = ""
PLUGIN_VERSION = "0.1"
PLUGIN_API_VERSIONS = ["0.15"]
from picard.coverart import (
register_coverart_downloaded_action,
register_coverart_file_save_action,
# -*- coding: utf-8 -*-
PLUGIN_NAME = u"Cover Art Processors"
PLUGIN_AUTHOR = u"Sambhav Kothari"
PLUGIN_DESCRIPTION = ""
PLUGIN_VERSION = "0.1"
PLUGIN_API_VERSIONS = ["0.15"]
from picard.coverart.plugins import(
CoverartPluginFunction, FILE_ACTION, TAG_ACTION, DOWNLOAD_ACTION)
from picard import log
************* Module picard.album
54, 0: Too many instance attributes (18/7) (too-many-instance-attributes)
197, 4: Too many local variables (22/15) (too-many-locals)
256, 8: Too many nested blocks (6/5) (too-many-nested-blocks)
247,12: Redefinition of totalalbumtracks type from int to str (redefined-variable-type)
197, 4: Too many branches (23/12) (too-many-branches)
197, 4: Too many statements (67/50) (too-many-statements)
301, 4: Too many arguments (7/5) (too-many-arguments)
503, 4: Too many branches (14/12) (too-many-branches)
54, 0: Too many public methods (26/20) (too-many-public-methods)
def test_initial(self):
self.defaults = self.widget.options
for option in options:
if option.section == 'setting':
if isinstance(option, config.BoolOption):
self.assertEqual(getattr(self.widget.ui, option.name).isChecked(), config.setting[option.name])
elif isinstance(option, config.TextOption):
self.assertEqual(getattr(self.widget.ui, option.name).value(), config.setting[option.name])
def test_value_change(self):