Skip to content

Instantly share code, notes, and snippets.

View cool00geek's full-sized avatar

Vinay V cool00geek

View GitHub Profile
@cool00geek
cool00geek / import_tracks.py
Created November 6, 2021 02:18
Import spotify tracks in dedupe.txt into a Spotify playlist of your choosing. Uses Python + spotipy
from spotipy.oauth2 import SpotifyOAuth
scope = "user-library-read playlist-modify-private playlist-modify-public"
sp = spotipy.Spotify(auth_manager=SpotifyOAuth(scope=scope))
playlists = sp.current_user_playlists()
for i in playlists['items']:
if "Discover Weekly Archive Clean" in i['name']:
print(i)
playlist_id="SETYOURSHERE"
@cool00geek
cool00geek / hangups.conf
Created October 27, 2018 22:21
My config file for Hangups
col-palette-colors=256
col-active-tab-fg=light green
col-active-tab-bg=brown
col-inactive-tab-fg=light red
col-inactive-tab-bg=black
col-msg-date-fg=dark gray
# Uncomment the following lines for use on a light background terminal
#col-msg-sender-fg=#a00
#col-msg-text-fg=#a00
@cool00geek
cool00geek / Main.java
Created February 14, 2018 00:25
Take screenshots of the CyberPatriot scoreboard
/*
* Imports for webdriver
*/
import org.openqa.selenium.OutputType;
import org.openqa.selenium.TakesScreenshot;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;
import org.openqa.selenium.phantomjs.PhantomJSDriver;
import java.io.*; // File library
#!/bin/bash
curl https://packages.microsoft.com/keys/microsoft.asc | apt-key add -
curl https://packages.microsoft.com/config/ubuntu/$(lsb_release -r -s)/prod.list > /etc/apt/sources.list.d/mssql.list
apt-get update
apt-get -y install msodbcsql mssql-tools unixodbc-dev
apt-get -y install python-pip
pip install pyodbc==3.1.1
@cool00geek
cool00geek / Nexus5_Plasma_Multirom.sh
Last active August 27, 2017 05:01
Tool to flash KDE Plasma Mobile to a Nexus 5 with Multirom
#!/bin/bash
set -ex
# Modified from https://github.com/plasma-phone-packaging/pm-flashtool/blob/master/flash-multirom
CACHEDIR=cache
function wait-for-device {
until adb shell true 2> /dev/null
do
sleep 1
@cool00geek
cool00geek / weather.py
Last active December 17, 2016 20:16
Weather
from roboronya.plugins.plugin import Plugin
import roboronya.utils as utils
import urllib.request
import json
import sys
class Weather(Plugin):
description = 'Give the weather for a specified location'
name = 'weather'