Skip to content

Instantly share code, notes, and snippets.

View christianc1's full-sized avatar
🏠
Working from home @10up

Christian Chung christianc1

🏠
Working from home @10up
View GitHub Profile
@christianc1
christianc1 / merge-repo.sh
Last active December 14, 2022 00:23
Merging a repo
#!/bin/bash
# This is the target directory of the repo we are merging another repo into. (wp-content)
echo $1;
# This is the slug of what we are merging, used for directory and branch names (e360-fix-links)
echo $2;
# This is the remote url of the git directory (https://christianchung10up@bitbucket.org/wallstcheatsheet/e360-fix-links.git)
echo $3
### Keybase proof
I hereby claim:
* I am christianc1 on github.
* I am christianc10up (https://keybase.io/christianc10up) on keybase.
* I have a public key ASC8Gt3hO4wqKMnzwg7FwWXIHYnl6_FE9ZyiG8zvdfHGRwo
To claim this, I am signing this object:
@christianc1
christianc1 / circle.yml
Created July 7, 2017 01:27
Check Github Statuses of Composer Packages
...
test:
override:
- $(which php) package-statuses.php
...
@christianc1
christianc1 / README.md
Last active June 13, 2018 09:20
SFTP Deploys for Pressed with Circle CI

Simple SFTP Deploy when better methods are unavailable by host

Installation

  • npm install --save-dev ftps
  • Add deploy.js to theme/plugin root
  • Add deploy.config.js to theme/plugin root
  • Modify config.

Usage

  • Set up Circle CI with SFTP_HOST SFTP_PASS SFTP_USER environmental variables
@christianc1
christianc1 / ISSUE_TEMPLATE.md
Created February 26, 2016 22:01
Faithmade Issue Template

Issue Type

  • Bug
  • Enhancement
  • Submodule Related

Expected Behavior

If this is an issue, document the expected behavior. If this is a feature, document the desired feature.

Actual Behavior

If this is an issue, describe the actual behavior. If this is a feature, delete this block.

@christianc1
christianc1 / buddyshw.cpp
Created September 21, 2015 01:19
Buddy's Homework 9/20
// Buddy's Homework
#include <iostream>
#include <string>
using namespace std;
int main() {
// Init variable
string passCode;
@christianc1
christianc1 / gist:e29c20b8d9a9d44116ff
Created September 10, 2015 01:37
The answer to Alex's Homework
int main() {
int givenyear = 0;
givenYear = 1776;
if ( givenYear >= 2100 ) {
cout<<"Distant future";
}
else if( givenYear >= 2000 ) {
cout<<"21st century";