Skip to content

Instantly share code, notes, and snippets.

View Tvde1's full-sized avatar
:bowtie:

Tim van den Essen Tvde1

:bowtie:
  • Wolfpack IT
  • Eindhoven
  • X @Tvde1
View GitHub Profile
#!/bin/bash
if [ ! -f /root/slic_table ]; then
cat /sys/firmware/acpi/tables/SLIC > /root/slic_table
echo "Wrote SLIC to /root/slic_table"
fi
UUID=$(dmidecode | grep -A8 'System Information' | grep -i UUID | awk '{print $2}')
SERIAL=$(dmidecode | grep -A8 'System Information' | grep -i 'serial number' | awk '{print$3}')
PRODUCT=$(dmidecode | grep -A8 'System Information' | grep -i "Product Name" | sed "s/^.*Product Name: //")
@ZacharyPatten
ZacharyPatten / InequalitySyntax.cs
Last active March 9, 2020 12:19
Inequality syntax in C#
using System;
using Towel;
using static Towel.Syntax;
namespace ConsoleApp1
{
class Program
{
static void Main()
{
@StevenACoffman
StevenACoffman / Homoglyphs.md
Last active May 8, 2026 18:21
Unicode Look-alikes

Unicode Character Look-Alikes

Original Letter Look-Alike(s)
a а ạ ą ä à á ą
c с ƈ ċ
d ԁ ɗ
e е ẹ ė é è
g ġ
h һ
@ZacharyPatten
ZacharyPatten / ForSyntax.cs
Last active March 9, 2020 12:25
An example of custom For syntax... Pretty dumb... Just messing around...
using System;
namespace Example
{
class Program
{
static void Main()
{
For (10..5)
(
@danharper
danharper / CancellationTokenSource.js
Last active February 7, 2026 17:47
JavaScript "CancellationToken" for cancelling Async/Promise functions
const CANCEL = Symbol();
class CancellationToken {
constructor() {
this.cancelled = false;
}
throwIfCancelled() {
if (this.isCancelled()) {