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
@porimol
porimol / ghpwithnamecheap.md
Created August 26, 2024 19:09 — forked from plembo/ghpwithnamecheap.md
GitHub Pages with Namecheap custom domain

Using GitHub Pages with a custom domain: Namecheap Edition

As often happens, I found the official documentation and forum answers to be "close, but no cigar", and so had to experiment a little to get things working.

The main problem for me was a lack of concrete configuration examples. That's not entirely GitHub's fault: having migrated from Google Domains to Namecheap in the middle of this project, I was once again reminded of how many different ways there are to do things in the name service universe [1].

Although you'd think the simplest setup would be to merely configure for the subdomain case (https://www.example.com), in my experience using the apex domain (https://example.com) instead resulted in fewer complications.

Procedure

So here's my recipe for using a custom domain with GitHub pages where Namecheap is the DNS provider:

@porimol
porimol / deep_covax.py
Last active July 8, 2020 16:24
DeepCovax is a Deep Neural Network based COVID-19 vaccine formula discovering tool developed using PyTorch :P
import numpy as np
import pandas as pd
import seaborn as sns
import matplotlib.pyplot as plt
import torch.optim as optim
import torch.nn.functional as F
from torchvision import transforms, utils, datasets
import torch
@porimol
porimol / CouchDB_Python.md
Created May 5, 2019 11:54 — forked from marians/CouchDB_Python.md
The missing Python couchdb tutorial

This is an unofficial manual for the couchdb Python module I wish I had had.

Installation

pip install couchdb

Importing the module

@porimol
porimol / new_task.py
Created April 1, 2019 08:35 — forked from reedsa/new_task.py
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!"
import pandas as pd
df = pd.DataFrame({
'first_name': ['dhur', 'teri', 'eidaki', 'oops', 'ahh'],
'last_name': ['modhu', 'kodu', 'mula', 'kodu', 'modhu'],
'phone_number': ['+8801820050440', '+8801820050444', '+8801820050440', '+8801820050441', '+8801820050440']
})
import pandas as pd
data = pd.read_csv('test.csv')
# array3 = data['Column2'].replace(np.NaN,-1)
# length = array3.shape[0]
# print(length)
# arr3 = [];
# for i in range(length):
# if array3[i] != -1:
# # print(i)
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@porimol
porimol / tfidf.ipynb
Created October 21, 2017 12:36
Bengali word frequency(Term Frequency & Inverse Document Frequency) count
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@porimol
porimol / BengaliSentenceTokenization.ipynb
Created October 21, 2017 12:32
Benglali stop words remove and sentence tokenization
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@porimol
porimol / product_brand.csv
Last active July 29, 2017 14:57
Brand ID update in product csv
We can make this file beautiful and searchable if this error is corrected: It looks like row 3 should actually have 1 column, instead of 3 in line 2.
brand.csv
-----------------------------------
bid,brand,web_site
1,sqaure,sqaure.com.bd
2,beximco,beximco.com.bd
product.csv
-----------------------------------
pid,brand_id,brand,product_name,address
1,null,sqaure,napa extra,null