Skip to content

Instantly share code, notes, and snippets.

View SmetDenis's full-sized avatar
🏠
Working at home

Denis Smet SmetDenis

🏠
Working at home
View GitHub Profile
@theobjectivedad
theobjectivedad / bitwarden_backup.sh
Created June 17, 2025 15:48
Bitwarden Backup Script
#!/bin/bash
# Copyright (c) 2025, The Objective Dad
#
# 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 to use, copy, modify, merge, publish, distribute, sublicense,
# and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so,
# subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in all copies or substantial
@umputun
umputun / safari-summary.sh
Last active June 13, 2025 21:09
Raycast script for Safari's page summary
#!/bin/sh
# @raycast.schemaVersion 1
# @raycast.title Summarize Safari page
# @raycast.mode fullOutput
#
# Optional parameters:
# @raycast.icon ✨
#
# @raycast.packageName Things
@henrik242
henrik242 / Global macOS hotkeys for Google Meet, Spotify and others using AppleScript and Fastscripts.md
Last active April 9, 2025 22:39
Global macOS hotkeys for Google Meet, Spotify and others using AppleScript and Fastscripts
@3v1n0
3v1n0 / fish-shell-bash-complete-function.sh
Last active May 10, 2025 13:06
Use bash completions in Fish Shell
#!/usr/bin/fish
# You can add this to your ~/.config/fish/config.fish
function __fish_complete_bash
set cmd (commandline -cp)
bash -c "source get-bash-completions.sh; get_completions '$cmd'"
end
# Set the tool to use bash completions
@gagarine
gagarine / fish_install.md
Last active July 2, 2025 09:47
Install fish shell on macOS Mojave with brew

Installing Fish shell on MacOS (Intel and M1) using brew

Fish is a smart and user-friendly command line (like bash or zsh). This is how you can instal Fish on MacOS and make your default shell.

Note that you need the https://brew.sh/ package manager installed on your machine.

Install Fish

brew install fish

@jbfriedrich
jbfriedrich / nsmb.conf
Last active July 7, 2025 17:22
macOS 11.2 NSMB configuration
# /etc/nsmb.conf - macOS 11.3 - 2021-04-29
#------------------------------------------------------------------------------
# SMB configuration for macOS 11.3 <-> Synology
#------------------------------------------------------------------------------
# Additional information:
# -----------------------
# https://support.apple.com/de-de/HT211927
# https://support.apple.com/en-us/HT208209
# https://apple.stackexchange.com/questions/309016/smb-share-deadlocks-since-high-sierra
# https://photographylife.com/afp-vs-nfs-vs-smb-performance
################ copy/replace file to ~/.bash_aliases
################ Tuning bash ###########################################################################################
# Command line history
export HISTCONTROL=ignoredups:ignorespace
export HISTFILESIZE=10000000
export HISTSIZE=1000000
shopt -s histappend # Append to the history file, don't overwrite it
shopt -s checkwinsize # Check the window size after each command and, if necessary, update the values of LINES and COLUMNS.
FROM php:5.5-fpm
RUN apt-get update && \
apt-get install -y php5-dev php-pear php5-common curl libcurl4-openssl-dev libpng-dev libfreetype6-dev libjpeg-dev libxml2-dev libpq-dev php5-memcached wget php5-intl libicu-dev default-jre libmemcached-dev && \
rm -rf /var/lib/apt/lists/*
RUN docker-php-ext-install bcmath
RUN docker-php-ext-enable bcmath
@SmetDenis
SmetDenis / .bash_profile
Last active May 30, 2018 13:31
jbzoo bashrc
if [ -f ~/.bashrc ]; then . ~/.bashrc; fi
@SmetDenis
SmetDenis / hexlet.js
Last active September 22, 2016 16:04
Javascript helpers for hexlet courses
const dump = (vars, label) => console.log(label ? label : 'dump', ':', vars);
// Or stringify
const dump = (vars, label = 'dump', prettyPrint = false) => {
if (prettyPrint) {
console.log(`${label}:`, JSON.stringify(vars, null, 3));
} else {
console.log(`${label}:`, vars);
}
};