Skip to content

Instantly share code, notes, and snippets.

View hprobotic's full-sized avatar
:dependabot:
On Break

John Pham hprobotic

:dependabot:
On Break
View GitHub Profile
commands:
00_install_epel:
cwd: /tmp
command: 'sudo yum install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm && sudo yum-config-manager --enable epel'
01_node_install:
cwd: /tmp
test: '[ ! -f /usr/bin/node ] && echo "node not installed"'
command: 'sudo yum install -y nodejs --enablerepo=epel'
02_npm_install:
cwd: /tmp
" plugins
call plug#begin('~/.config/nvim/plugged')
"colorschemes
Plug 'arcticicestudio/nord-vim'
"airline
Plug 'vim-airline/vim-airline'
Plug 'vim-airline/vim-airline-themes'
"navigation
"E-mails: A Mandarin Chinese Cheat Sheet
By /u/Norcan987 --- Knowledge is self-empowerment. Languages are freedom. Feel free to reproduce and pass around J<"
CONTENTS
1. Terms relating to e-mails.
2. Introduction Phrases
3. Emailing First
  1. Start backend_test: make run-docker-test that will build both backend_test and start stripe-mock container
  2. Run test in docker container: make docker-test => That will automaticly run test on all test files
  3. If we want test specific file, replace PIPENV_DOTENV_LOCATION=.test.env pipenv run pytest tests with specific file path
javascript: (() => {
const toggle = tip => ({ key }) =>
key === ' ' && document.querySelectorAll('[data-tooltip]').forEach(el => el.dataset.tooltip.includes(tip) && el.click());
document.body.onkeyup = toggle('Turn off microphone');
document.body.onkeydown = toggle('Turn on microphone');
})();
Bộ đội ăn gì ?
Đã bước chân vào bộ đội là toàn ăn cơm, 1 năm 365 ngày, ăn toàn cơm, ngày 3 bữa cơm, ở đơn vị cũng cơm, diễn tập cũng cơm, đi ngủ mơ ăn đủ thứ, trừ ăn cơm. Cơm bộ đội cơ bản cũng là mấy con chăn nuôi được thôi chứ không có gì đặc biệt. Cơm bộ đội sạch về mặt hóa học nhưng bẩn về mặt sinh học. Nhưng không sao cả, ăn cho luyện bụng.
Mình là thằng rất hay bị dí đi tăng cường bếp (bị phạt), vì tăng cường bếp rất là chán nên mình toàn trốn. Nhưng bù lại có một mặt tốt là mình có kinh nghiệm trong việc ăn sạch, uống sạch.
Trong quân đội, việc ăn uống được tổ chức tập trung theo cấp Tiểu đoàn (Cấp d có khoảng 500 cán bộ chiến sĩ), mà 1 người phục vụ 25 người, nên nồi nấu rất là to, mỗi nồi canh phải chứa được nửa tạ rau mà rau mỗi lần nhập vào nhà bếp toàn hàng tạ phát một. Rau rửa cũng rất là kĩ, rau nào cũng được rửa tận 1 lần, mỗi lượt rửa luôn 1 tạ. Nhớ lần đang đứng vớt 50 cân rau luộc từ trong nồi ra một cái rổ nhét cả con lợn vào vẫn vừa, thế đ' nào vớt được nguyên 1 đôi dép quân nhu cỡ 42 tr
def generate_fingerprint(self):
# the body of fingerprint is generated with the following sequences
# seperated by '_'
sequence = [
'account_number',
'account_routing_type',
'account_routing_value',
'bank_country_id',
'swift_code',
'account_routing_type2',
3eZRjpRdocktNuyYTuUqkiLp
@hprobotic
hprobotic / rename.bash
Created September 23, 2019 00:56
Font renamer
for filename in IBMPlexSans*; do echo mv \"$filename\" \"${filename//IBMPlexSans/Roboto}\"; done
try:
# Use both stripe_card or intent_payment_method is workable to charge
stripe_payment_method = payment_method.intent_payment_method or payment_method.stripe_card
idempotency_key = random_string_generator(20)
token = stripe.Token.create(
customer=current_user.stripe_customer,
stripe_account=connected_stripe_account_id
)
customer = stripe.Customer.create(
description='Shared Customer: {} {}'.format(current_user.first_name, current_user.last_name),