Skip to content

Instantly share code, notes, and snippets.

View integrate-your-mind's full-sized avatar
🤓
404: Work-life balance not found.

integrate-your-mind integrate-your-mind

🤓
404: Work-life balance not found.
  • Boston, MA
  • 09:17 (UTC -04:00)
View GitHub Profile
@integrate-your-mind
integrate-your-mind / tensorman_jupyter.md
Created March 22, 2023 08:36 — forked from andreibosco/tensorman_jupyter.md
Launching jupyter from tensorman (Pop!_OS 20.04)

Launching jupyter from tensorman (Pop!_OS 20.04)

Source: pop-os/tensorman#10 (comment)

When launching a container, be sure to supply the port mappings argument to map the port from the container to the host.

tensorman run -p 8888:8888 --gpu --python3 --jupyter  bash

Within the container, you may start the Jupyter notebook with

@integrate-your-mind
integrate-your-mind / 01-setup-new-typescript-project.md
Created March 22, 2023 08:36 — forked from avermeulen/01-setup-new-typescript-project.md
TypeScript basics with Mocha setup - learn how to use interfaces

Setup a new TypeScript project with Mocha support

Ensure you have TypeScript installed globally using this command:

npm install -g typescript

This outlines how to setup a new TypeScript project with mocha support.

@integrate-your-mind
integrate-your-mind / twitter.md
Created December 13, 2022 00:24 — forked from mehdi-farsi/twitter.md
Script to mass-unfollow OR delete all tweets on Twitter

Mass-unfollow

Step 1

Go to the console tab in your browser: right-click -> "inspect" -> "Console" tab

STEP 2

Paste the following script and press Enter:

@integrate-your-mind
integrate-your-mind / delete_all_tweets.py
Created May 23, 2022 23:58 — forked from davej/delete_all_tweets.py
This script will delete all of the tweets in a specified account.
# -*- coding: utf-8 -*-
"""
This script will delete all of the tweets in the specified account.
You may need to hit the "more" button on the bottom of your twitter profile
page every now and then as the script runs, this is due to a bug in twitter.
You will need to get a consumer key and consumer secret token to use this
script, you can do so by registering a twitter application at https://dev.twitter.com/apps
@requirements: Python 2.5+, Tweepy (http://pypi.python.org/pypi/tweepy/1.7.1)
////////////////////////////////////////////////////////////////////////////////
// Create a directory called "pages" next to
// this file, put markdown files in there, and
// then run:
//
// ```
// $ node build.mjs
// ```
//
// Then deploy the "build" directory somewhere.
@integrate-your-mind
integrate-your-mind / setup-gh-cli-auth-2fa.md
Created July 23, 2020 00:33 — forked from ateucher/setup-gh-cli-auth-2fa.md
Setup git on the CLI to use 2FA with GitHub

These are instructions for setting up git to authenticate with GitHub when you have 2-factor authentication set up. This authentication should be inherited by any GUI client you are using. These are intentionally brief instructions, with links to more detail in the appropriate places.

  1. Download and install the git command-line client (if required).

  2. Open the git bash window and introduce yourself to git (if required):

    git config --global user.name 'Firstname Lastname'
    git config --global user.email '[email protected]'
    
# Luke's config for the Zoomer Shell
# Enable colors and change prompt:
autoload -U colors && colors
PS1="%B%{$fg[red]%}[%{$fg[yellow]%}%n%{$fg[green]%}@%{$fg[blue]%}%M %{$fg[magenta]%}%~%{$fg[red]%}]%{$reset_color%}$%b "
# History in cache directory:
HISTSIZE=10000
SAVEHIST=10000
HISTFILE=~/.cache/zsh/history
# For fun. Generate a random commit message from 'www.whatthecommit.com' everytime you make a new commit. x.x
# If you don't have Ack replace `ack "<p>" -s` with `grep "<p>" -s` and it should work.
git status &&
git add . &&
git commit -m "$(curl 'http://whatthecommit.com/' -s \
|ack "<p>" -s \
| { read -r var; echo "${var//<p>/}" })"
# Push to whatever branch you want here