Skip to content

Instantly share code, notes, and snippets.

View muhammedbasilsk's full-sized avatar

muhammed basil muhammedbasilsk

View GitHub Profile
<?php
$data = (object)array(
"html" => "<foo bar=\"baz\"/> &amp;",
"arabic" => "العربية al-ʿarabiyyah, IPA: [æl ʕɑrɑˈbijjɐ], or عربي ʿarabī",
"hebrew" => "עִבְרִית, Ivrit",
"chinese" => "汉语/漢語 Hanyu; 华语/華語 Huáyǔ; 中文 Zhōngwén",
"korean" => "한국어/조선말",
"japanese" => "日本語 Nihongo",
"umlauts" => "äüöãáàß",
@muhammedbasilsk
muhammedbasilsk / LinkedList.py
Created September 24, 2017 16:17
Linked list implementation in python
class Node(object):
def __init__(self, data):
self.data = data;
self.nextNode = None;
class LinkedList(object):
@muhammedbasilsk
muhammedbasilsk / LICENSE.txt
Created July 26, 2018 05:44 — forked from jed/LICENSE.txt
generate random UUIDs
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2011 Jed Schmidt <http://jed.is>
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
@muhammedbasilsk
muhammedbasilsk / read_meta_data.py
Last active April 3, 2024 06:18 — forked from jineshpaloor/read_meta_data.py
python program to read a url and extract its meta tags
from BeautifulSoup import BeautifulSoup
import requests
def extract_meta(url):
r = requests.get(url)
print(dir(r))
soup = BeautifulSoup(r.text)
@muhammedbasilsk
muhammedbasilsk / setup_lambda_for_oracle_rds.sh
Created April 3, 2019 15:23 — forked from niranjv/setup_lambda_for_oracle_rds.sh
Setup virtualenv to access Oracle RDS from AWS Lambda
# This script allows Python functions in AWS Lambda to query an Oracle RDS instance
# It is meant to run on an EC2 instance running Amazon Linux
# The script has been tested successfully on a t2.micro EC2 instance (Root device type: ebs; Virtualization type: hvm)
# running Amazon Linux AMI 2017.03.0 (HVM), SSD Volume Type - ami-c58c1dd3
# and was developed with the help of AWS Support
# Steps:
# - install Oracle Instant Client
# - create virtualenv
@muhammedbasilsk
muhammedbasilsk / slack.sh
Created September 3, 2020 03:52 — forked from andkirby/slack.sh
Shell/Bash script for sending slack messages.
#!/usr/bin/env bash
####################################################################################
# Slack Bash console script for sending messages.
####################################################################################
# Installation
# $ curl -s https://gist.githubusercontent.com/andkirby/67a774513215d7ba06384186dd441d9e/raw --output /usr/bin/slack
# $ chmod +x /usr/bin/slack
####################################################################################
# USAGE
# Send message to slack channel/user
@muhammedbasilsk
muhammedbasilsk / install_mysql_client.sh
Created October 2, 2020 03:36 — forked from sshymko/install_mysql_client.sh
Install MySQL 5.7 client on Amazon Linux 2
#!/bin/sh
sudo yum install -y https://dev.mysql.com/get/mysql57-community-release-el7-11.noarch.rpm
sudo yum install -y mysql-community-client