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
http://www.facebook.com/sharer.php?u=&p[title]=
# for bash (macOS) | |
POSH_THEMES_PATH=$(brew --prefix oh-my-posh)/themes | |
eval "$(oh-my-posh completion bash)" | |
eval "$(oh-my-posh init bash --config "$POSH_THEMES_PATH"/clean-detailed.omp.json | sed 's|\[\[ -v MC_SID \]\]|[[ -n "$MC_SID" ]]|')" |
UPDATED 22.11.2022
It's been two years since the last update, so here's the updated working script as per the comments below.
Thanks to BryanHaley for this.
setInterval(function () {
video = document.getElementsByTagName('ytd-playlist-video-renderer')[0];
video.querySelector('#primary button[aria-label="Action menu"]').click();
Code is clean if it can be understood easily – by everyone on the team. Clean code can be read and enhanced by a developer other than its original author. With understandability comes readability, changeability, extensibility and maintainability.
#!/bin/bash | |
files_to_backup=(.env .db.env .fidi.env docker-compose.yml ) | |
info() { echo -e "\\033[1;36m[INFO]\\033[0m \\033[36m$*\\033[0m" >&2; } | |
warn() { echo -e "\\033[1;33m[WARNING]\\033[0m \\033[33m$*\\033[0m" >&2; } | |
fatal() { echo -e "\\033[1;31m[FATAL]\\033[0m \\033[31m$*\\033[0m" >&2; exit 1; } | |
intro () { | |
echo " =====================================================" |
/* | |
* Created by C.J. Kimberlin | |
* | |
* The MIT License (MIT) | |
* | |
* Copyright (c) 2019 | |
* | |
* Permission is hereby granted, free of charge, to any person obtaining a copy | |
* of this software and associated documentation files (the "Software"), to deal | |
* in the Software without restriction, including without limitation the rights |
function inception(f) { | |
try { | |
return 'recursion puts the "' + f.name + '" in "' + f(f) + '"'; | |
} catch (e) { | |
return ''; | |
} | |
} |
<!-- A script to get max call stack size in browser | |
In my Macbook pro | |
Firefox 28: | |
maxStackSize = 350801 (dynamic, but always above 300000) | |
error: InternalError: too much recursion | |
Safari 7.0.2 | |
maxStackSize = 58034 | |
error: RangeError: Maximum call stack size exceeded. | |
Chrome 33: |