Skip to content

Instantly share code, notes, and snippets.

View aeifn's full-sized avatar
🚲

Egor Kuzmichev aeifn

🚲
View GitHub Profile
@aeifn
aeifn / FullCalendar drag & drop events between multiple calendars.markdown
Created March 28, 2016 22:45
FullCalendar drag & drop events between multiple calendars
@aeifn
aeifn / disable.sh
Created February 19, 2018 00:58
Disable bunch of #$!@ in Sierra (Version 2.1)
#!/bin/bash
# IMPORTANT: You will need to disable SIP aka Rootless in order to fully execute this script, you can reenable it after.
# WARNING: It might disable things that you may not like. Please double check the services in the TODISABLE vars.
# Get active services: launchctl list | grep -v "\-\t0"
# Find a service: grep -lR [service] /System/Library/Launch* /Library/Launch* ~/Library/LaunchAgents
# Agents to disable
TODISABLE=('com.apple.security.keychainsyncingoveridsproxy' 'com.apple.personad' 'com.apple.passd' 'com.apple.screensharing.MessagesAgent' 'com.apple.CommCenter-osx' 'com.apple.Maps.mapspushd' 'com.apple.Maps.pushdaemon' 'com.apple.photoanalysisd' 'com.apple.telephonyutilities.callservicesd' 'com.apple.AirPlayUIAgent' 'com.apple.AirPortBaseStationAgent' 'com.apple.CalendarAgent' 'com.apple.DictationIM' 'com.apple.iCloudUserNotifications' 'com.apple.familycircled' 'com.apple.familycontrols.useragent' 'com.apple.familynotificationd' 'com.apple.gamed' 'com.apple.icloud.findmydeviced.findmydevi
a:visited {
color: purple !important;
}
#!/bin/bash
# Close any open System Preferences panes, to prevent them from overriding
# settings we’re about to change
osascript -e 'tell application "System Preferences" to quit'
# How to make TextEdit open with a blank file by default?
# defaults write -g NSShowAppCentricOpenPanelInsteadOfUntitledFile -bool false
# or
# defaults delete -g NSShowAppCentricOpenPanelInsteadOfUntitledFile
#!/bin/sh
BASE_DIR=/media/kolxo3
UNION_DIR=$BASE_DIR/all
DOWNLOAD_DIR=/usr/local/etc/transmission/home/Downloads/KoLXo3
kol_umount(){
echo "Unmounting UNIONFS..."
while sudo umount $UNION_DIR; do true; done;
// Actions which control the server's behavior.
partial keypad_keys function_keys
xkb_symbols "xfree86" {
include "keypad(operators)"
include "srvr_ctrl(fkey2vt)"
};
partial function_keys
xkb_symbols "fkey2vt" {
# copy to ~/.config/sway/config
input * xkb_rules "evdev"
# Default config for sway
#
# Copy this to ~/.config/sway/config and edit it to your liking.
#
# Read `man 5 sway` for a complete reference.
### Variables
#
@aeifn
aeifn / .winit
Created February 28, 2020 16:29
export LIBGL_DRI3_ENABLE=1
export XDG_SESSION_TYPE=wayland
export XDG_RUNTIME_DIR=/tmp/${UID}-xdg
mkdir -p "${XDG_RUNTIME_DIR}"
chmod 0700 "${XDG_RUNTIME_DIR}"
export $(dbus-launch)
export XKB_DEFAULT_RULES=evdev
export GDK_BACKEND=wayland
/usr/local/bin/sway -d -V
@aeifn
aeifn / drmerr
Created February 28, 2020 21:25
link_elf_obj: symbol lkpi_msec2hz_max undefined
Warning: memory type linux leaked memory on destroy (2 allocations, 144 bytes leaked).
linker_load_file: /boot/modules/drm.ko - unsupported file type
KLD i915kms.ko: depends on drmn - not available or version mismatch
linker_load_file: /boot/modules/i915kms.ko - unsupported file type