Skip to content

Instantly share code, notes, and snippets.

View KingsleyChimezie's full-sized avatar
💻
Working from home

Kingsley Chimezie KingsleyChimezie

💻
Working from home
View GitHub Profile
@fworks
fworks / install-zsh-windows-git-bash.md
Last active July 2, 2024 08:16
Zsh / Oh-my-zsh on Windows Git Bash
@slayer
slayer / cloudflare-delete-all-records.sh
Last active May 14, 2024 21:26
Delete all DNS records for specified zone
#!/bin/bash
TOKEN="xxxxxxxxxxxxxxxxxxx"
ZONE_ID=2222222222222222222222222
# EMAIL=me@gmail.com
# KEY=11111111111111111111111111
# Replace with
# -H "X-Auth-Email: ${EMAIL}" \
# -H "X-Auth-Key: ${KEY}" \
@zthxxx
zthxxx / Activate Office 2019 for macOS VoL.md
Last active July 5, 2024 11:13
crack activate Office on mac with license file
@KingsleyChimezie
KingsleyChimezie / mongodb-easy-install-windows.bat
Last active November 14, 2017 07:09
Automatically install, configure and set up a MongoDB environment on Windows OS (Windows 7 and above). Using the "mongodb-easy-install-windows" batch (.bat) script.
@ECHO OFF
SETLOCAL EnableDelayedExpansion
REM :: Simple batch file to help setup MongoDB
REM :: By Kingsley Chimezie - 08/Nov/2017
REM :: License: MIT
REM :: Initialise variables
(
SET mongodbROOT=!cd!
@adilsoncarvalho
adilsoncarvalho / README.md
Last active August 22, 2022 12:00
Deploying a firebase function from Bitbucket pipelines

Deploying functions from Bitbucket Pipelines

It's quite easy and the same process applies to all Firebase features with minor changes.

Acquire a deployment token

In order to deploy you'll need a deployment token (I named it FIREBASE_TOKEN) and it can be acquired by using the following command

firebase login:ci

@wizioo
wizioo / gitignore_per_git_branch.md
Last active June 25, 2024 15:18
HowTo have specific .gitignore for each git branch

How to have specific .gitignore for each git branch

Objective

My objective is to have some production files ignored on specific branches. Git doesn't allow to do it.

Solution

My solution is to make a general .gitignore file and add .gitignore.branch_name files for the branches I want to add specific file exclusion. I'll use post-checkout hook to copy those .gitignore.branch_name in place of .git/info/exclude each time I go to the branch with git checkout branch_name.

@PurpleBooth
PurpleBooth / README-Template.md
Last active July 3, 2024 16:25
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

@Integralist
Integralist / GitHub curl.sh
Last active June 18, 2024 23:31 — forked from madrobby/gist:9476733
Download a single file from a private GitHub repo. You'll need an access token as described in this GitHub Help article: https://help.github.com/articles/creating-an-access-token-for-command-line-use
curl --header 'Authorization: token INSERTACCESSTOKENHERE' \
--header 'Accept: application/vnd.github.v3.raw' \
--remote-name \
--location https://api.github.com/repos/owner/repo/contents/path
# Example...
TOKEN="INSERTACCESSTOKENHERE"
OWNER="BBC-News"
REPO="responsive-news"
@yang-wei
yang-wei / fullscreen.css
Last active June 6, 2024 06:56
Full size background image using CSS cover in mobile devices
html {
background: url(image url) no-repeat center center fixed;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;
height: 100%;
overflow: hidden;
}
@benfrain
benfrain / post-receive.sh
Last active June 8, 2024 20:52
post-receive hook for multiple branches
#!/bin/bash
while read oldrev newrev ref
do
branch=`echo $ref | cut -d/ -f3`
if [ "master" == "$branch" ]; then
git --work-tree=./path/under/root/dir/live-site/ checkout -f $branch
echo 'Changes pushed live.'
fi