Skip to content

Instantly share code, notes, and snippets.

View AkinyiFO's full-sized avatar
💭
"The element of surprise is a big part of winning."

ofa AkinyiFO

💭
"The element of surprise is a big part of winning."
View GitHub Profile
@jweyrich
jweyrich / buildspec.yml
Last active June 28, 2024 05:56
Sample of buildspec.yml for AWS CodeBuild that builds a Docker image from code and push it to ECR to be deployed via CodePipeline
# Change the following to your desired values:
# __ACCOUNT_NUMBER__
# __ECR_REGION__
# __ECR_REPOSITORY_NAME__
# __ECS_CONTAINER_NAME__
version: 0.2
phases:
install:
runtime-versions:
@mikepfeiffer
mikepfeiffer / stress.sh
Created January 27, 2019 21:05
Install Stress Utility on Amazon Linux 2
sudo amazon-linux-extras install epel -y
sudo yum install stress -y
@lsloan
lsloan / Copy Bitbucket repo to GitHub.md
Last active July 18, 2024 09:52 — forked from mandiwise/Update remote repo
Copy Bitbucket repo to GitHub

Copy Bitbucket repo to GitHub

Whenever possible, use GH's "Import repository" feature.

The import feature doesn't always work, though. In my experience, I tried to import a repo and it failed with a generic message. I had to contact GH support to ask for help. They told me my repo had a large file (>100MB), which couldn't be added to GH directly. I had to either remove the file or store it in GH LFS. In this case, one of the CLI methods below are needed:

CLI: Copy the master branch only (OK)

@juemura
juemura / c9-github-integration.md
Last active September 12, 2023 09:40
Tutorial: How to connect your Cloud9 and GitHub accounts via ssh

#Tutorial: How to connect your Cloud9 and GitHub accounts via ssh

To avoid having to enter your username and password EVERY-SINGLE-TIME you push, follow these step-by-step instructions.


#####1. Copy your C9 ssh key. Go to https://c9.io/account/ssh and copy the key below *"Connect to your private git repository"*. It's a very long string that starts with ssh-rsa and ends with your email.

#####2. Paste your C9 ssh key into your GitHub account

@neonankiti
neonankiti / FileCreateActivity.java
Created April 9, 2016 14:06
How to create text file.
package com.finc.strageframewok;
import android.app.Activity;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.v7.app.AppCompatActivity;
import android.view.View;