tags | aliases | created_on |
---|---|---|
2022-02-17 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
# SQL setup: | |
# CREATE TABLE payment_sequence (id INT NOT NULL); | |
# INSERT INTO payment_sequence VALUES(0); | |
# CREATE TABLE payment_log(id INT PRIMARY KEY, client_id INT, loop_id INT, ts DATETIME(6)); | |
$db = new PDO("mysql:dbname=fundraising;host=database", 'fundraising', 'INSECURE PASSWORD'); | |
$db->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM php:8.1-alpine | |
RUN set -ex \ | |
&& apk --no-cache add postgresql-dev | |
RUN docker-php-ext-install pdo pdo_mysql pdo_pgsql |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import argparse | |
import csv | |
import os.path | |
import sys | |
import logging | |
import re | |
""" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<title></title> | |
<link href="style.css" rel="stylesheet"> | |
</head> | |
<body> |
Problem: You rebased a branch (featureA
) and now need to rebase a branch that depends on it (featureB
).
Solution: Use git rebase --onto
, which takes three parameters:
- The branch name of
featureA
- The commit ID of the last commit in
featureA
, in the "old" log/history offeatureB
- (optional) The branch name of
featureB
OlderNewer