is the logo
⌘ is command
⌥ is option
import requests | |
import json | |
longLink = input('') | |
res = requests.post('https://api.short.cm/links', { | |
'domain': 'go.itsnoahevans.co.uk', | |
'originalURL': longLink, | |
}, headers = { | |
'authorization': 'API' |
/* Light mode */ | |
@media (prefers-color-scheme: light) { | |
/* theme */ | |
} | |
/* Dark mode */ | |
@media (prefers-color-scheme: dark) { | |
/* theme */ | |
} |
import tweepy | |
import os | |
import json | |
import requests | |
import onesignal as onesignal_sdk | |
#Sets Font For Print | |
class colour: | |
purple = '\033[95m' | |
green = '\033[92m' |
#header { | |
background: linear-gradient(45deg, #753A88, #CC2B5E, #FF681C); | |
background-size: 400% 400%; | |
animation: gradient 15s ease infinite; | |
} | |
@keyframes gradient { | |
0% { | |
background-position: 0% 50%; | |
} |
#!/bin/bash | |
CYAN="$(tput bold; tput setaf 6)" | |
RESET="$(tput sgr0)" | |
clear | |
if command -v python3 > /dev/null 2>&1; then | |
if [ $(python3 -c "print('ye')") = "ye" ]; then | |
clear |
I usually use this for generating SSL certificates for IP addresses - such as internally hosted applications, so they can be secured properly. You will need to manually install and trust the certificate on all clients that wish to access the service with SSL, and provide the cert & key to the service.
This is not a guide! It is simply a script I wrote in about 5 minutes to quickly generate certificates for IP addresses. It is very badly written but it works. Just about.
I won't be maintaining this unless the entire premise of SSL and self-signed certificates magically breaks overnight.
#!/bin/bash | |
# Temporary file to accumulate all commit hours from all repos | |
ALL_COMMIT_HOURS_RAW="all_commit_hours_raw.txt"> "$ALL_COMMIT_HOURS_RAW" # Clear the contents to start fresh | |
# Generate a file with all hours listed (00 to 23) | |
for i in {0..23}; do printf "%02d\n" $i; done > hours.txt | |
# Use find to recursively search for Git repositories and process each | |
find . -type d -name ".git" | while read GIT_DIR; do |