Skip to content

Instantly share code, notes, and snippets.

View bsquidwrd's full-sized avatar
💭
Learning new things everyday

Squid bsquidwrd

💭
Learning new things everyday
View GitHub Profile
@bsquidwrd
bsquidwrd / discontinued.txt
Last active October 4, 2021 00:41
List of names believed to be associated with Follow Bots DISCONTINUED
This list is no longer useful since actual follow Bots are not causing harm other than manipulating stats a bit.

Live Bot allows you to be alerted when someone goes live on Twitch!. All Twitch channels are checked every 60 seconds

Commands include:

  • @Live Bot monitor add- This will walk you through the process of starting to monitor a Channel
  • @Live Bot monitor edit - This will walk you through the process of editing a Channel
  • @Live Bot monitor stop - This will walk you through the process of stopping a monitor on a Channel (can also be used to stop notifying a specific text channel in your discord)

Coming Soon:

  • Post to Twitter when a Twitch Channel goes live

Keybase proof

I hereby claim:

  • I am bsquidwrd on github.
  • I am bsquidwrd (https://keybase.io/bsquidwrd) on keybase.
  • I have a public key whose fingerprint is C2BC 5689 E9D3 DF04 159C 9266 2C6A CFDB 4B8A 5E91

To claim this, I am signing this object:

$sqlServerIP = "xxx.xxx.xxx.xxx"
$sqlServerDatabase = "DST18000XXXX"
$sqlServerUsername = "someone"
$passwordFilePath = "C:\Data\test.txt"
# This checks if the $passwordFilePath exists
# if not, go ahead and prompt the user for it
# (usually only done on first run)
if (-not(Test-Path $passwordFilePath)) {
$credentials = Get-Credential -Message "Enter the SQL Users password" -Username $sqlServerUsername

Keybase proof

I hereby claim:

  • I am bsquidwrd on github.
  • I am bsquidwrd (https://keybase.io/bsquidwrd) on keybase.
  • I have a public key ASBmE9v1FJSHgOxF8DEd7bWDhfOGIr5rpU-aMisxVXxVRAo

To claim this, I am signing this object:

@bsquidwrd
bsquidwrd / first_follower.py
Last active November 24, 2017 23:30
Get the first follower of a channel
import requests
from dateutil.parser import parse
channel = "lassiz"
client_id = "INSERT TWITCH CLIENT ID HERE"
number_of_followers_to_print = 100
url = "https://api.twitch.tv/kraken/channels/{}/follows".format(channel)
payload = {
@bsquidwrd
bsquidwrd / process_tasks.service
Created September 27, 2017 19:48
My process_tasks systemd service to have it run in the background
[Unit]
Description=Process Background Tasks
After=multi-user.target
[Service]
Type=idle
ExecStart=/path/to/env/bin/python /path/to/project/manage.py process_tasks
Restart=always
RestartSec=5
http://steamcommunity.com/sharedfiles/filedetails/?id=873746971
http://steamcommunity.com/sharedfiles/filedetails/?id=902548451
http://steamcommunity.com/sharedfiles/filedetails/?id=915374863
http://steamcommunity.com/sharedfiles/filedetails/?id=784166441
http://steamcommunity.com/sharedfiles/filedetails/?id=771279262
http://steamcommunity.com/sharedfiles/filedetails/?id=775049557
http://steamcommunity.com/sharedfiles/filedetails/?id=873749349
http://steamcommunity.com/sharedfiles/filedetails/?id=747539326
http://steamcommunity.com/sharedfiles/filedetails/?id=711047840
http://steamcommunity.com/sharedfiles/filedetails/?id=557147187
@bsquidwrd
bsquidwrd / _Instructions.md
Last active October 20, 2022 11:36
PhantomBot !song command setup

In order to get Spotify now playing you must first enable Last.fm scrobbling inside your Spotify settings and sync it with your last.fm account.

Make sure to fill in the user and api key which you can get from here.

You must place the file inside your /var/www/html directory and name it something such as currentsong.php or song.php

Then, from Twitch chat, you can add a command like this:

!addcom !currentsong Current Song: (customapi thentypeyourwebsiteIPordomainnamehere)
@bsquidwrd
bsquidwrd / fetch_emails.py
Created April 10, 2017 15:42
Fetch Emails with Python
import email
import imaplib
import os
SERVER = 'imap.gmail.com'
USERNAME = 'EMAIL ADDRESS'
PASSWORD = 'PASSWORD'
class FetchEmail():