Skip to content

Instantly share code, notes, and snippets.

@sandraros
sandraros / mass_reading_stxl.abap
Last active January 11, 2025 10:25
Bulk reading long texts in SAP R/3 & S/4 (tables STXH and STXL) with very good performance
* Improvement of code at https://blogs.sap.com/2014/02/25/alternative-to-readtext-function-module/comment-page-1/#comment-4121
* including Kenneth proposal at https://blogs.sap.com/2014/02/25/alternative-to-readtext-function-module/comment-page-1/#comment-452639
*
* Create your own class implementing LIF_PROCESSOR to process each text extracted.
* Two demo classes are provided: LCL_WRITER (active) and LCL_VERIFIER (if you want to test).
*
* Note: you won't need this code if you have the newest standard function modules READ_MULTIPLE_TEXTS and READ_TEXT_TABLE installed in
* your system (cf note 2261311 – Function module for reading multiple SAPscript texts -> https://launchpad.support.sap.com/#/notes/2261311/E )
REPORT zdemo.
@galvao
galvao / Hydrator.js
Created November 17, 2024 19:15
A simple Hydrator in JS (ES6)
"use strict";
class Hydrator
{
#immutable;
fromEntity;
toEntity;
constructor (fromEntity, toEntity, lazy = true, immutable = true)
@antoninbouchal
antoninbouchal / .gitlab-ci.yml
Last active January 11, 2025 10:23
Deploy APP through SSH to VPS with Gitlab CI
stages:
- build
- deploy
before_script:
- |
# docker variables for name and tag of new image
export DOCKER_TAG="${CI_COMMIT_SHA:0:8}"
export DOCKER_REPO="$CI_REGISTRY_IMAGE"
export DOCKER_IMAGE="${DOCKER_REPO}:${DOCKER_TAG}"
@K1ethoang
K1ethoang / Active StarUml version 6 for Window | MacOS | Linux.md
Last active January 11, 2025 10:21
Active StarUml version 6 for Window | MacOS | Linux
@djfarrelly
djfarrelly / index.ts
Created October 26, 2022 17:32
Inngest Cloudflare Workers Support (w/ [email protected])
import { createFunction } from "inngest"; // v0.6.1
import { serve } from "inngest/cloudflare";
/**
* Inngest serve requires "node_compat = true" to be set in your wrangler.toml
*
* Set INNGEST_SIGNING_KEY in your wrangler.toml environment variables.
* Get this key in your Inngest dashboard: https://app.inngest.com/secrets
*/
@Duartemartins
Duartemartins / generator.py
Created December 30, 2024 16:00
Substack API Python Script
import os
import json
import time
from datetime import datetime, timedelta
import requests
from substack import Api
from substack.post import Post
from substack.exceptions import SubstackAPIException
from selenium import webdriver
from selenium.webdriver.common.by import By
@steven2358
steven2358 / ffmpeg.md
Last active January 11, 2025 10:18
FFmpeg cheat sheet
@jgrodziski
jgrodziski / docker-aliases.sh
Last active January 11, 2025 10:16
Useful Docker Aliases
############################################################################
# #
# ------- Useful Docker Aliases -------- #
# #
# # Installation : #
# copy/paste these lines into your .bashrc or .zshrc file or just #
# type the following in your current shell to try it out: #
# wget -O - https://gist.githubusercontent.com/jgrodziski/9ed4a17709baad10dbcd4530b60dfcbb/raw/d84ef1741c59e7ab07fb055a70df1830584c6c18/docker-aliases.sh | bash
# #
# # Usage: #
@Spartan-196
Spartan-196 / FindGUID.md
Last active January 11, 2025 10:03
Find GUID of PC in windows

From Powershell

Get-WmiObject Win32_ComputerSystemProduct | Select UUID

From command prompt

wmic csproduct get uuid

This will out put the PC's UUID which is what SCCM reads as BIOS GUID.