Skip to content

Instantly share code, notes, and snippets.

@febeling
febeling / SKILL.md
Created October 4, 2026 14:54 — forked from ossa-ma/SKILL.md
the writing whip: a Claude Code skill that bans AI writing tropes and response behaviours (tropes.fyi)

name: the writing whip description: >- Kill all AI writing tropes and behaviours at the source: generation. Focus on quelling behaviour-driven triggers. Load before writing, especially for anything longer than a paragraph and re-check output against it, extremely important for communications, documentation, outbound, client-facing copy and for your own replies to the user. metadata: category: writing author: Ossama Chaib

@febeling
febeling / win32.yml
Created January 16, 2024 16:43
Build electron app for win32 (minus code signing)
name: win32 Build
on:
push:
branches: ["master"]
pull_request:
branches: ["master"]
jobs:
build:
@febeling
febeling / generate-icns.sh
Last active January 13, 2024 13:01 — forked from ahmed-musallam/generate-icns.sh
A Shell script to generate .ico and .icns files (mac/windows app icons) from a single PNG
#!/bin/bash
# Required deps:
# imagemagick: https://imagemagick.org/script/download.php
# iconutil: https://developer.apple.com/library/archive/documentation/GraphicsAnimation/Conceptual/HighResolutionOSX/Optimizing/Optimizing.html
# name of your master icon, should be 1024x1024 or .svg
if [ -z "$PNG_MASTER" ]; then
# If not set, assign a default value
PNG_MASTER="icon-large.png"
fi
@febeling
febeling / Deploy a Phoenix app with Dokku.md
Created October 11, 2023 09:45 — forked from col/Deploy a Phoenix app with Dokku.md
Deploy a Phoenix app with Dokku
current directory: /Users/febeling/.rbenv/versions/3.0.3/lib/ruby/gems/3.0.0/gems/thin-1.5.1/ext/thin_parser
/Users/febeling/.rbenv/versions/3.0.3/bin/ruby -I /Users/febeling/.rbenv/versions/3.0.3/lib/ruby/3.0.0 -r ./siteconf20220701-96982-dpb84s.rb extconf.rb
checking for main() in -lc... yes
creating Makefile
current directory: /Users/febeling/.rbenv/versions/3.0.3/lib/ruby/gems/3.0.0/gems/thin-1.5.1/ext/thin_parser
make DESTDIR\= clean
current directory: /Users/febeling/.rbenv/versions/3.0.3/lib/ruby/gems/3.0.0/gems/thin-1.5.1/ext/thin_parser
make DESTDIR\=
# frozen_string_literal: true
begin
require "bundler/inline"
rescue LoadError => e
$stderr.puts "Bundler version 1.10 or later is required. Please update your Bundler"
raise e
end
gemfile(true) do
@febeling
febeling / eject.md
Created April 18, 2018 08:02 — forked from dayhaysoos/eject.md
eject command for React Native

Reconfigure

If your project has any issues with the native folders, you can rebuild them by deleting both the ios and android directories at the root level of your project and running this command:

$ react-native eject

Running this command will check if the ios and android directories exist and then rebuild whichever one is missing.

The first time you run this command it will spit out a configuration JSON file called app.json. By default, app.json will have 2 properties:

@febeling
febeling / gist:3b9890e394b15ee127b48d6d76523f2d
Created January 2, 2018 15:55
(DBConnection.ConnectionError) tcp recv: closed
16:52:45.342 [error] GenServer {Commanded.Registration.LocalRegistry, {Commanded.Event.Handler, "issue"}} terminating
** (DBConnection.ConnectionError) tcp recv: closed
(ecto) lib/ecto/adapters/postgres/connection.ex:92: Ecto.Adapters.Postgres.Connection.execute/4
(ecto) lib/ecto/adapters/sql.ex:256: Ecto.Adapters.SQL.sql_call/6
(ecto) lib/ecto/adapters/sql.ex:542: Ecto.Adapters.SQL.struct/8
(ecto) lib/ecto/repo/schema.ex:547: Ecto.Repo.Schema.apply/4
(ecto) lib/ecto/repo/schema.ex:292: anonymous fn/14 in Ecto.Repo.Schema.do_update/4
(ecto) lib/ecto/repo/schema.ex:774: anonymous fn/3 in Ecto.Repo.Schema.wrap_in_transaction/6
(db_connection) lib/db_connection.ex:1366: DBConnection.transaction_nested/2
(db_connection) lib/db_connection.ex:1226: DBConnection.transaction_meter/3
@febeling
febeling / storage_case.ex
Created September 17, 2017 15:25
Storage case to base tests for eventstore on
defmodule MyApp.StorageCase do
use ExUnit.CaseTemplate
setup do
Application.stop(:myapp)
Application.stop(:commanded)
Application.stop(:eventstore)
reset_eventstore()
reset_readstore()
@febeling
febeling / model.ex
Created December 7, 2016 15:51 — forked from alanpeabody/model.ex
Ecto change password w/ confirmation.
defmodule User do
use Ecto.Model
schema "users" do
field :email, :string
field :hashed_password, :string
field :password, :string, virtual: true
field :password_confirmation, virtual: true
timestamps