Skip to content

Instantly share code, notes, and snippets.

View skbly7's full-sized avatar
🌐
Somewhere in universe

Shivam Khandelwal skbly7

🌐
Somewhere in universe
View GitHub Profile
@skbly7
skbly7 / cric_score
Created March 24, 2015 09:35
cricket score as Ubuntu notification.
#!/usr/bin/env python
import requests
from bs4 import BeautifulSoup
import pynotify
from time import sleep
def sendmessage(title, message):
pynotify.init("Test")
notice = pynotify.Notification(title, message)
notice.show()
return
@skbly7
skbly7 / ocf::btactic:zimbra
Created September 21, 2016 04:38
Mirror for Zimbra HA pacemaker. (ocf::btactic:zimbra)
#!/bin/sh
#
# Resource script for Zimbra
#
# Description: Manages Zimbra as an OCF resource in
# an high-availability setup.
#
# Author: Adrian Gibanel
# <adrian.gibanel@btactic.com> : Original Author
# License: GNU General Public License (GPL)
@skbly7
skbly7 / ad-remove.css
Created December 18, 2017 11:49
iChrome extension advertisement remove for free
/*
Just copy past this into your iChrome settings to get rid of advertisment for free.
Settings -> Advanced -> Custom CSS
These ads can't be removed by your AdBlock and other such extensions,
as they appear inside a extension (new tab), and those adblock extensions aren't initialized by then.
*/
iframe, .ad-unit {
display:none;
@skbly7
skbly7 / cisco_create_guest_user.py
Created February 1, 2018 21:49
Scripted guest account creation in Cisco Wireless Controllers
controller = '10.0.0.0' # Cisco controller IP
username = 'admin'
password = 'password_here'
user_file = 'users.csv'
description = 'ISEC User'
# Check WLAN ID from Controller!
# http://10.0.0.0/screens/apf/wlan_list.html
wlanID = '4' # IIIT-Guest
###################################################
usePassword: true
master:
port: 6379
command: "/run.sh"
disableCommands:
- FLUSHDB
- FLUSHALL
service:
type: LoadBalancer
port: 6379
<div class="button-container">
<a target="_blank" href="https://www.aicrowd.com/challenges/food-recognition-challenge" style="float:right;-webkit-text-size-adjust: none; text-decoration: none; display: inline-block; color: #ffffff; background-color: #de4b46; border-radius: 4px; -webkit-border-radius: 4px; -moz-border-radius: 4px; width: auto; width: auto; border-top: 1px solid #de4b46; border-right: 1px solid #de4b46; border-bottom: 1px solid #de4b46; border-left: 1px solid #de4b46; padding-top: 5px; padding-bottom: 5px; font-family: Helvetica Neue, Helvetica, Arial, sans-serif; text-align: center; mso-border-alt: none; word-break: keep-all;">
<span style="padding-left:10px;padding-right:10px;font-size:14px;display:inline-block;">
<span style="line-height: 19px; word-break: break-word;">
<span style="font-size: 14px; line-height: 16px;" data-mce-style="font-size: 14px; line-height: 16px;">
Read More
</span>
</span>
</span>
</a>
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.