Skip to content

Instantly share code, notes, and snippets.

View aremu-smog's full-sized avatar
🏠
Working from home

Aremu Oluwagbamila (SMOG) aremu-smog

🏠
Working from home
View GitHub Profile
@aremu-smog
aremu-smog / daily-ping.yml
Last active October 3, 2025 11:42
Daily Ping
# Simulated daily request to your render project so that the service doesn't go down
name: Daily render ping
on:
schedule:
- cron: '0 0 * * *' # Runs daily at midnight UTC
workflow_dispatch: # Allows manual triggering
jobs:
curl-website:
@aremu-smog
aremu-smog / palindrome.py
Created August 27, 2023 22:06
Palindrome Checker with Python
def isPalindrome(word):
word_lowercase = word.lower()
word_array = word_lowercase.split(' ')
word_reverse = ' '.join(reversed(word_array))
return word_lowercase == word_reverse
def main():
print("****************************")
print("**✅ PALINDROME CHECKER ❌***")
@aremu-smog
aremu-smog / close_all_tabs_after_5_minutes.js
Last active January 27, 2023 12:20
Close all tabs excluding the current tab after 5secs.
const closeButton = document.querySelector("#close-button")
closeButton.addEventListener("click", async () => {
let [currentTab] = await chrome.tabs.query({
active: true,
currentWindow: true,
})
let allTabs = await chrome.tabs.query({
windowId: chrome.windows.WINDOW_ID_CURRENT,
})
@aremu-smog
aremu-smog / git_aliases.md
Created December 30, 2022 18:54
A collection of git aliases I use.

A list of aliases I use to improve my workflow with git

Copy and paste the code below into your .bash_profile or .zshrc if you use zsh

# stage and commit files
alias gac="git add . & git commit"
# git push
alias gp="git push"
# checkout branch
const testGist = () => {
console.log("As you can see, this is a test gist");
}
testGist()
@aremu-smog
aremu-smog / share-urls.md
Last active January 22, 2021 05:55 — forked from apisandipas/share-urls.md
Share url's for Facebook, Twitter, WhatsApp, Pinterest and Linkedin with just get variables

Creating share buttons with just URL's

Twitter

http://twitter.com/share?text=<TITLE>&url=<URL>

E.g. http://twitter.com/share?text=This+is+google+a+search+engine&url=https%3A%2F%2Fwww.google.com

Facebook

http://www.facebook.com/sharer.php?u=&amp;p[title]=