Skip to content

Instantly share code, notes, and snippets.

View davwheat's full-sized avatar
💕
Raging Pepsi Max addict

David Wheatley davwheat

💕
Raging Pepsi Max addict
View GitHub Profile
@anythingcodes
anythingcodes / google-form-to-github-issue.md
Last active March 22, 2024 18:53
Generate GitHub Issue from Google Form submission

Generate GitHub Enterprise Issue from Google Form submission

To generate a nicely-formatted GitHub issue (even for GitHub Enterprise accounts) from a Google Form submission, you can use Google's script editor along with a GitHub personal access token that connects to the API. This is particularly useful when you need to triage bugs or feature requests directly to developers, but those who are submitting issues do not have access to your GitHub Enterprise instance.

Once this is up and running, on the development end, you can do some cool things within the body of each issue, like automatically closing GitHub issues via your commit messages and CCing your dev group or individual team members for each issue.

Here's how to set it up.

Step 1: Create Your Form

  • Go to Google Drive and create a form with fields
  • Click the Responses tab
@fabiomaggio
fabiomaggio / git-filter-branch-move-files.md
Last active October 20, 2022 08:48
Use git filter-branch to move all projects files to a subdir and rewrite all commits
  1. Clone project

  2. Checkout all branches that contain the files that should be moved

  3. Delete the remote

  4. Run the filter-branch command:

    git filter-branch --tree-filter 'mkdir -p /path/to/tmp; mv * /path/to/tmp; mkdir subdir; mv /path/to/tmp/* subdir/' --tag-name-filter cat --prune-empty -- --all
    • All files are first copied to a temporary dir and move from there to the new destination
  • Existing tags are updated
@krasCGQ
krasCGQ / tissotpls.txt
Created January 30, 2018 14:17
This is why you should #NeverGoXiaomi as a development device.
From 24ea5efc315593a2c4fadd39df307b78def02faa Mon Sep 17 00:00:00 2001
From: hehao <hehao@xiaomi.com>
Date: Mon, 29 Jan 2018 19:07:17 +0800
Subject: [PATCH] Kernel: Xiaomi kernel changes for Mi A1.
The Patch based on QualComm release version: LA.UM.5.3-06310-89xx.0
The kernel config file used is tissot-perf_defconfig
Change-Id: I43370f3c149069879808f6865ca405f545420ca1
Signed-off-by: hehao <hehao@xiaomi.com>
@davwheat
davwheat / frequencies.md
Created September 21, 2019 11:34
BF-888S Default Radio Frequencies
Location Name Frequency Duplex Offset Tone rToneFreq cToneFreq DtcsCode DtcsPolarity Mode TStep Skip Comment URCALL RPT1CALL RPT2CALL DVCODE
1 462.125000 0.000000 TSQL 88.5 69.3 023 NN FM 5.00 S
2 462.225000 0.000000 88.5 88.5 023 NN FM 5.00 S
3 462.325000 0.000000 88.5 88.5 023 NN FM 5.00 S
4 462.425000 0.000000 TSQL 88.5 103.5 023 NN
@davwheat
davwheat / Mofono is a scam.md
Last active May 5, 2021 00:39
Mofono is a scam

Have you been using an app called Mofono?

The app (Mofono) has been noted by giffgaff and the use of it is against section 3 of the T's & C's which you confirmed you'd read when you joined.

... you will not use or permit anyone else to use your SIM Card:

a. For any form of automated usage of mobile services;

@davwheat
davwheat / review.md
Last active November 21, 2021 09:56
REVIEW: Mechrevo Code 01/Schenker VIA 15 Pro/PCSpecialist Fusion IV 15

TongFang 15" AMD Ryzen laptop (PF5NU1G)

Today marks the day that my first ever brand new laptop arrived!

I ordered the Fusion IV 15 from PCSpecialist. This is also known as the MECHREVO CODE 01, Schenker VIA 15 PRO, TongFang PF5NU1G (OEM model name), as well as several other names from other "manufacturers" (rebranders) such as Eluktronics.

Contents

#!/usr/bin/env python3
# Download your data dump and place this file in the "messages" folder of your data dump.
# Run it using python
from datetime import datetime, timedelta, timezone
import dateutil.parser
import matplotlib.pyplot as plt
import matplotlib.ticker as ticker
import matplotlib.dates as mdates
import csv