Skip to content

Instantly share code, notes, and snippets.

View porimol's full-sized avatar
🎯
Focusing

Porimol Chandro porimol

🎯
Focusing
  • Warsaw, Poland
View GitHub Profile
@norsec0de
norsec0de / install-pyenv-pipenv-aws-amazon-linux.md
Created April 1, 2022 06:46
Install Pyenv & Pipenv on AWS EC2 (Amazon Linux)

Install Pyenv & Pipenv on AWS EC2 (Amazon Linux)

Installation

Install Dependencies

Pyenv builds Python versions from source and therefore requires all the necessary build dependencies.

sudo yum install gcc zlib-devel bzip2 bzip2-devel patch readline-devel sqlite sqlite-devel openssl-devel tk-devel libffi-devel
@sub-mod
sub-mod / cuda_10_rhel_8.md
Last active June 17, 2021 21:05
Using TF 1.15 with CUDA 10.0 on RHEL 8.3
AWSTemplateFormatVersion: 2010-09-09
Resources:
OrdersTable:
Type: AWS::DynamoDB::Table
Properties:
TableName: AuthorsTable_prod
AttributeDefinitions:
- AttributeName: "AuthorName"
AttributeType: "S"
- AttributeName: "BookTitle"
@rokon12
rokon12 / Playground.java
Created August 8, 2020 18:08
AdvanceJava2020
package com.masterdevskills.playground;
import java.io.File;
import java.time.LocalDate;
import java.util.*;
import java.util.function.BinaryOperator;
import java.util.function.Function;
import java.util.function.Predicate;
import java.util.function.UnaryOperator;
import java.util.stream.IntStream;
@miguelgrinberg
miguelgrinberg / .vimrc
Last active July 1, 2024 17:11
My .vimrc configuration for working in Python with vim
" plugins
let need_to_install_plugins = 0
if empty(glob('~/.vim/autoload/plug.vim'))
silent !curl -fLo ~/.vim/autoload/plug.vim --create-dirs
\ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
let need_to_install_plugins = 1
endif
call plug#begin()
Plug 'tpope/vim-sensible'
@chukaofili
chukaofili / k8s-dashboard-admin-user.yaml
Last active May 18, 2024 06:30
k8s user for dashboard
apiVersion: v1
kind: ServiceAccount
metadata:
name: admin-user
namespace: kube-system
---
apiVersion: rbac.authorization.k8s.io/v1beta1
kind: ClusterRoleBinding
metadata:
name: admin-user
@jpickwell
jpickwell / install-redis.sh
Last active May 14, 2024 07:38 — forked from khelll/install-redis.sh
Installing Redis 5.0.0 on Amazon Linux
#!/bin/bash
###############################################
# To use:
# chmod +x install-redis.sh
# ./install-redis.sh
###############################################
version=5.0.0
bid brand web_site
1 sqaure sqaure.com.bd
2 beximco beximco.com.bd
2 beximco beximco.com.bd
2 beximco beximco.com.bd
[
{
"upazila": "Amtali Upazila",
"district": "Barguna",
"division": "Barisal"
},
{
"upazila": "Bamna Upazila",
"district": "Barguna",
"division": "Barisal"
@nikhilkumarsingh
nikhilkumarsingh / google_tts.py
Created April 30, 2017 12:56
Googl text to speech API demo
import requests
API_ENDPOINT = "https://translate.google.com/translate_tts"
headers = {'User-Agent': "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:53.0) Gecko/20100101 Firefox/53.0"}
text = "good morning"
params = {