Skip to content

Instantly share code, notes, and snippets.

@DolphinOfficial
DolphinOfficial / PostShutdownFullLog.txt
Created February 7, 2025 22:18
Text file created by Roblox
-- AH POST-SERVER LOGS --
-- ServerID: c39ad165-93c4-4643-9818-0ebfec4f8e3b
-- Server started: February 07, 2025 10:10 PM UTC | Server uptime: 456 seconds
------------------ LOADB LOGS ------------------
{
}
@Vlad78
Vlad78 / cn
Last active February 7, 2025 22:18
Tailwind setups
import { theme } from '@/lib/theme/theme'
import { type ClassValue, clsx } from 'clsx'
import { extendTailwindMerge } from 'tailwind-merge'
const twMerge = extendTailwindMerge({
override: {
classGroups: {
'font-size': [{ text: [...Object.keys(theme.fontSize).map(key => key)] }],
},
},

ℹ️ Enable iCloud end-to-end encryption:

  • Nobody knows that, but iCloud actually supports end-to-end encryption (see “Advanced Data Protection for iCloud”) but it's disabled by default. If you care about data privacy, you should turn it on.
    • System settingsApple IDiCloud → Set Advanced Data Protection to On.
    • System settingsApple IDiCloud → Disable Access iCloud Data on the Web.
  • It supports almost all the native Apple apps, with the notable exceptions of iCloud Mail, Contacts, and Calendars. See official data protection matrix for more info.

Quality of life improvements

Mouse:

ℹ️ Enable iCloud end-to-end encryption:

  • Nobody knows that, but iCloud actually supports end-to-end encryption (see “Advanced Data Protection for iCloud”) but it's disabled by default. If you care about data privacy, you should turn it on.
    • System settingsApple IDiCloud → Set Advanced Data Protection to On.
    • System settingsApple IDiCloud → Disable Access iCloud Data on the Web.
  • It supports almost all the native Apple apps, with the notable exceptions of iCloud Mail, Contacts, and Calendars. See official data protection matrix for more info.

Quality of life improvements

Mouse:

#!/usr/bin/env bash
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
cd $SCRIPT_DIR
cd FreeCAD
# rm -rf bld
mkdir -p bld && cd bld
cmake -G "Ninja" -DCMAKE_BUILD_TYPE=Debug -DCMAKE_EXPORT_COMPILE_COMMANDS=1 \
-DCMAKE_INSTALL_MODE=SYMLINK \
@helium-service
helium-service / detekt-report-1738966148.md
Last active February 7, 2025 22:13
Detekt Report for PR #2023 Timestamp 1738966148

detekt

Metrics

  • 2,290 number of properties

  • 1,292 number of functions

  • 493 number of classes

import torch
import torch.nn as nn
# Sample BiLSTM model
class BiLSTM(nn.Module):
def __init__(self, vocab_size, embedding_dim, hidden_dim, output_dim):
super(BiLSTM, self).__init__()
self.embedding = nn.Embedding(vocab_size, embedding_dim)
self.lstm = nn.LSTM(embedding_dim, hidden_dim, bidirectional=True)
self.fc = nn.Linear(hidden_dim * 2, output_dim) # *2 for bi-direction
public class Invoice
{
public string InvoiceNumber { get; set; }
public DateTime InvoiceDate { get; set; }
public DateTime DueDate { get; set; }
public decimal AmountDue { get; set; }
public Customer Customer { get; set; } = new Customer();
public List<LineItem> LineItems { get; set; } = new List<LineItem>();
}
@asan-emirsaleh
asan-emirsaleh / valgrind_anydesk.txt
Created February 7, 2025 22:11
valgrind session on anydesk with trying to launch file browser
$ valgrind anydesk
==4973== Memcheck, a memory error detector
==4973== Copyright (C) 2002-2024, and GNU GPL'd, by Julian Seward et al.
==4973== Using Valgrind-3.24.0 and LibVEX; rerun with -h for copyright info
==4973== Command: anydesk
==4973==
==4973== Conditional jump or move depends on uninitialised value(s)
==4973== at 0x58F9D7: ??? (in /usr/bin/anydesk)
==4973== by 0x607B78: ??? (in /usr/bin/anydesk)
@danvk
danvk / brute_force.py
Created February 7, 2025 22:11
Python brute force beats OR-Tools?
import itertools
def w(c0, c1, c2, c3, c4, c5):
a0,e0,i0,o0,u0 = c0
c1,h1,k1,m1,p1,t1 = c1
a2,e2,i2,o2,u2 = c2
l3,n3,r3,s3,y3 = c3
b4,d4,f4,g4,j4,v4,w4,x4,z4 = c4
c5,h5,k5,m5,p5,t5 = c5
n_0=1+d4