Skip to content

Instantly share code, notes, and snippets.


Block or report user

Report or block timolehto

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View telia_fullscreen_support_chat.js
var isFullscreen = false
var originaWidths
function toggleFullscreen() {
let outerContainer = document.querySelector('#dialogueChat').style
let innerContainer = document.querySelector('#lekaneBanner_chatContentsContainer').style
if (isFullscreen) {
outerContainer.width = originalWidths.outerContainer
innerContainer.width = originalWidths.innerContainer
} else {
let outerContainer = document.querySelector('#dialogueChat').style
View ensure-git-completion.bash
#You should copy-paste or source this to/from your ~/.bash_profile (or whatever you're using)
if [ ! -d "$git_complete_dir" ]; then
mkdir "$git_complete_dir"
command pushd "$git_complete_dir" > /dev/null
now="$(date +%Y-%m-%d)"
if [ "$(tail -1 check.log)" != "$now" ]; then
echo "$now" >> check.log
echo "Checking for updates..."
You can’t perform that action at this time.