Skip to content

Instantly share code, notes, and snippets.

View anhldbk's full-sized avatar

Anh Le (Andy) anhldbk

View GitHub Profile

LiteLLM: Bypass Cert Verifications


If you use LiteLLM to proxy requests to in corporate environments, you may encounter the following error in your Python application:

httpcore.ConnectError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self-signed certificate in certificate chain (_ssl.c:1006)

Semantic Commit Messages

See how a minor change to your commit message style can make you a better programmer.

Format: <type>(<scope>): <subject>

<scope> is optional


anhldbk /
Last active November 7, 2019 02:44
ZaloPay Challenges on Java Programming

1. Overview

  • This is an entry test for our ZaloPay candidates
  • He/she must write solutions in English to answer following problems
  • Code must be written in Java

2. Problems

2.1 Thread safety

anhldbk / pom.xml
Created December 14, 2017 04:29
build fat jar maven
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns=""
anhldbk / flexbox.html
Created August 3, 2017 05:50
#bar {
background-color: #eee;
height: 600px;
width: 300px;
display: flex;
flex-direction: column;
anhldbk / transport.cpp
Last active August 3, 2017 04:03
Thrift transport
* Generic interface for a method of transporting data. A TTransport may be
* capable of either reading or writing, but not necessarily both.
class TTransport {
* Attempt to read up to the specified number of bytes into the string.
anhldbk / hook.js
Last active July 29, 2017 02:51
React Composed
import React, { PropTypes } from "react";
import { Scrollbars } from "react-custom-scrollbars";
import ResponsiveComponent from "../responsive";
export default class Card extends ResponsiveComponent {
render() {
const {
anhldbk / easy_templating.cpp
Last active July 24, 2017 05:11
C++ tricks
#define Data_T(type) template <typename T> type Data<T>
template<typename T>
class Data {
T _data;
Data(T data);
anhldbk / lock_benchmarks.cpp
Created July 5, 2017 08:04
Benchmark for various locking strategies
#include <sys/stat.h>
#include <atomic>
#include <stdio.h>
#include <stdint.h>
#include <assert.h>
#include <map>
#include <iostream>
#include <string.h>
#include <thread>
#include "lock/RwLock.h"
anhldbk / atomic_reference.cpp
Created July 5, 2017 03:53
Atomic references
#include <atomic>
#include <iostream>
#include <thread>
#include <stdint.h>
using namespace std;
void run_in_pool(std::function<void() > routine, uint8_t max_thread = 4) {
std::thread modifiers[max_thread];
uint8_t i;