Skip to content

Instantly share code, notes, and snippets.

View mshmsh5000's full-sized avatar

Matt Holford mshmsh5000

View GitHub Profile
@joshuat
joshuat / Slack avatar-less sidebar.md
Last active January 19, 2021 08:25
Remove the avatars from your slack sidebar

Slack has listened to feedback and given us a way to toggle off the sidebar avatars.

(This only seems to be available in the Beta channel at the moment)

Display or hide profile photos

  1. From your desktop, click your profile picture in the top right.
  2. Select Preferences from the menu.
  3. Click Sidebar in the left-side column.
  4. Check or uncheck the boxes next to Show profile photos next to DMs.
@jlord
jlord / Readme.md
Last active February 15, 2020 19:52

Add these fun keyboard shortcuts to your system! Works especially well if you're writing @muan a lot (◍•ᴗ•◍)♡

Here's how on OS X:

Press cmd + space and search and open System Preferences, then select Keyboard, then Text ヽ(´∇`)ノ

img

Note

@aaronschachter
aaronschachter / gist:9291760
Last active August 29, 2015 13:56
Partners funtime
Deleted field_partners field
Cleared cache
SELECT *
FROM field_collection_item
WHERE field_name='field_partners'
52 rows
SELECT * FROM field_collection_item_revision rev
JOIN field_collection_item item on item.item_id = rev.item_id
@barryvdh
barryvdh / _ide_helper.php
Last active May 6, 2024 07:45
Laravel IDE Helper for Netbeans / PhpStorm / Sublime Text 2 CodeIntel, generated using https://github.com/barryvdh/laravel-ide-helper
<?php
/**
* A helper file for Laravel 5, to provide autocomplete information to your IDE
* Generated for Laravel 5.5.13 on 2017-09-28.
*
* @author Barry vd. Heuvel <barryvdh@gmail.com>
* @see https://github.com/barryvdh/laravel-ide-helper
*/
namespace {
exit("This file should not be included, only analyzed by your IDE");
@keeguon
keeguon / countries.json
Created April 5, 2012 11:11
A list of countries in JSON
[
{name: 'Afghanistan', code: 'AF'},
{name: 'Åland Islands', code: 'AX'},
{name: 'Albania', code: 'AL'},
{name: 'Algeria', code: 'DZ'},
{name: 'American Samoa', code: 'AS'},
{name: 'AndorrA', code: 'AD'},
{name: 'Angola', code: 'AO'},
{name: 'Anguilla', code: 'AI'},
{name: 'Antarctica', code: 'AQ'},
@ashee
ashee / mkisofs
Created April 4, 2012 13:17
Fake mkisofs using hdiutil to appease CloudStack build in osx
#!/bin/sh
# Make sure to chmod +x this script and copy it somewhere in your path, ~/bin in my case
# CloudStack build (ant build-all) will invoke this script
ISO=$4
shift 4
CSTK=$(mktemp -d -t CloudStack.X)
for i in $*; do cp "$i" $CSTK; done
echo "hdiutil makehybrid -o $ISO.iso -hfs -joliet -iso $CSTK"
@smerrill
smerrill / gist:2128465
Created March 19, 2012 23:37
Sample 1.0.1 Vagrantfile w/ NFS, host-only network, Puppet provisioning
# Set up some variables relating to which path Vagrant will try to share
# with the VM.
require 'pathname'
$docroot_name = "path/to/your/docroot"
$docroot_path = ""
# Test that the directory to be shared is in the right place and if it is,
# calculate the fully dereferenced path (since NFS exports will fail if you
# try to specify the path to a symlink.)
if !File.exists?("../#{$docroot_name}") then