Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
# IMPORTANT: Don't forget to logout from your Apple ID in the settings before running it!
# IMPORTANT: You will need to run this script from Recovery. In fact, macOS Catalina brings read-only filesystem which prevent this script from working from the main OS.
# This script needs to be run from the volume you wish to use.
# E.g. run it like this: cd /Volumes/Macintosh\ HD && sh /Volumes/Macintosh\ HD/Users/sabri/Desktop/disable.sh
# 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
@geedelur
geedelur / karabiner.json
Last active March 26, 2020 05:04
Media Keys Config for FILCO Keyboard
{
"global": {
"check_for_updates_on_startup": true,
"show_in_menu_bar": true,
"show_profile_name_in_menu_bar": false
},
"profiles": [
{
"complex_modifications": {
"parameters": {
@geedelur
geedelur / com.googlecode.iterm2.plist
Last active February 21, 2016 20:19
iterm2 preferences
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>AdjustWindowForFontSizeChange</key>
<true/>
<key>AllowClipboardAccess</key>
<false/>
<key>AnimateDimming</key>
<false/>
#!/bin/bash
# Binaries
binaries=(
autossh
wget
coreutils # GNU core utilities (those that come with OS X are outdated)
findutils # GNU `find`, `locate`, `updatedb`, and `xargs`, g-prefixed
)
/*
* Basic layout
*/
.container {
width: 100% !important;
padding-right: 30px !important;
padding-left: 30px !important;
}
/* Responsive containers on some pages */
@geedelur
geedelur / boxstarter.ps1
Last active August 29, 2015 14:08
Automated Windows devbox installation using Boxstarter
# http://boxstarter.org/package/url?https://gist.github.com/geedelur/3cdb2a077c1e74213b1a
### windows configs ###
Set-ExplorerOptions -showFileExtensions -EnableShowFullPathInTitleBar
### basic stuff ###
cinst 7zip
cinst notepad2
cinst sumatrapdf
cinst dropbox
@geedelur
geedelur / conemu_settings.xml
Last active August 29, 2015 14:03
my super sexy conemu settings
<?xml version="1.0" encoding="utf-8"?>
<key name="Software">
<key name="ConEmu">
<key name=".Vanilla" modified="2014-10-25 14:51:09" build="140903">
<value name="ColorTable00" type="dword" data="00222827"/>
<value name="ColorTable01" type="dword" data="009e5401"/>
<value name="ColorTable02" type="dword" data="0004aa74"/>
<value name="ColorTable03" type="dword" data="00a6831a"/>
<value name="ColorTable04" type="dword" data="003403a7"/>
<value name="ColorTable05" type="dword" data="009c5689"/>
@geedelur
geedelur / vagrant-librarian-chef-windows.md
Last active January 15, 2018 21:35
vagrant librarian chef windows
// -----------
// Debugger that shows view port size. Helps when making responsive designs.
// -----------
function showViewPortSize(display) {
if(display) {
var height = jQuery(window).height();
var width = jQuery(window).width();
jQuery('body').prepend('<div id="viewportsize" style="z-index:9999;position:fixed;top:40px;left:5px;color:#fff;background:#000;padding:10px">Height: '+height+'<br>Width: '+width+'</div>');
jQuery(window).resize(function() {
@geedelur
geedelur / summernote_show_hide_toolbar.js
Last active March 12, 2019 23:47
show/hide summernote toolbar
function summernoteLoad() {
var $summernoteTextAreas = $('[data-control="summernote"]');
//cargar summernote
$summernoteTextAreas.summernote({
onImageUpload: summernoteOnImageUpload,
onkeyup: function() {
syncSummernoteTextArea($summernoteTextAreas);
validate(false);
},
onblur: function() {