Skip to content

Instantly share code, notes, and snippets.


Block or report user

Report or block umihico

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
umihico /
Last active Jan 3, 2020
create selenium layer including binary WORKS python 3.7. NOT 3.8
import json
from selenium import webdriver
def lambda_handler(event, context):
return {
'statusCode': 200,
umihico /
Created Jan 2, 2020
get all slack ids in your slack workspace

python xoxp-000000000000-abcdef

output will be like
{'CB0000000': 'general',
 'CB0000000': 'random',
 'UB0000000': 'umihico',
umihico /
Created Dec 12, 2019
Publish any AWS quicksight dashboards to public with lambda and API gateway
import json
import boto3
API gateway URL example. You have to allow your quicksight domin setting to be accessed from including subdomains.
def lambda_handler(event, context):
umihico / result.json
Created Oct 6, 2019
Scrap all city names from wikipedia
View result.json
{"A Coru\u00f1a": "Spain", "Aachen": "Germany", "Aalborg": "Denmark", "Aarhus": "Denmark", "Aba, Nigeria": "Nigeria", "Abadan, Iran": "Iran", "Abaetetuba": "Brazil", "Abakan": "Russia", "Abbotabad": "Pakistan", "Abbotsford, British Columbia": "Canada", "Abengourou": "Ivory Coast", "Abeokuta": "Nigeria", "Aberdeen": "United Kingdom", "Abha": "Saudi Arabia", "Abidjan": "Ivory Coast", "Abiko, Chiba": "Japan", "Abilene, Texas": "United States", "Abohar": "India", "Abu Al-Khaseeb": "Iraq", "Abu Dhabi": "United Arab Emirates", "Abu Ghraib": "Iraq", "Abuja": "Nigeria", "A\u00e7ail\u00e2ndia": "Brazil", "Acapulco": "Mexico", "Acarigua": "Venezuela", "Accra": "Ghana", "Achalpur": "India", "Acheng District": "China", "Achinsk": "Russia", "Adama": "Ethiopia", "Adana": "Turkey", "Adapazar\u0131": "Turkey", "Addis Ababa": "Ethiopia", "Adelaide": "Australia", "Aden": "Yemen", "Adhamiyah": "Iraq", "Adilabad": "India", "Adityapur": "India", "Ad\u0131yaman": "Turkey", "Ado-Ekiti": "Nigeria", "Adoni": "India", "Afyon": "Turkey
umihico /
Created Sep 3, 2019
AWS Lambda function to return image
import requests
import base64
def lambda_handler(event, content):
response = requests.get("")
return {
"isBase64Encoded": True,
"statusCode": 200,
"headers": { "content-type": "image/jpg"},
"body": base64.b64encode(response.content).decode("utf-8")
umihico /
Last active Sep 3, 2019
Download Python Pillow package for AWS lambda
  1. run docker-compose up.
  2. confirm you get PIL and Pillow-6.1.0.dist-info directory next .yml file.
  3. upload them as AWS Lambda Layer
umihico / api.php
Last active Jul 12, 2019
Get CSV as array from input form with ajax in Laravel 5.8.14
View api.php
use Illuminate\Http\Request;
| API Routes
| Here is where you can register API routes for your application. These
You can’t perform that action at this time.