Skip to content

Instantly share code, notes, and snippets.

View superbahbi's full-sized avatar
🏡
Working from home

Robert Kugler superbahbi

🏡
Working from home
View GitHub Profile
# 1. https://docs.beam.cloud/v2/getting-started/quickstart#installation
# 2. beam deploy kokoro_beam.py:generate_speech

from beam import endpoint, env, Image, Output


if env.is_remote():
    from kokoro import KPipeline
    import subprocess
@superbahbi
superbahbi / carousel.tsx
Last active December 31, 2023 02:18
Shadcnui Carousel with navigation
@superbahbi
superbahbi / rm_mysql.md
Created January 25, 2023 19:09 — forked from vitorbritto/rm_mysql.md
Remove MySQL completely from Mac OSX

Remove MySQL completely

  1. Open the Terminal

  2. Use mysqldump to backup your databases

  3. Check for MySQL processes with: ps -ax | grep mysql

  4. Stop and kill any MySQL processes

  5. Analyze MySQL on HomeBrew:

    brew remove mysql
    
@superbahbi
superbahbi / install-ro.sh
Created April 7, 2021 21:21 — forked from cbrgm/install-ro.sh
Install rAthena RagnarokOnline Server on Ubuntu 18.04
#!/bin/bash
######################################################
# Basic settings
######################################################
# server base directory
RAGNAROK_DIR=/rAthena
# mysql database settings
MYSQL_ROOT_PW="changeme"

Keybase proof

I hereby claim:

  • I am superbahbi on github.
  • I am superbahbi (https://keybase.io/superbahbi) on keybase.
  • I have a public key whose fingerprint is C327 F42D 7026 F880 4547 80EE A07C 68FD DD42 D1D7

To claim this, I am signing this object:

#!/usr/bin/python
#To install cleverbot use 'pip install cleverbot'
import cleverbot, getpass, time, random
from sleekxmpp import ClientXMPP
class fbMsgBot(ClientXMPP):
def __init__(self, jid, password):
ClientXMPP.__init__(self, jid, password)
self.add_event_handler('session_start', self.start)
self.add_event_handler("message", self.message)
import mechanize
from urlparse import urlparse, urljoin
"""Mechanize will open the link given to it and get the links without breaking much sweat,
I am not sure what kind of repository setup you have so i am just going to use a global list named master to store all the succesfully crawled links, I also added a failed_link list that will store the links that the mechanize model was unable to open for further crawling. """
"""I wasn't sure about the links that the program needs to handle or how those links needed to be handled, so this program assumes that the link given to it is a valid link and i tried to make the program such that it doest not fail without warning"""
"""to form the repository of sites, the master and failed_links lists needs to be stored. Personally I would prefer storing the data in Mongo in the structure:
{'site' : site,
@superbahbi
superbahbi / autopoke.py
Last active August 29, 2015 14:06
Facebook auto poke
#! /usr/bin/python
import mechanize, time, os, getpass
usr = raw_input("Enter enter email: ")
pas = getpass.getpass()
print "Waiting....."
MAX_DELAY = 10
totalPokes = 0
b = mechanize.Browser()
b.addheaders = [('User-agent', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.1) Gecko/2008071615 Fedora/3.0.1-1.fc9 Firefox/3.61')]
b.set_handle_robots(False)
require 'rubygems'
require 'mechanize'
FIRST_NAME = 'FIRST_NAME'
LAST_NAME = 'LAST_NAME'
PHONE = 'PHONE'
EMAIL = '[email protected]'
PARTY_SIZE = 2
SCHEDULE_RANGE = { :start_time => '19:00', :end_time => '20:30' }
@superbahbi
superbahbi / ir_black.bbcolors
Created May 6, 2012 20:48 — forked from dylanvee/ir_black.bbcolors
IR_Black theme for TextWrangler
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>(null)_Other</key>
<string>rgba(0.866667,0.031373,0.023529,1.0)</string>
<key>(null)_Spaces</key>
<string>rgba(0.498039,0.498039,0.498039,1.0)</string>
<key>BackgroundColor</key>
<string>rgba(0.122179,0.122179,0.122179,1.0)</string>