Skip to content

Instantly share code, notes, and snippets.

@akesandgren
akesandgren / easybuild_test_report_19150_easybuilders_preasybuild-easyconfigs_20253010-UTC-10-30-06.md
Created June 10, 2025 10:30
EasyBuild test report for easybuilders/easybuild-easyconfigs PR(s) #19150

Test report for PR(s) easybuilders/easybuild-easyconfigs#19150

Test result

Build succeeded for 0 out of 3 (3 easyconfigs in total)

Overview of tested easyconfigs (in order)

@solaceten
solaceten / automatewoo order.billing_email
Last active June 10, 2025 10:27
Create the custom variable "order.billing_email" for use in automate woo
/*
// original snippet URL: https://gist.github.com/solaceten/7f03aed8c3b232742b1f6fb7777d8776
// Author solaceten. You are free to do what you want with this but not sell it or make any money from its use.
//
// Explainer:
// Below is a custom function to add a custom variable into automate woo.
// This example enables the use of a new variable: order.billing_email - as a variable in the workflow ACTION section, email TO field.
// As at Dec 2024, in automatewoo, this variable is working after adding the following code.
//
// While this code allows you to use the new variable {{ order.billing_email }} in your Workflow, note that in the main queue admin table,
@tiagocardosos
tiagocardosos / solving_gpg.md
Created December 13, 2017 09:41
Corrigindo erro GPG (chave pública não disponível) - Solving GPG error (public key not available)

Solving GPG error (public key not available)

Exemplo de mensagem de erro:

W: Erro GPG: http://ppa.launchpad.net precise Release: As assinaturas a seguir não puderam ser verificadas devido à chave pública não estar disponível: NO_PUBKEY A8AA1FAA3F055C03

A mensagem acima indica que o sistema não possui a chave GPG de autenticação (número A8AA1FAA3F055C03) para o repositório PPA.

A solução é simples. Basta adicionar o número da chave (indicado na mensagem de erro). Sinopse do comando: sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys NÚMERO_DA_CHAVE

@LocNguyenHuu
LocNguyenHuu / SQL2SparkSQL.py
Created July 22, 2022 12:39
Awesome script to help you to convert pure SQL to Spark SQL
# Ref: https://sqlandhadoop.com/online-sql-to-pyspark-converter/
from moz_sql_parser import parse
from moz_sql_parser import format
import json
query = """
SELECT product_id,
Count(star_rating) as total_rating,
Max(star_rating) AS best_rating,
Min(star_rating) AS worst_rating
@TheSantacloud
TheSantacloud / zig-0.13.0-builtins.csv
Created August 16, 2024 17:05
Zig built-ins cheatsheet 0.13.0
@addrSpaceCast(ptr: anytype) anytype Pointer conversion to another address space
@addWithOverflow(a: anytype, b: anytype) struct { @TypeOf(a, b), u1 } Addition with overflow detection
@alignCast(ptr: anytype) anytype Pointer alignment
@alignOf(comptime T: type) comptime_int Alignment for the current target in bytes
@as(comptime T: type, expression) T Safe type coercion
@atomicLoad(comptime T: type, ptr: *const T, comptime ordering: AtomicOrder) T Atomic dereference of pointer
@atomicRmw(comptime T: type, ptr: *T, comptime op: AtomicRmwOp, operand: T, comptime ordering: AtomicOrder) T Atomic modify and return previous value
@atomicStore(comptime T: type, ptr: *T, value: T, comptime ordering: AtomicOrder) void Atomic store of value at address
@bitCast(value: anytype) anytype Type cast at compile time
@bitOffsetOf(comptime T: type, comptime field_name: []const u8) comptime_int Bit offset of field within struct
@codesfromshad
codesfromshad / number-to-bengali-words.ts
Created March 17, 2024 07:30
A TypeScript function to convert numbers to Bengali words.
/**
* @license ISC License (ISC)
*
* Copyright (c) 2021 Maruf Hassan.
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR

Since version 2.23, git-blame has a feature to ignore certain commits. This feature is useful to ignore large formatting or apparently unimportant changes.

How to use

  1. Create a revisions list file. The file name is usually .git-blame-ignore-revs
  2. Set the file as a default ignore file for blame by git config blame.ignoreRevsFile .git-blame-ignore-revs

The file format is described in git-fsck's man: https://git-scm.com/docs/git-fsck#Documentation/git-fsck.txt-fsckskipList

@justhyped
justhyped / sec_cpt.go
Created April 21, 2024 12:59
This script shows how to solve Akamai's Crypto Challenge using the Hyper Solutions SDK
package main
import (
"errors"
"fmt"
"github.com/Hyper-Solutions/hyper-sdk-go/akamai"
customHttp "github.com/bogdanfinn/fhttp"
tls_client "github.com/bogdanfinn/tls-client"
"github.com/bogdanfinn/tls-client/profiles"
"io"
你长的怪像人殊不知是只人面犬
你的脸有碍观瞻
当初惊艳,完完全全,只为世面见得少。
嫉妒是一种不好的情感,我理解你嫉妒我有家人,可你这么说有点过分了
你自拍一张就是你的全家福
远看是美景,近看想报警
你在无中生有 你在暗度陈仓 你在凭空想象 你在凭空捏造 你在无言无语 你在无可救药 你是逝者安息 你是一路走好 你是傻子巴拉 你是永无止境 你是没钱买药 你是头脑有病 你是眼里有泡 你是嘴里刘能 你是污言秽语 你是咎由自取 你是殃及无辜 你是祸害众生 你是仓皇失措 你是暗度陈仓 你是无可救药
胖姑娘袭花衫,花都胖起来。
即使是做咸鱼,也要做最咸的那一条。
@paulirish
paulirish / what-forces-layout.md
Last active June 10, 2025 10:17
What forces layout/reflow. The comprehensive list.

What forces layout / reflow

All of the below properties or methods, when requested/called in JavaScript, will trigger the browser to synchronously calculate the style and layout*. This is also called reflow or layout thrashing, and is common performance bottleneck.

Generally, all APIs that synchronously provide layout metrics will trigger forced reflow / layout. Read on for additional cases and details.

Element APIs

Getting box metrics
  • elem.offsetLeft, elem.offsetTop, elem.offsetWidth, elem.offsetHeight, elem.offsetParent