Skip to content

Instantly share code, notes, and snippets.

View laytan's full-sized avatar

Laytan laytan

  • The Netherlands
  • 13:54 (UTC +02:00)
  • X @laytanl_
View GitHub Profile
# Configuration for Alacritty, the GPU enhanced terminal emulator.
# Import additional configuration files
#
# Imports are loaded in order, skipping all missing files, with the importing
# file being loaded last. If a field is already present in a previous import, it
# will be replaced.
#
# All imports must either be absolute paths starting with `/`, or paths relative
# to the user's home directory starting with `~/`.
@laytan
laytan / safe-rm.sh
Created June 21, 2021 16:52
Safe rm
#!/bin/bash
# Laytan Laats - 1012512 - INFD 20-1
# Check if file is being sourced, which will need to add the alias
if [[ "${BASH_SOURCE[0]}" != "${0}" ]]
then
echo "Adding safe delete alias."
alias rm="$(pwd)/1012512.sh"
return
fi
@laytan
laytan / customizer.php
Last active September 13, 2019 19:21
Easy wordpress social media icons, simply add an index to the theme_name_get_social_opts array and a everything to get it showing is handled.
<?php
if ( ! function_exists( 'theme_name_theme_customize_register' ) ) {
/**
* Register individual settings through customizer's API.
*
* @param WP_Customize_Manager $wp_customize Customizer reference.
*/
function theme_name_theme_customize_register( $wp_customize ) {
$wp_customize->add_section(
'theme_name_contact',