Skip to content

Instantly share code, notes, and snippets.

View mosinski's full-sized avatar
👨‍💻
Shipping Code... Day & Night 🚀

Miłosz Osiński mosinski

👨‍💻
Shipping Code... Day & Night 🚀
View GitHub Profile
@guycalledseven
guycalledseven / manual-uninstall-paragon-ntfs.sh
Last active November 14, 2023 10:48
Manually remove Paragon NTFS v15 leftovers MacOS
# after appcleaner does his magic, do this
sudo rm -rf "/Library/Application Support/Paragon Software/"
sudo rm /Library/LaunchDaemons/com.paragon-software.installer.plist
sudo rm /Library/LaunchDaemons/com.paragon-software.ntfs.loader.plist
sudo rm /Library/LaunchDaemons/com.paragon-software.ntfsd.plist
sudo rm /Library/LaunchAgents/com.paragon-software.ntfs.notification-agent.plist
sudo rm -rf /Library/Filesystems/ufsd_NTFS.fs/
sudo rm -rf /Library/PrivilegedHelperTools/com.paragon-software.installer
sudo rm -rf /Library/Extensions/ufsd_NTFS.kext/
@mosinski
mosinski / basic-spree-backend.md
Last active August 29, 2015 14:05
Basic Spree Backend

Set up a Spree backend only install

rails new your-store-name

Gemfile

gem 'spree_backend', github: 'spree/spree'
@huoxito
huoxito / spree_backend_install.md
Last active March 25, 2020 03:35
Spree backend install

Set up a Spree backend only install

rails new store-backend

Gemfile

gem 'spree_backend', github: 'spree/spree'
@marcomd
marcomd / gist:3129118
Created July 17, 2012 12:18
Authenticate your API with devise, token by header
#Session controller provides a token
#/controllers/api/sessions_controller.rb
class Api::SessionsController < Devise::SessionsController
before_filter :authenticate_user!, :except => [:create]
before_filter :ensure_params_exist, :except => [:destroy]
respond_to :json
def create
resource = User.find_for_database_authentication(:email => params[:user_login][:email])
return invalid_login_attempt unless resource