Skip to content

Instantly share code, notes, and snippets.

@csswizardry
csswizardry / tagged.css
Created August 7, 2012 19:09
Leaving tags in CSS files to find similar chunks of code
/*------------------------------------*\
$NAV
\*------------------------------------*/
/*
TAGS: ^lists ^navigation ^text
*/
/*
As per csswizardry.com/2011/09/the-nav-abstraction
*/
.nav{
@bds
bds / gist:2207826
Created March 26, 2012 17:58
Convert files from .scss to .sass
sass-convert -F scss -T sass application_styles.css.scss application_styles.css.sass
@maxkandler
maxkandler / gist:5233150
Created March 24, 2013 19:25
Hide the iTerm2 Dock icon.
/usr/libexec/PlistBuddy -c 'Add :LSUIElement bool true' /Applications/iTerm.app/Contents/Info.plist

System

  1. Set up iCloud Keychain
  2. Remove icons and hide Dock
  3. Default address in iMessage
  4. Install Updates
  5. Add Ru Input Sources
  6. Set up Shortcuts
  7. Add text shortcuts Text
@chbrown
chbrown / _upgrade-pg9.4-to-pg9.5.md
Last active October 7, 2021 13:57
Upgrade PostgreSQL 9.4 to 9.5 on Mac OS X with Homebrew

First, check your current config (example output in homebrew.mxcl.postgresql.plist.xml lower down in this gist):

cat ~/Library/LaunchAgents/homebrew.mxcl.postgresql.plist

Most importantly, note the -D /usr/local/var/postgres argument.

Second, shut down your current PostgreSQL.

launchctl unload ~/Library/LaunchAgents/homebrew.mxcl.postgresql.plist
@ai
ai / requirements.md
Last active December 19, 2023 14:19
Website requirements

Amplifr logo

Amplifr Landings Rules

Amplifr’s rules for landing pages created by outsource.

Requirements

@bobuk
bobuk / gist:be3e9f5da7aa03557abf
Created January 1, 2015 19:18
AppleTV и проблемы AirPlay

После апдейта на iOS8 и OS X 10.10 я обнаружил, что работать с AppleTV стало невозможно. Все начало умирать, тормозить, дисконнектиться. Заикался даже звук, не только видео. Два месяца я терпел, два дня я думал, два часа я потратил на то, чтобы найти проблему и решение. Проблема оказалась закопана глубоко в анонс iOS8, прямо на сайте Apple. Вот тут

center

Поясню: в новых iOS и OS X в сочетании с третьим поколением AppleTV появилась новая крутая возможность. Тепреь не обязательно быть соединенным с одной и той же WiFi точкой, чтобы передавать изображение на AppleTV. Работает это так же, как, например, отправка фоток через AirDrop, технология похожа на WiFi Direct, только очень по-эппловски - широкими броадкастами пытается поймать все WiFi каналы, которые есть рядом. Работает все это прямо на чипе, который реализует WiFi и Bluetooth. И работает, надо сказать, ОЧЕНЬ плохо.

Но страшно не то, что работает это плохо, а то, что включно это

@zkat
zkat / index.js
Last active March 10, 2024 14:32
npx is cool
#!/usr/bin/env node
console.log('yay gist')
@traumverloren
traumverloren / switch-to-rbenv.md
Last active March 29, 2024 00:54
Switch from RVM to rbenv

Switch from RVM to rbenv:

Get Rid of RVM if it's installed:

rvm implode

Cleanup your .bash_profile/.bashrc/.zshrc file to remove RVM from the path:

You should have something like this left from RVM. Delete it from the file. ``[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm"```

@lucasfais
lucasfais / gist:1207002
Created September 9, 2011 18:46
Sublime Text 2 - Useful Shortcuts

Sublime Text 2 – Useful Shortcuts (Mac OS X)

General

⌘T go to file
⌘⌃P go to project
⌘R go to methods
⌃G go to line
⌘KB toggle side bar
⌘⇧P command prompt