Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View adamstac's full-sized avatar

Adam Stacoviak adamstac

View GitHub Profile

Disable:

sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.metadata.mds.plist

Enable:

sudo launchctl load -w /System/Library/LaunchDaemons/com.apple.metadata.mds.plist

@adamstac
adamstac / gist:7462202
Last active January 5, 2024 00:01
Install and configure Sendmail on Ubuntu

Install and configure Sendmail on Ubuntu

This should help you get Sendmail installed with basic configuration on Ubuntu.

  1. If sendmail isn't installed, install it: sudo apt-get install sendmail
  2. Configure /etc/hosts file: nano /etc/hosts
  3. Make sure the line looks like this: 127.0.0.1 localhost yourhostname
  4. Run Sendmail's config and answer 'Y' to everything: sudo sendmailconfig
  5. Restart apache sudo service apache2 restart
ssh_user = "user@domain.com" # for rsync deployment
remote_root = "~/path/to/remote/" # for rsync deployment
desc "Runs preview"
task :preview do
system "staticmatic preview ."
end
desc "Builds the site"
task :build => 'styles:clear' do
@adamstac
adamstac / _font-smoothing.scss
Created February 27, 2013 15:46
WebKit font-smoothing Sass mixin
// WebKit font-smoothing
//------------------------------------------------
// References:
//
// 1. http://maxvoltar.com/sandbox/fontsmoothing/
// 2. http://maxvoltar.com/archive/-webkit-font-smoothing
//
// Values: none, antialiased (default), subpixel-antialiased
//
@adamstac
adamstac / ia-writer
Created December 12, 2012 21:08
Open with iA Writer from the command line
# Opens a file using iA Writer (if installed)
# Example: ia README.md
alias ia='open $1 -a /Applications/iA\ Writer.app'
@adamstac
adamstac / ios-media-queries.sass
Created September 17, 2011 13:58
iOS Media Queries for iPhone/iPod, iPad & Retina and Non-Retina Devices
.ipad-only,
.iphone-only,
.retina-only,
.non-retina-only,
.retina-iphone-only,
.non-retina-iphone-only
display: none
// iPad Only
@media only screen and (device-width: 768px)
@adamstac
adamstac / changelog-microsoft-coverage.md
Created June 4, 2018 18:26
Changelog's coverage of the dramatic shift of Microsoft over the years
@adamstac
adamstac / gist:8347083
Last active November 29, 2017 00:55
Enable HiDPI mode on a VMware Fusion OS X 10.9 Mavericks Vagrant VM
  1. Set "Use full resolution for Retina display" in the VM's Settings > Display
  2. Run this command in Terminal sudo defaults write /Library/Preferences/com.apple.windowserver.plist DisplayResolutionEnabled -bool true
  3. In System Preferences, set the display to "scaled" using the resolution 1292 x 807 (HiDPI)
  4. Enjoy.
for i in `gem list --no-versions`; do gem uninstall -aIx $i; done
[16:29][adamstacoviak@AS-MBP15:~/Code/Rizn/presto(master)]$ git log
[16:30][adamstacoviak@AS-MBP15:~/Code/Rizn/presto(master)]$ git log > log.txt
[16:30][adamstacoviak@AS-MBP15:~/Code/Rizn/presto(master)]$ cat log.txt
commit 6a92493e501e9b6096c6b2c34b59f98f460b8373
Author: Wynn Netherland <wynn.netherland@gmail.com>
Date: Sun Jun 13 20:16:00 2010 -0500
theme-ized 404, sitemap exclusions
commit ee0dfe4bbf7e9e60d73229b6febf9562ec27d980