Skip to content

Instantly share code, notes, and snippets.

View dapseen's full-sized avatar
🏠
Working from home

Adedapo Ajuwon dapseen

🏠
Working from home
View GitHub Profile
@jexchan
jexchan / multiple_ssh_setting.md
Created April 10, 2012 15:00
Multiple SSH keys for different github accounts

Multiple SSH Keys settings for different github account

create different public key

create different ssh key according the article Mac Set-Up Git

$ ssh-keygen -t rsa -C "your_email@youremail.com"
@iperelivskiy
iperelivskiy / hash.js
Created November 19, 2012 14:39
JS simple hash function
var hash = function(s) {
/* Simple hash function. */
var a = 1, c = 0, h, o;
if (s) {
a = 0;
/*jshint plusplus:false bitwise:false*/
for (h = s.length - 1; h >= 0; h--) {
o = s.charCodeAt(h);
a = (a<<6&268435455) + o + (o<<14);
c = a & 266338304;
@sadanandkenganal
sadanandkenganal / clea_url_drupal7.md
Last active September 7, 2017 07:23
Enable Clean URL's drupal 7

It's very simple.

In your project Directory, you have .htaccess file. open it and make the following changes. Its a hidden file.

  1. Modify the RewriteBase if you are using Drupal in a subdirectory or in a VirtualDocumentRoot and the rewrite rules are not working properly. For example if your site is at http://example.com/drupal uncomment and modify the following line:

Line 106 - RewriteBase /yourprojectname(project folder)

  1. If your site is running in a VirtualDocumentRoot at http://example.com/, uncomment the following line and modify:
@hirobo
hirobo / mongoexport_with_query.sh
Last active August 6, 2020 11:49
Shell script for mongoexport with query
#!/bin/sh
#########################################################
# usage
#do_mongoexport '2015-04-01' '2015-04-02' 'hoge'
#########################################################
get_millis()
{
if [ $# != 1 ]; then
@ankurk91
ankurk91 / install_lamp_ubuntu.sh
Last active May 1, 2024 05:03
Ubuntu 22 - PHP development (php 7.4 / 8.2, apache 2.4)
#!/bin/bash
set -euo pipefail
IFS=$'\n\t'
# Ubuntu 20/22 dev Server
# Run like (without sudo) - bash install_lamp.sh
# Script should auto terminate on errors
export DEBIAN_FRONTEND=noninteractive
@kigen
kigen / bitbucket-pipelines.yml
Created May 3, 2017 06:48
Android bitbucket pipeline config.
image: uber/android-build-environment:latest
pipelines:
default:
- step:
script:
- echo y | android update sdk --filter "extra-android-m2repository" --no-ui -a # Grab the Android Support Repo which isn't included in the container
- mkdir "${ANDROID_HOME}/licenses" || true
- echo "8933bad161af4178b1185d1a37fbf41ea5269c55" > "${ANDROID_HOME}/licenses/android-sdk-license"
- ./gradlew assembleRelease
@ibraheem4
ibraheem4 / postgres-brew.md
Last active May 1, 2024 09:43 — forked from sgnl/postgres-brew.md
Installing Postgres via Brew (OSX)

Installing Postgres via Brew

Pre-Reqs

Brew Package Manager

In your command-line run the following commands:

  1. brew doctor
  2. brew update
pipelines:
default:
- step:
script:
- echo "I made a pipeline!"
tags: # add the 'tags' section
release-*: # specify the tag
- step: # define the build pipeline for the tag
#python image with aws-cli installed
image: atlassian/pipelines-awscli
@mbaitelman
mbaitelman / README.md
Last active February 20, 2024 22:31
Automated Terraform Deployments Using Bitbucket Pipelines
@dane-stevens
dane-stevens / bitbucket-pipelines.yml
Last active November 4, 2019 11:00
Sample Bitbucket Pipelines Config
options:
# Enable docker for the Pipeline
docker: true
pipelines:
branches:
master:
- step:
name: Build app for Production (create-react-app)
image: mhart/alpine-node:10