Skip to content

Instantly share code, notes, and snippets.

View soyfrien's full-sized avatar

Louis Waweru soyfrien

View GitHub Profile
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@soyfrien
soyfrien / Rebase Master to Main in git.txt
Created April 7, 2022 07:41
Update local clone when renaming branch (git cli).
git branch -m master main
git fetch origin
git branch -u origin/main main
git remote set-head origin -a

I just clicked through the on-prem AD DC Connect app the first time around and it failed to match my accounts; this one which is some kind of 365 entity with a huge schema and life of its own, so now I have two.

One is the principal account for a 365 space, and the other can only be synched one way. I tried editing my SID with the attribute editor in AD Users iand Groups , but that field is read only.

How should I resolve this issue? Strangely, MS knows they are the same entity as logging in with either one wilil land in the sasme

@soyfrien
soyfrien / BPA Fixes.md
Last active January 18, 2022 04:29
BEST PRACTICE ANALYZER FIXES

#ADDS

Protect OUs...one liner

Get-ADOrganizationalUnit -filter *| Set-ADOrganizationalUnit -ProtectedFromAccidentalDeletion $true

PDC not synchronizing

Try a closer server: https://gist.github.com/soyfrien/1ba5d6cd8a5336fa4f62866ea3ce3c34 w32tm /config /computer:dc0.example.com /manualpeerlist:129.6.15.26 /syncfromflags:manual /update The command completed successfully. w32tm.exe /config /update

@soyfrien
soyfrien / Public_Time_Servers.md
Created January 18, 2022 03:24 — forked from mutin-sa/Top_Public_Time_Servers.md
List of Top Public Time Servers

Google Public NTP [AS15169]:

time.google.com

time1.google.com

time2.google.com

time3.google.com

@soyfrien
soyfrien / fstrim.service
Created November 9, 2021 06:57
How Azure Implements systemd timers to trim SSDs and Kind of Scared to Make Azure Services Now
[Unit]
Description=Discard unused blocks on filesystems from /etc/fstab
Documentation=man:fstrim(8)
ConditionVirtualization=!container
[Service]
Type=oneshot
ExecStart=/sbin/fstrim --fstab --verbose --quiet
ProtectSystem=strict
@soyfrien
soyfrien / cardano.node.log
Created October 19, 2021 04:31
LM Missed a Mint
Oct 19 06:17:26 XXXX cardano-node[1372]: #033[34m[XXXX:cardano.node.LeadershipCheck:Info:142]#033[0m [2021-10-18 22:17:26.00 UTC] {"kind":"TraceStartLeadershipCheck","chainDensity":4.995604e-2,"slot":43029155,"delegMapSize":906194,"utxoSize":3690134,"credentials":"Cardano"}
Oct 19 06:17:26 XXXX cardano-node[1372]: #033[34m[XXXX:cardano.node.Forge:Info:142]#033[0m [2021-10-18 22:17:26.00 UTC] fromList [("val",Object (fromList [("kind",String "TraceNodeIsLeader"),("slot",Number 4.3029155e7)])),("credentials",String "Cardano")]
Oct 19 06:17:26 XXXX cardano-node[1372]: #033[34m[XXXX:cardano.node.Forge:Info:142]#033[0m [2021-10-18 22:17:26.00 UTC] fromList [("val",Object (fromList [("block",String "2cc4cfcf1fa97e23cd1da2c50ac029634b0ed764786df581b1df79b450477949"),("blockNo",Number 6388412.0),("blockPrev",String "7de0e1ce6838ad4a99eec985e2ced75523340b5be1c35f8a5ae09b6affa6d07a"),("kind",String "TraceForgedBlock"),("slot",Number 4.3029155e7)])),("credentials",String "Cardano")]
Oct 19 06:17:26 XXXX cardano-node[137
@soyfrien
soyfrien / 23andMechatAgentRestrictions.txt
Created June 18, 2021 05:00
23andMe Chat Agent Resscritions
BOT: Hey!
BOT: I'm Gene! Welcome to the 23andMe Virtual Assistant.
BOT: Ask me a question or tap a common one below.
USER: Hi
BOT: Hi there
BOT: I'm Gene! Welcome to the 23andMe Virtual Assistant.
BOT: Ask me a question or tap a common one below.

Keybase proof

I hereby claim:

  • I am soyfrien on github.
  • I am 1of1 (https://keybase.io/1of1) on keybase.
  • I have a public key ASBOx79Auq8N1Pl7BtWu-S7ZM0gcUSimDnKLJEd4jE-FSgo

To claim this, I am signing this object:

@soyfrien
soyfrien / DXDIAG.TXT
Created September 27, 2020 10:51
ProtonMail Bridge OpenGL Troubleshooting
------------------
System Information
------------------
Time of this report: 9/27/2020, 06:43:13
Machine name: WINYX
Machine Id: {C60AC40C-F605-42BD-9FC2-2B8AABC8247E}
Operating System: Windows 10 Pro Insider Preview 64-bit (10.0, Build 20211) (20211.rs_prerelease.200904-1619)
Language: English (Regional Setting: English)
System Manufacturer: Apple Inc.
System Model: MacBookPro16,1