0mj / working-memory

Notes about programming
0 stars 0 forks source link

AI

ChatGPT:astonished:
Run Powershell script from command prompt(assuming script directory has been added to PATH)
ELI5 diff between System & User Environment Variables

powershell -ExecutionPolicy Bypass -Command "& 'alwayson1.ps1'"

image

ASCII

ASCII Art Generator

Bash

bash command

Brain

Plan or be planned.
Life is 10% of what happens to you, and 90% of how you react to it

Command

Command Line Weather.. wttr.in the right way to check the weather
curl wttr.in/44087

Containers

Docker Samples

Data Brokers

Piqu
My life

Data Structure

Schema
Import csv data into google calendar

Date and Time

Epoch Converter

Documentation

Dev Docs

Developer Tools

Dev Tools in Chrome Full Page screen shot

Take a full page screen shot:
Open DevTools (f12) by going to View ➙ Developer ➙ Developer Tools (Option + ⌘ + I)
Go to ellipses menu ➙ Run command (Shift + ⌘ + P)
Type “screenshot”
Select the type of screenshot your want to take: area, full size, node, or regular.

Facial Recognition

PimEyes: Face Recognition Search Engine and Reverse Image Search

Failure Resume

My Failure Resume

Functional Programming

Read up on functional programming on the github readme project.

Git

Overwrite changes to a file with a file from another branch: git checkout master -- README.md
Checkout the last brach you were on: git checkout -
Reference logs, or "reflogs" git reflog

Connected? Verify you're connected ssh -T git@github.com
Set user email for directory git config user.email "address@coolmail.com"
fatal: The current branch main has no upstream branch. To push the current branch and set the remote as upstream, use git push --set-upstream main main solved with git push --set-uprstream github.com:0mj/rspec3_book.git main

Git fatal errors

fatal: No configured push destination.
Either specify the URL from the command-line or configure a remote repository using

git remote add <name> <url>

and then push using the remote name

git push <name>
Solved with git remote add main git@github.com:0mj/rspec3_book.git

GitHub

Add local code to GitHub
GitHub Readme - Intentional Creation
A collection lists, manuals, cheatsheets, blogs, hacks, one-liners, cli/web tools n more. Book of Secret Knowledge
curl a gist

Google Dork

Google Hacking Database
inurl: searchterm updated: 2023
Google Dorks List - boxpiper

HTML

Input & Select Box

HTTP Archive (HAR)

Http Archive

Javascript

Mozilla Developer Network
hotkeys.js - capture keyboard input

document.body.contentEditable = true

Markdown

Markdown Guide
Markdown - Github

Media

Podcasts

Darknet Diaries [Defense in Depth]()
[Malicious Life]()
Security Now
[Smashing Security]()

Books

Atomic Habits
A Mind for Numbers
Clean Code: A Handbook of Agile Software Craftsmanship
Google Books API
Digital Minimalism - Choosing a Focused Life in a Noisy World
operating procedure
(Use apps and digital tools of value)
once a month download and upload pics and vids worth saving and delete the rest
solitude deprevation Indistractable: How to Master the Skill of the Century
Program or Be Programed
Smarter Than You Think
Shikake : the Japanese art of shaping behavior through design Matsumura, Naohiro
xkcd

Phone

Jolly Roger

PHP

php.net

Powershell

Powershell Documentation
Getting Started
Prevent lock out on windows machine
"C:\Users\mattjamison\path\1on1"
New-Guid
What version is this? $PSVersionTable.PSVersion
Call one script from another. Assumming the same directory..

$PSScriptRoot
& "$PSScriptRoot\alwayson.ps1"

Python

Web scraping

Ruby

Ruby documentation
[Ruby documentation - 2.6.6 Standard Library Documentation]()
Ruby Programming books
Effective Testing with RSpec 3
Conditional Assignment Operator ||=
Example: a ||= b
If a is undefined or falsey, evaluate b and set a to the result

Error - "wrong number of arguments (given 3, expected 1..2)" thrown when calling super in a child class method that was overwriting it's parent method

Ruby on Rails

# view list of tables in a rails console
ActiveRecord::Base.connection.tables

Ruby (My Notes)

Recall to remember
"C:\Users\mattjamison\path\System"

Ruby Super

Error - "super: no superclass method create_password_instructionsfor #"

Ruby Testing - RSpec

Run tests in specific directory bundle exec rspec spec/directory

Ubuntu

¯_(ツ)_/¯
Update dependencies..
$ sudo apt -y update
$ sudo apt install postgresql-client-common/focal-pgdg
$ sudo apt install postgresql-common/focal-pgdg
$ sudo apt-get install --reinstall libpq-dev
$ sudo apt-get install --reinstall imagemagick
$ sudo apt-get install --reinstall libmagickwand

Vishing

malicious.life podcast on Vishing

Web

WAF Web Application Firewall

WINDOWS

Control Panel\Hardware and Sound\Power Options\System Settings
Run a powershell script from Windows Run command
powershell -file "C:\Users\mattjamison\path\alwayson.ps1"
a-z index of windows cmd
Zone files? dir /r

RemoteOk

🦾 https://remoteok.com

  1. Remotive

🦾 https://remotive.com

  1. Remote,co

🦾 https://lnkd.in/eYgwD4bB

  1. Flexjobs

🦾 https://www.flexjobs.com

  1. Wellfound

🦾 https://wellfound.com/jobs

  1. JustRemote

🦾 https://lnkd.in/d5ZqAXm

  1. We Work Remotely

🦾 https://lnkd.in/euj9jUYH

  1. AI Jobs

🦾 https://theaijobboard.com

  1. Toptal

🦾 https://www.toptal.com

  1. Working Nomads

🦾 https://lnkd.in/efQwAr7V

Share + Comment more websites so others can benefit! ❤️

Follow us There's An AI For That for more helpful posts like this. 🙏