Skip to content

Instantly share code, notes, and snippets.

View seanwalsh's full-sized avatar

Sean Walsh seanwalsh

View GitHub Profile
@seanwalsh
seanwalsh / ToggleBoolean ( field )
Created January 10, 2016 15:35
FileMaker custom function.
Case ( field = 1; 0; 1 )
RewriteEngine On
# REWRITE FROM WWW.EXAMPLE.COM TO EXAMPLE.COM
RewriteCond %{HTTP_HOST} ^www.example.com$ [NC]
RewriteRule ^(.*)$ http://example.com/$1 [R=301,L]
# REDIRECT HOMEPAGE TO /THIS-WEEK/ UNTIL HOMEPAGE IS CREATED
Redirect /index.php http://example.com/this-week/
#REWRITE ITEM/? TO THE INDEX FILE
@seanwalsh
seanwalsh / example.html
Created July 1, 2017 22:56
Example of a good anchor link text
<a href="#">download <i>War & Peace</i></a>
## Sources
**User Flow**:
**Data Source(s)**:
**Path**:
**Comp Desktop**:
**Comp Mobile**:
## Content
A list of content, where to get the content or description of when the content will be available.
@seanwalsh
seanwalsh / CLEANUP_README.md
Last active May 13, 2024 00:05
A shell script to delete a yarn.lock file and the node_modules directory.

Node Modules Cleanup

This script should be run from the directory containing the node_modules directory and yarn.lock file you want to delete. Be careful with this script as it will delete these items without asking for confirmation. If you want a confirmation prompt before deletion, you can modify the rm commands to rm -i to ask for confirmation before each deletion.

Here's how to use the script:

  1. Save the script to a file, for example cleanup.sh.
  2. Make the script executable by running chmod +x cleanup.sh in your terminal.
  3. Run the script using ./cleanup.sh in your terminal.

Package.json