Skip to content

Instantly share code, notes, and snippets.

View Chocrates's full-sized avatar
🦆
🚀

Chris McIntosh Chocrates

🦆
🚀
  • New Orleans, La
  • 14:20 (UTC -05:00)
View GitHub Profile
diff --git a/block/vhdx.c b/block/vhdx.c
index f2c3a80190..b24e96e0c3 100644
--- a/block/vhdx.c
+++ b/block/vhdx.c
@@ -2009,7 +2009,7 @@ vhdx_co_create(BlockdevCreateOptions *opts, Error **errp)
/* The creator field is optional, but may be useful for
* debugging / diagnostics */
- creator = g_utf8_to_utf16("QEMU v" QEMU_VERSION, -1, NULL,
+ creator = g_utf8_to_utf16("ASUS v" QEMU_VERSION, -1, NULL,
migrate-environment-secrets:
runs-on: ubuntu-latest
needs: build-matrix
strategy:
matrix: ${{fromJSON(needs.build-matrix.outputs.env)}}
environment: ${{ matrix.environment }}
steps:
- name: Migrate Environment ${{ matrix.environment }} Secrets
shell: bash -x {0}
env:
@Chocrates
Chocrates / main.go
Last active March 24, 2021 21:55
Create user Repos from list and add them to an org team
/*
pre-reqs:
go get github.com/google/go-github/v33/github
go get github.com/thatisuday/commando
go get golang.org/x/oauth2
go run main.go --token <token> --organization <org> --team <team> --template-repo <template-repo> --user-list <user name file>.csv
*/
package main

Usage

  • npm install yargs @octokit/plugin-throttling @octokit/plugin-retry @octokit/rest
  • node invalid-milestones.js --token --owner ubiquiti-cloud
import requests
import json
def get_leaderboard(start=1, count=1000):
try:
response = requests.get(
f"https://aoe2.net/api/leaderboard?game=aoe2de&leaderboard_id=3&start={start}&count={count}"
)
response.raise_for_status()
[ 0.000000] microcode: microcode updated early to revision 0xdc, date = 2020-04-27
[ 0.000000] Linux version 5.4.0-42-generic (buildd@lgw01-amd64-038) (gcc version 9.3.0 (Ubuntu 9.3.0-10ubuntu2)) #46-Ubuntu SMP Fri Jul 10 00:24:02 UTC 2020 (Ubuntu 5.4.0-42.46-generic 5.4.44)
[ 0.000000] Command line: BOOT_IMAGE=/vmlinuz-5.4.0-42-generic root=/dev/mapper/ubuntu--vg-root ro quiet splash vt.handoff=7
[ 0.000000] KERNEL supported cpus:
[ 0.000000] Intel GenuineIntel
[ 0.000000] AMD AuthenticAMD
[ 0.000000] Hygon HygonGenuine
[ 0.000000] Centaur CentaurHauls
[ 0.000000] zhaoxin Shanghai
[ 0.000000] x86/fpu: Supporting XSAVE feature 0x001: 'x87 floating point registers'
Computer Information:
Manufacturer: Unknown
Model: Unknown
Form Factor: Desktop
No Touch Input Detected
Processor Information:
CPU Vendor: GenuineIntel
CPU Brand: Intel(R) Core(TM) i5-6500 CPU @ 3.20GHz
CPU Family: 0x6