Skip to content

Instantly share code, notes, and snippets.

Make it real

Ideas are cheap. Make a prototype, sketch a CLI session, draw a wireframe. Discuss around concrete examples, not hand-waving abstractions. Don't say you did something, provide a URL that proves it.

Ship it

Nothing is real until it's being used by a real user. This doesn't mean you make a prototype in the morning and blog about it in the evening. It means you find one person you believe your product will help and try to get them to use it.

Do it with style

Keybase proof

I hereby claim:

  • I am leo9io on github.
  • I am leo9io (https://keybase.io/leo9io) on keybase.
  • I have a public key ASBB-GxqmcTGSrBzfoo-ySym28X--e7wqM2oZKwd3cWcSAo

To claim this, I am signing this object:

@Leo9IO
Leo9IO / move_msgs.py
Created August 26, 2021 03:37
Discord > Move messages...
''' Markdown notes:
Modified from [this source](https://stackoverflow.com/questions/65516862/creating-discord-bot-method-that-moves-messages-as-embeded-message)
Premise: use the commands.Bot extension: [discord.ext.commands.Bot()](https://discordpy.readthedocs.io/en/neo-docs/ext/commands/api.html?highlight=discord%20ext%20commands%20bot#discord.ext.commands.Bot)
[check out a basic bot](https://github.com/Rapptz/discord.py/blob/master/examples/basic_bot.py)
'''
# Move: !move {channel to move to} {number of messages}
# Used to move messages from one channel to another.
@client.command(name='move')
async def move(context):
@Leo9IO
Leo9IO / docker_wordpress.md
Created August 24, 2021 16:16 — forked from bradtraversy/docker_wordpress.md
Docker Compose FIle For Wordpress, MySQL & phpmyadmin

Wordpress & Docker

This file will setup Wordpress, MySQL & PHPMyAdmin with a single command. Add the code below to a file called "docker-compose.yaml" and run the command

$ docker-compose up -d

# To Tear Down
$ docker-compose down --volumes
@Leo9IO
Leo9IO / ssh.exp
Last active August 26, 2021 03:35
Via Expect, prompt the user to login to an SSH connection via password, then pass it safely within expect. Accepts inline args or defaults defined within. Also returns percentage of / partition which has been used so far.
#!/usr/bin/expect --
# -f if reading from file...
# -- if accepting parameters...
# A reminder for later: if 0 {blah} = a comment block...
if 0 { "query for a password..."
# Source: ; under "Echoing" on pg 199
proc getpass {} {
set timeout -1
stty -echo