Skip to content

Instantly share code, notes, and snippets.

View oojewale's full-sized avatar
💭
working remotely

Olaide Ojewale oojewale

💭
working remotely
View GitHub Profile
@oojewale
oojewale / update_asana_priority.py
Created May 13, 2020 07:25
Update custom field on Asana task with information from Google sheet.
from __future__ import print_function
import pickle
import os.path
import string
import requests
from googleapiclient.discovery import build
from google_auth_oauthlib.flow import InstalledAppFlow
from google.auth.transport.requests import Request
# If modifying these scopes, delete the file token.pickle.
@oojewale
oojewale / Alphasights_technical_challenge.md
Created October 29, 2018 10:10 — forked from tadast/Alphasights_technical_challenge.md
A technical challenge we give to our Ruby on Rails applicants in order to evaluate their coding proficiency. Job description: http://www.alphasights.com/positions/ruby-developer-london or http://www.alphasights.com/positions/ruby-developer-new-york

Alphasights Technical Challenge

Using Ruby on Rails we would like you to create a simple expert search tool. The application should fulfill the requirements below. The source code must be placed in a public repo on GitHub. The application should be deployable on Heroku.

  • I enter a name and a personal website address and a member is created.
  • When a member is created, all the heading (h1-h3) values are pulled in from the website to that members profile.
  • The website url is shortened (e.g. using http://goo.gl)
  • After the member has been added, I can define their friendships with other existing members. Friendships are bi-directional i.e. If David is a friend of Oliver, Oliver is always a friend of David as well.
  • The interface should list all members with their name, short url and the number of friends e.g. Alan http://goo.gl/3io1P (3)
@oojewale
oojewale / pre-commit
Last active March 28, 2018 14:45
Prevent commit if merge conflict markers or debuggers are in your changes
#!/bin/bash
#
# This pre-commit hook checks that there are no merge conflict markers
# or debuggers in your code before committing.
#
# To use this script copy it to .git/hooks/pre-commit and make it executable.
# Work out what to diff against, HEAD will work for any established repository.
if git rev-parse --verify HEAD >/dev/null 2>&1
then
@oojewale
oojewale / setup.sh
Last active October 19, 2017 11:04
Basic env setup for Amazon AMI
#!/bin/bash
sudo yum install -y git gcc openssl-devel readline-devel zlib-devel
git clone https://github.com/rbenv/rbenv.git ~/.rbenv
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bash_profile
~/.rbenv/bin/rbenv init
source ~/.bash_profile
eval "$(rbenv init -)"
type rbenv
git clone https://github.com/rbenv/ruby-build.git ~/.rbenv/plugins/ruby-build
@oojewale
oojewale / openssl_commands.md
Created October 16, 2017 10:00 — forked from p3t3r67x0/openssl_commands.md
Some list of openssl commands for check and verify your keys

openssl

Install

Install the OpenSSL on Debian based systems

sudo apt-get install openssl
@oojewale
oojewale / g516-git-init.md
Last active September 4, 2016 13:20
Git Init

GIT INIT

Command: git init

This command creates an empty git repository.

If you're developing on your computer, running this command in the directory of the project you're working on would create an empty git repository there.

This implies that you can start using git within that directory i.e for that project.

@oojewale
oojewale / setting-up-git.md
Last active September 4, 2016 12:49
Setting up git on your machine. #Git516 #Gist0

Setting Up Git on Your Machine

Hi there, good to know that you're taking the preparatory step for #Git516.

If you're new to git. You can have some background information [here] (https://en.wikipedia.org/wiki/Git_(software))

To get started with git you need to install it on your machine. [This resource] (https://www.atlassian.com/git/tutorials/install-git/) would be helpful in getting this done.

If you have successfully installed git on your machine, you should also [create] (https://github.com/join?source=header-home) a free github account. Once done with this, you're set!