Skip to content

Instantly share code, notes, and snippets.

View annedorko's full-sized avatar

Anne Dorko annedorko

View GitHub Profile
@ishan123456789
ishan123456789 / Providers.js
Created June 17, 2020 14:40
Fix for strapi to allow multiple providers
// /extensions/users-permissions
"use strict";
/**
* Module dependencies.
*/
// Public node modules.
const _ = require("lodash");
const request = require("request");
@BeKnowDo
BeKnowDo / windows-10.md
Last active March 31, 2024 21:32
Windows 10 sucks...but we can make it less sucky. This is how I setup local development for Win10

Install Chocolately

Install ConEmu

  • Install via chocolately choco install conemu -y

Install Nginx

  • Install via chocolately choco install nginx -y ** The -y argument is to skip any confirmation messages...just install it. It's fine ;)
@ghosh
ghosh / micromodal.css
Last active May 30, 2024 21:23
Demo modal styles for micromodal.js and corresponding expected html. If using this, set the `awaitCloseAnimation` in config to true
/**************************\
Basic Modal Styles
\**************************/
.modal {
font-family: -apple-system,BlinkMacSystemFont,avenir next,avenir,helvetica neue,helvetica,ubuntu,roboto,noto,segoe ui,arial,sans-serif;
}
.modal__overlay {
position: fixed;
@montrealist
montrealist / deploy-to-digital-ocean.markdown
Last active January 7, 2024 11:57
How to deploy files to Digital Ocean when pushing to Gitlab

How to get auto-deploy working from Gitlab to your Digital Ocean (DO) server.

Install https://github.com/olipo186/Git-Auto-Deploy (via apt-get):

sudo apt-get install software-properties-common
sudo add-apt-repository ppa:olipo186/git-auto-deploy
sudo apt-get update
sudo apt-get install git-auto-deploy
@bsara
bsara / git-ssh-auth-win-setup.md
Last active June 12, 2024 21:09
Setup SSH Authentication for Git Bash on Windows

Setup SSH Authentication for Git Bash on Windows

Prepararation

  1. Create a folder at the root of your user home folder (Example: C:/Users/uname/) called .ssh.
  2. Create the following files if they do not already exist (paths begin from the root of your user home folder):
  • .ssh/config
@oxguy3
oxguy3 / deploy.php
Last active August 5, 2023 20:21
Script used to automatically deploy from GitHub to a cPanel shared hosting server
<?php
/**
* deploy.php by Hayden Schiff (oxguy3)
* Available at https://gist.github.com/oxguy3/70ea582d951d4b0f78edec282a2bebf9
*
* No rights reserved. Dedicated to public domain via CC0 1.0 Universal.
* See https://creativecommons.org/publicdomain/zero/1.0/ for terms.
*/
// random string of characters; must match the "Secret" defined in your GitHub webhook
@Phlow
Phlow / automatic_post_excerpt_for_post_pages.liquid
Last active March 13, 2021 17:56
This include splits the content of {{ content }} into two parts if Jekyll finds an excerpt separator. This allows extra styling of the first part to enlarge the the fontsize of the teaser for example.
{% comment %}
#
# Explanation:
#
# This include splits the content of {{ content }} into
# two parts if Jekyll finds an excerpt separator. This allows
# extra styling of the first part to enlarge the the fontsize
# of the teaser for example.
#
# The excerpt separator can be defined directly in your
@mkrdip
mkrdip / remove-gf-divi.php
Last active January 13, 2021 13:32
Remove Google Fonts from Divi
<?php
function wpse_dequeue_google_fonts() {
wp_dequeue_style( 'divi-fonts' );
}
add_action( 'wp_enqueue_scripts', 'wpse_dequeue_google_fonts', 20 );
@versedi
versedi / kill-ssh-agents.bat
Created August 30, 2015 10:57
Kill all ssh-agents Windows
taskkill /F /IM ssh-agent.exe /T
@bipinu
bipinu / install-ts-php.sh
Last active September 13, 2022 13:15
Install Thread Safe PHP 5.6, along with pthreads extension on OS X
# Note: Based on http://justinhileman.info/article/reinstalling-php-on-mac-os-x/
# Refer to the page in case of any issues
# Assumed that you have Brew install; else run the following commands
# xcode-select --install
# ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew update && brew upgrade