Skip to content

Instantly share code, notes, and snippets.

View quydx's full-sized avatar

quy quydx

View GitHub Profile
@channprj
channprj / pyppeteer.py
Created November 5, 2020 17:54
Read html file and make pdf with pyppeteer
import asyncio
from pyppeteer import launch
async def main():
browser = await launch(
options={
'headless': True,
'args': [
'--no-sandbox',
import seaborn as sns
import pandas as pd
import plotly.graph_objects as go
import chart_studio.plotly as py
import plotly
# Path to the raw data: https://gist.github.com/nicolasesnis/eb3b35545e97926ab53e0617c5e4b639
data = pd.read_csv('your/path/to/the/raw/data.csv')[
['user_id', 'time_install', 'event_name', 'time_event']]
@gerardorochin
gerardorochin / php_error_logstash.conf
Created June 2, 2014 15:39
php error logging into logstash + elasticsearch and trace errors on single line and root path hidden
input {
file {
type => "php-error"
path => "/var/www/error_log"
sincedb_path => "/opt/logstash/sincedb-access"
}
}
@plentz
plentz / nginx.conf
Last active October 22, 2025 16:10
Best nginx configuration for improved security(and performance)
# to generate your dhparam.pem file, run in the terminal
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048
@ydm
ydm / version.py
Last active March 13, 2018 12:49
Version field for Django models
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
import re
from django import forms
from django.core import exceptions
from django.db import models
from south.modelsinspector import add_introspection_rules