Skip to content

Instantly share code, notes, and snippets.

View dreamstarter's full-sized avatar
💭
Building a new application!

Bryan Anderson dreamstarter

💭
Building a new application!
View GitHub Profile
@ConfidenceYobo
ConfidenceYobo / django-git-workflow.md
Last active December 27, 2024 13:57
Setting up Git workflow for django

Setup Github Actions for Django Project

Step 1

In project root directory the create a folder called '.github'

Step 2

Create a file in the format workflows/django.yml

@RichardDillman
RichardDillman / HotDogStand.txt
Last active January 28, 2022 19:49
HotDogStand: Create a bookmark named HotDogStand and paste the code below as the url.
javascript:(function()%7B var style %3D document.createElement(%27style%27), styleContent %3D document.createTextNode(%27* %7B outline: 1px solid gray !important%3B font-family: system !important%3B %7D body, span %7B background-color: turquoise !important%3B color: white !important%3B %7D a, a:visited, a:active %7B color: yellow !important%3B background-color: white !important%3B %7D a:hover %7B color: White !important%3B background-color: white !important%3B font-family: system !important%3B %7D input, img %7B border: 1px solid red !important%3B %7D input%5Btype%3Dbutton%5D %7B background-color: gray !important%3B font-family: system !important%3B %7D code, blockquote, pre, div, h1, h2, h3, h4, h5, h6 %7B background-color: red !important%3B color: yellow !important%3B %7D input %7B background-color: yellow !important%3B font-family: system !important%3B font-size: 200%25 !important%3B %7D %27)%3B style.appendChild(styleContent )%3B var caput %3D document.getElementsByTagName(%27head%27)%3B caput%5B0%5D.appe
@luisbebop
luisbebop / install-rbenv-amazon-linux-ami.sh
Created November 26, 2017 16:32
Install rbenv on Amazon Linux AMI
sudo yum install -y git gcc make readline-devel openssl-devel
git clone git://github.com/rbenv/rbenv.git ~/.rbenv
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc
echo 'eval "$(rbenv init -)"' >> ~/.bashrc
source ~/.bashrc
# Install ruby-build system-widely
git clone git://github.com/rbenv/ruby-build.git /tmp/ruby-build
cd /tmp/ruby-build
@nastanford
nastanford / .gitingore
Created August 24, 2017 13:50
Starter .gitignore file for ColdFusion Builder
# ColdFusion Builder or Eclipse)
settings.xml
# Dreamweaver CS6
_notes
dwsync.xml
# ColdFusion Server
CFIDE
WEB-INF
@siddharthkrish
siddharthkrish / version.sh
Created July 3, 2017 15:14
simple bash script to increment the version number of the format major.minor.build
#!/bin/bash
version="$1"
major=0
minor=0
build=0
# break down the version number into it's components
regex="([0-9]+).([0-9]+).([0-9]+)"
if [[ $version =~ $regex ]]; then
@wpscholar
wpscholar / vagrant-cheat-sheet.md
Last active April 15, 2025 07:44
Vagrant Cheat Sheet

Typing vagrant from the command line will display a list of all available commands.

Be sure that you are in the same directory as the Vagrantfile when running these commands!

Creating a VM

  • vagrant init -- Initialize Vagrant with a Vagrantfile and ./.vagrant directory, using no specified base image. Before you can do vagrant up, you'll need to specify a base image in the Vagrantfile.
  • vagrant init <boxpath> -- Initialize Vagrant with a specific box. To find a box, go to the public Vagrant box catalog. When you find one you like, just replace it's name with boxpath. For example, vagrant init ubuntu/trusty64.

Starting a VM

  • vagrant up -- starts vagrant environment (also provisions only on the FIRST vagrant up)
@salcode
salcode / .gitignore
Last active February 15, 2025 04:55
.gitignore file for a general web project - Bare Minimum Git
# -----------------------------------------------------------------
# .gitignore
# Bare Minimum Git
# https://salferrarello.com/starter-gitignore-file/
# ver 20221125
#
# From the root of your project run
# curl -O https://gist.githubusercontent.com/salcode/10017553/raw/.gitignore
# to download this file
#
@bennadel
bennadel / code-1.cfm
Created March 25, 2014 11:14
Making SOAP Web Service Requests With ColdFusion And CFHTTP
<!---
We are going to subscribe to Campaing Monitor using the
AddAndResubscribe actions. This is a SOAP-based method that
requires the following XML body.
--->
<cfsavecontent variable="soapBody">
<cfoutput>
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope
@octocat
octocat / .gitignore
Created February 27, 2014 19:38
Some common .gitignore configurations
# Compiled source #
###################
*.com
*.class
*.dll
*.exe
*.o
*.so
# Packages #
@bennadel
bennadel / cfhttp-timeout.cfm
Created February 26, 2014 12:54
Using The Timeout Attribute With CFHttp In ColdFusion To Limit Blocking
<cfscript>
// Build the common arguments to be used across both HTTP request.
// I'm doing this just to emphasize that the only thing changing
// in the second request is the timeout-related arguments.
httpArguments = {
method = "get",
url = "http://#cgi.server_name##getDirectoryFromPath( cgi.script_name )#long-task.cfm"
};