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
[
{
"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 = {
@luckydev
luckydev / gist:b2a6ebe793aeacf50ff15331fb3b519d
Last active April 3, 2025 18:13
Increate max no of open files limit in Ubuntu 16.04/18.04 for Nginx
# maximum capability of system
user@ubuntu:~$ cat /proc/sys/fs/file-max
708444
# available limit
user@ubuntu:~$ ulimit -n
1024
# To increase the available limit to say 200000
user@ubuntu:~$ sudo vim /etc/sysctl.conf
@davisford
davisford / Setup MongoDB on localhost as Replica Set
Last active February 15, 2025 11:17
Setup MongoDB replica set on local host with only a single primary
Add the `replication` section to the mongod.conf file:
```
$cat /usr/local/etc/mongod.conf
systemLog:
destination: file
path: /usr/local/var/log/mongodb/mongo.log
logAppend: true
storage:
engine: mmapv1
@SemenMartynov
SemenMartynov / Apache Kafka on Ubuntu.txt
Last active September 5, 2018 07:37
kafka installation on ubuntu 16.04
Install and configure Apache Kafka on Ubuntu 16.04
1. Install Java (JDK8)::
Add the repository
$ sudo add-apt-repository -y ppa:webupd8team/java
Update the metadata of the new repository and install JDK
# Install R + RStudio on Ubuntu 16.04
sudo apt-key adv –keyserver keyserver.ubuntu.com –recv-keys E084DAB9
# Ubuntu 12.04: precise
# Ubuntu 14.04: trusty
# Ubuntu 16.04: xenial
# Basic format of next line deb https://<my.favorite.cran.mirror>/bin/linux/ubuntu <enter your ubuntu version>/
sudo add-apt-repository 'deb https://ftp.ussg.iu.edu/CRAN/bin/linux/ubuntu xenial/'
sudo apt-get update
@mau21mau
mau21mau / README.md
Last active March 23, 2025 23:26
Configure Celery + Supervisor With Django
@bsara
bsara / git-ssh-auth-win-setup.md
Last active April 19, 2025 05:01
Setup SSH Authentication for Git Bash on Windows

Setup SSH Authentication for Git Bash on Windows

Prepararation

  1. Create a folder at the root of your user home folder (Example: C:/Users/uname/) called .ssh.
  2. Create the following files if they do not already exist (paths begin from the root of your user home folder):
  • .ssh/config
@reedsa
reedsa / new_task.py
Last active September 22, 2023 11:07
RabbitMQ Retry using Dead Letter Exchange in Python/Pika
#!/usr/bin/env python
# http://www.rabbitmq.com/tutorials/tutorial-two-python.html
import pika
import sys
connection = pika.BlockingConnection(pika.ConnectionParameters(
host='localhost'))
channel = connection.channel()
message = ' '.join(sys.argv[1:]) or "Hello World!"