Skip to content

Instantly share code, notes, and snippets.

View 0mj's full-sized avatar
🙏

Matt Jamison 0mj

🙏
  • Ohio
  • 20:21 (UTC -04:00)
View GitHub Profile
@0mj
0mj / README.md
Created June 25, 2025 21:54 — forked from roachhd/README.md
EMOJI cheatsheet 😛😳😗😓🙉😸🙈🙊😽💀💢💥✨💏👫👄👃👀👛👛🗼🔮🔮🎄🎅👻

EMOJI CHEAT SHEET

Emoji emoticons listed on this page are supported on Campfire, GitHub, Basecamp, Redbooth, Trac, Flowdock, Sprint.ly, Kandan, Textbox.io, Kippt, Redmine, JabbR, Trello, Hall, plug.dj, Qiita, Zendesk, Ruby China, Grove, Idobata, NodeBB Forums, Slack, Streamup, OrganisedMinds, Hackpad, Cryptbin, Kato, Reportedly, Cheerful Ghost, IRCCloud, Dashcube, MyVideoGameList, Subrosa, Sococo, Quip, And Bang, Bonusly, Discourse, Ello, and Twemoji Awesome. However some of the emoji codes are not super easy to remember, so here is a little cheat sheet. ✈ Got flash enabled? Click the emoji code and it will be copied to your clipboard.

People

:bowtie: 😄

@0mj
0mj / ruby_system_method.md
Last active May 16, 2025 18:55
Ruby script calls a Powershell script, which presses scroll lock key.
System('powershell', '-Command', '(New-Object -ComObject WScript.Shell).SendKeys("{SCROLLLOCK}")')
  • system() - This is a Ruby method that executes external commands on your operating system. It's like asking Ruby to step aside and let your computer's command line take over temporarily.
  • 'powershell' - This is the first argument, telling Ruby to run PowerShell, which is a command-line tool and scripting language on Windows systems.
  • '-Command' - This is the second argument, telling PowerShell to execute the following command.
  • The third argument is a PowerShell script enclosed in quotes: '(New-Object -ComObject WScript.Shell) creates a Windows Script Host Shell object, which can interact with Windows. .SendKeys("{SCROLLLOCK}")' tells this object to simulate pressing the Scroll Lock key.

[!Tip]

@0mj
0mj / while.rb
Created May 7, 2025 18:15
ruby sendkeys during hours
current_hour = Time.now.hour
i = 0
while current_hour < 17 && current_hour >= 8
# Using system command with a simple command-line utility
if RUBY_PLATFORM =~ /mswin|mingw|windows/
# For Windows using PowerShell SendKeys
system('powershell', '-Command', '(New-Object -ComObject WScript.Shell).SendKeys("{SCROLLLOCK}")')
else
# For Linux using xdotool (needs to be installed)
system('xdotool key Scroll_Lock')
<!DOCTYPE html>
<html>
<head>
<title>Current Time</title>
<script>
function updateTitleTime() {
const now = new Date();
const hours = String(now.getHours()).padStart(2, '0');
const minutes = String(now.getMinutes()).padStart(2, '0');
const seconds = String(now.getSeconds()).padStart(2, '0');
@0mj
0mj / Fullscreen Text area Bookmarklet
Last active April 20, 2025 15:37
Bookmarklet Notepad. Paste to a bookmark within browser
javascript:(function(){const h=`<html><head><title>Fullscreen Typing</title><style>html,body{margin:0;padding:0;background:#000;color:pink;width:100%;height:100%;font-size:24px;font-family:sans-serif;overflow:hidden}body{display:flex;justify-content:center;align-items:center}div{width:100%;height:100%;outline:none;white-space:pre-wrap}</style></head><body><div%20contenteditable="true"%20autofocus></div></body></html>`;const%20w=window.open();w.document.write(h);w.document.close();})();
@0mj
0mj / Prompt for copilot build expandable html form
Created March 1, 2024 14:57
Prompt for creating bootstrap form
create a boostrap html form:
title "Audience Builder"
info panel "Use the following inputs to create an audience on your way to refining a recipient list"
text input, labeled "Audience Name"
select option, labeled "Group"
select option, labeled "Program"
select option, labeled "Plan"
button named "create segement"
clicking button expands the following hidden options
---------------------------------------------------------------------------------------------------
"Build your self esteem around your willingness to acknowledge your inadequacies while you continue
to improve. Sounds obvious, but most people build their self esteem around being right. That's the
recipe for a small life of constant insecurity." -Tom Bilyeu
illicit services: 404 media, only fake, swap face, deep face live,
verbal password
LLM diagram based on llama
The risks of prompt injection attacks and data exfiltration through Google Apps Scripts.
@0mj
0mj / excel-rambo-names
Created November 14, 2023 14:16
CHATGPT Creating 100 random names in Excel
Creating 100 random names in Excel can be done using formulas or by using some online tools. Here's a simple way to generate random names using formulas in Excel:
Open Excel.
In cell A1, enter the formula to generate a random first name. Assuming you want to generate names in the format "First Last," use the following formula:
excel
Copy code
=INDEX({"John","Jane","Bob","Alice","Charlie","Emma","David","Olivia","Michael","Sophia"}, RANDBETWEEN(1,10))
Replace the names inside the curly braces with a list of first names you want to include.
list of ai sites
ChatGPT
There are many websites and online resources related to artificial intelligence (AI). Here is a list of some popular AI-related websites and platforms as of my last knowledge update in January 2022. Please note that the availability and popularity of websites can change over time, so it's a good idea to verify their current status and relevance:
OpenAI (https://openai.com): OpenAI is known for developing advanced AI models and technologies. They provide research papers, news, and information about their projects.
TensorFlow (https://www.tensorflow.org): TensorFlow is an open-source machine learning framework developed by Google. Their website includes documentation, tutorials, and resources for AI and machine learning.
PyTorch (https://pytorch.org): PyTorch is an open-source deep learning framework developed by Facebook's AI Research lab. The website offers documentation, tutorials, and resources for PyTorch users.
@0mj
0mj / gist:65473197fed1885fc3ed8c28bd965fc6
Created October 31, 2023 18:41
Rails console show tables
ActiveRecord::Base.connection.tables