This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function onOpen() { | |
var spreadsheet = SpreadsheetApp.getActiveSpreadsheet(); | |
var menu = []; | |
menu.push({name: "Get Results", functionName: "logData_"}); | |
spreadsheet.addMenu("Super Awesome Menu", menu); | |
} | |
function logData_() { | |
Logger.log("This is my log, it's awesome :)"); | |
var dest = copySheet_(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var db = new PouchDB('ar-db'); | |
var leads = [{ | |
_id: 'a'+Date.now(), | |
name: "Murali Prasad Sharma", | |
contact: [{ | |
handle: "9867327500", | |
channel: "Mobile" | |
}, { | |
handle: "ash.gkwd@gmail.com", | |
channel: "Email" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
Author: Ashish Gaikwad <ash.gkwd@gmail.com> | |
Description: This script will post a message on your slack channel | |
Please configure your `/etc/slack_post.cfg` file first. | |
Example slack_post.cfg | |
[slack] | |
url=https://hooks.slack.com/services/XxXxXxXxXx | |
channel=botwa |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
powerCycleUSB_3 () { | |
for i in $(ls /sys/bus/pci/drivers/xhci_hcd/|grep :) | |
do echo $i >/sys/bus/pci/drivers/xhci_hcd/unbind | |
echo $i >/sys/bus/pci/drivers/xhci_hcd/bind | |
done | |
} | |
powerCycleUSB_2 () { | |
for i in $(ls /sys/bus/pci/drivers/ehci_hcd/|grep :) | |
do echo $i >/sys/bus/pci/drivers/ehci_hcd/unbind |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# @author: Ashish Gawikwad <ash.gkwd@gmail.com> | |
# @license: MIT License | |
# @script: It contains all the functions and aliases which | |
# are frequently used by author. | |
# | |
sleepToRAM () { | |
dbus-send --system --print-reply \ | |
--dest="org.freedesktop.UPower" \ | |
/org/freedesktop/UPower \ |
NewerOlder