Skip to content

Instantly share code, notes, and snippets.

View Abdoulrasheed's full-sized avatar
🎯
Focusing

Abdulrasheed Ibrahim Abdoulrasheed

🎯
Focusing
View GitHub Profile
@Abdoulrasheed
Abdoulrasheed / weasyprint.txt
Last active September 4, 2023 12:20
Install WeasyPrint on Amazon Linux and ElasticBeanstalk
ELASTICBEANSTALK
create weasyprint.config inside .ebextensions and add the following inside
packages:
yum:
cairo: []
cairo-devel: []
giflib-devel: []
libjpeg-turbo-devel: []
@Abdoulrasheed
Abdoulrasheed / install-rabbitmq-on-amazon-linux.sh
Last active February 22, 2020 16:30 — forked from ihor/install-rabbitmq-on-amazon-linux.sh
Install RabbitMQ on Amazon Linux
# Modify /etc/yum.repos.d/epel.repo. Under the section marked [epel], change enabled=0 to enabled=1.
sudo yum install erlang --enablerepo=epel
wget http://www.rabbitmq.com/releases/rabbitmq-server/v3.1.1/rabbitmq-server-3.1.1-1.noarch.rpm
sudo rpm -Uvh rabbitmq-server-3.1.1-1.noarch.rpm
# Enable managament plugin
sudo rabbitmq-plugins enable rabbitmq_management
@Abdoulrasheed
Abdoulrasheed / graphql_example.py
Created September 1, 2019 16:40 — forked from gbaman/graphql_example.py
An example on using the Github GraphQL API with Python 3
# An example to get the remaining rate limit using the Github GraphQL API.
import requests
headers = {"Authorization": "Bearer YOUR API KEY"}
def run_query(query): # A simple function to use requests.post to make the API call. Note the json= section.
request = requests.post('https://api.github.com/graphql', json={'query': query}, headers=headers)
if request.status_code == 200: