Skip to content

Instantly share code, notes, and snippets.

View cabgfx's full-sized avatar

Casper Klenz-Kitenge cabgfx

View GitHub Profile
@cabgfx
cabgfx / devise_invitable.da.yml
Created July 5, 2011 19:53
Danish locale file for DeviseInvitable
da:
devise:
invitations:
send_instructions: 'En email med invitation er blevet sendt til %{email}.'
invitation_token_invalid: 'Token til invitationen er ikke gyldig!'
updated: 'Dit kodeord er blevet gemt. Du er nu logget ind.'
no_invitations_remaining: "Der er ikke flere invitationer"
mailer:
invitation_instructions:
subject: 'Instruktioner til invitation'
@cabgfx
cabgfx / wpsetup.sh
Created December 10, 2012 15:03
wpsetup
#!/bin/sh
#
# Instructions:
#
# First, create the directory where you want to install WordPress.
#
# Then, `cd` into this newly created directory
#
# `wpsetup` and watch magic unfold before you.
activerecord (4.2.4) lib/active_record/relation/delegation.rb:136:in `method_missing'
activerecord (4.2.4) lib/active_record/relation/delegation.rb:99:in `method_missing'
/Users/Cab/Code/coupons/lib/coupons/configuration.rb:38:in `block in initialize'
/Users/Cab/Code/coupons/app/controllers/coupons/coupons_controller.rb:15:in `call'
/Users/Cab/Code/coupons/app/controllers/coupons/coupons_controller.rb:15:in `index'
actionpack (4.2.4) lib/action_controller/metal/implicit_render.rb:4:in `send_action'
actionpack (4.2.4) lib/abstract_controller/base.rb:198:in `process_action'
actionpack (4.2.4) lib/action_controller/metal/rendering.rb:10:in `process_action'
actionpack (4.2.4) lib/abstract_controller/callbacks.rb:20:in `block in process_action'
activesupport (4.2.4) lib/active_support/callbacks.rb:117:in `call'
import { Controller } from "stimulus";
export default class extends Controller {
static targets = ["count"];
connect() {
this.setCount();
}
checkAll() {
@cabgfx
cabgfx / nativefier.txt
Created April 26, 2023 19:06
Build ChatGPT (chat.openai.com) as a standalone mac app using nativefier
nativefier --lang "en-US" --darwin-dark-mode-support --name "ChatGPT" --conceal --single-instance --disable-dev-tools --fast-quit --user-agent safari --title-bar-style hidden --icon "chatgpt.icns" https://chat.openai.com/ /Applications/