Skip to content

Instantly share code, notes, and snippets.

View sarahcssiqueira's full-sized avatar

Sarah Siqueira sarahcssiqueira

View GitHub Profile
@rubyandcoffee
rubyandcoffee / Bootstrap - Rails 7
Last active April 4, 2026 11:37
Bootstrap with Rails 7
Adding Bootstrap to Rails 7
Reference: https://www.linkedin.com/pulse/rails-7-bootstrap-52-importmap-md-habibur-rahman-habib/
INSTRUCTIONS
1. Add the following to Gemfile:
gem "bootstrap"
gem "sassc-rails"
@pixelwatt
pixelwatt / .gitlab-ci.yml
Created May 2, 2021 10:11
GitLab CI Deployment Script for WPEngine
stages:
- deploy
deploy_production:
stage: deploy
image: tetraweb/php:7.1
when: manual
before_script:
- 'which ssh-agent || ( apt-get update -y && apt-get install openssh-client -y )'
- eval $(ssh-agent -s)
@devinsays
devinsays / set-cookie-wordpress.php
Last active May 19, 2024 19:18
How to set a cookie using PHP in WordPress
@Jonalogy
Jonalogy / handling_multiple_github_accounts.md
Last active May 1, 2026 03:35
Handling Multiple Github Accounts on MacOS

Handling Multiple Github Accounts on MacOS

The only way I've succeeded so far is to employ SSH.

Assuming you are new to this like me, first I'd like to share with you that your Mac has a SSH config file in a .ssh directory. The config file is where you draw relations of your SSH keys to each GitHub (or Bitbucket) account, and all your SSH keys generated are saved into .ssh directory by default. You can navigate to it by running cd ~/.ssh within your terminal, open the config file with any editor, and it should look something like this:

Host *
 AddKeysToAgent yes

> UseKeyChain yes

@amboutwe
amboutwe / yoast_seo_breadcrumb_remove_link.php
Last active April 9, 2026 12:22
These snippets are examples of how you can modify the Yoast SEO breadcrumb visual output. These snippets will not alter the breadcrumb schema output. Please consult the schema documentation to change the breadcrumb schema: https://developer.yoast.com/features/schema/api#to-add-or-remove-graph-pieces
@lukas-h
lukas-h / license-badges.md
Last active May 12, 2026 01:58
Markdown License Badges for your Project

Markdown License badges

Collection of License badges for your Project's README file.
This list includes the most common open source and open data licenses.
Easily copy and paste the code under the badges into your Markdown files.

Notes

  • The badges do not fully replace the license informations for your projects, they are only emblems for the README, that the user can see the License at first glance.

Translations: (No guarantee that the translations are up-to-date)

@carlalexander
carlalexander / AdminPage.php
Last active February 12, 2025 20:00
WordPress and the single responsibility principle
<?php
namespace WPMemeShortcode;
/**
* The WordPress Meme Shortcode admin page.
*
* @author Carl Alexander
*/
class AdminPage