Skip to content

Instantly share code, notes, and snippets.

View danielmichaels's full-sized avatar
🇦🇺
Will work for coffee

Daniel Michaels danielmichaels

🇦🇺
Will work for coffee
View GitHub Profile
@danielmichaels
danielmichaels / Ideation.md
Last active October 14, 2021 20:57
A list of random idea; mostly useless

Ideation

A Massive dump of ideas - mostly terrible. This is about exercising my creativity and thoughts, rather than developing the next Facebook!

Old List:

Idea filters from Derrick Reimer:

Action Setup Workflow

What you need to do in order to setup a basic Github Actions

SSH

On the server (droplet) create a new ssh key

  • ssh-keygen -t rsa -b 4096 -C "github-actions"
@danielmichaels
danielmichaels / httpx-hackernews-async-example.py
Created July 5, 2020 10:27
A short realworld example of how to use HTTPX's AsyncClient in a sync class.
"""
HackerNews module.
"""
import logging
import asyncio
from operator import itemgetter
import httpx
@danielmichaels
danielmichaels / 1.md
Created May 11, 2019 03:40 — forked from swyxio/1.md
Learn In Public - 7 opinions for your tech career

1. Learn in public

If there's a golden rule, it's this one, so I put it first. All the other rules are more or less elaborations of this rule #1.

You already know that you will never be done learning. But most people "learn in private", and lurk. They consume content without creating any themselves. Again, that's fine, but we're here to talk about being in the top quintile. What you do here is to have a habit of creating learning exhaust. Write blogs and tutorials and cheatsheets. Speak at meetups and conferences. Ask and answer things on Stackoverflow or Reddit. (Avoid the walled gardens like Slack and Discourse, they're not public). Make Youtube videos or Twitch streams. Start a newsletter. Draw cartoons (people loooove cartoons!). Whatever your thing is, make the thing you wish you had found when you were learning. Don't judge your results by "claps" or retweets or stars or upvotes - just talk to yourself from 3 months ago. I keep an almost-daily dev blog written for no one else but me.

Guess what? It

@danielmichaels
danielmichaels / 1.md
Created May 11, 2019 03:40 — forked from swyxio/1.md
Learn In Public - 7 opinions for your tech career

1. Learn in public

If there's a golden rule, it's this one, so I put it first. All the other rules are more or less elaborations of this rule #1.

You already know that you will never be done learning. But most people "learn in private", and lurk. They consume content without creating any themselves. Again, that's fine, but we're here to talk about being in the top quintile. What you do here is to have a habit of creating learning exhaust. Write blogs and tutorials and cheatsheets. Speak at meetups and conferences. Ask and answer things on Stackoverflow or Reddit. (Avoid the walled gardens like Slack and Discourse, they're not public). Make Youtube videos or Twitch streams. Start a newsletter. Draw cartoons (people loooove cartoons!). Whatever your thing is, make the thing you wish you had found when you were learning. Don't judge your results by "claps" or retweets or stars or upvotes - just talk to yourself from 3 months ago. I keep an almost-daily dev blog written for no one else but me.

Guess what? It

@danielmichaels
danielmichaels / teaching.py
Last active September 6, 2018 12:40
A cheatsheet for the very basics of python
"""All the things I wish someone helped me with when I started out."""
import time
# This is how we import "modules", what's a module?
# A module at its simplest, is another script - what you are reading, is a script.
# when we import 'time' we are saying 'let me access everything in that script'
# this lets us 'call' or use any function or method within that script - with a caveat.
string = 'This is a string'
string2 = "single quotes, or double quotes, you decide!"

Restart Xorg

Sometimes my Mint 17 workstation lock screen freeze's preventing me from logging in. Restarting Xorg fixes it.

Ctrl+Alt+Backspace (restart xorg)

This will kill all applications and launch a new instance of the desktop.

@danielmichaels
danielmichaels / tmux-cheatsheet.markdown
Created February 23, 2018 12:22 — forked from MohamedAlaa/tmux-cheatsheet.markdown
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname