Skip to content

Instantly share code, notes, and snippets.

View attilah's full-sized avatar
🏠
Working from home

Attila Hajdrik attilah

🏠
Working from home
View GitHub Profile
@attilah
attilah / X.Y.Z.Sources.csproj
Last active April 8, 2025 20:22
X.Y.Z.Sources nuget package
<Project>
<Import Project="Sdk.props" Sdk="Microsoft.NET.Sdk" />
<PropertyGroup>
<TargetFramework>netstandard1.0</TargetFramework>
<IsPackable>true</IsPackable>
<IncludeBuildOutput>false</IncludeBuildOutput>
<ContentTargetFolders>contentFiles</ContentTargetFolders>
<DisableImplicitFrameworkReferences>true</DisableImplicitFrameworkReferences>
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
</PropertyGroup>
</Project>
@attilah
attilah / 1. pattern_SecureDML.cls
Created November 24, 2020 02:30 — forked from cnaccio/1. pattern_SecureDML.cls
Salesforce Apex CRUD/Field Level Security Implementation for DML Operations (needed to pass security review) [Note that this code leverages the fflib commons library and concepts from the DMLManager library]
/**
* @author Charles Naccio
* @date 5/31/2019
*
* @group Security
* @group-content ../../ApexDocContent/Security.htm
*
* @description A unit of work DML interface for executing secure database write operations
* based on user level permissions.
*/
<html>
<head>
<meta charset="UTF-8" />
<title>Test Letter</title>
<style>
@page {
size: Letter;
margin: 0;
}
#!/bin/bash
# -----------------------------------------------------------------------------
# XCode
# -----------------------------------------------------------------------------
os=$(sw_vers -productVersion | awk -F. '{print $1 "." $2}')
if softwareupdate --history | grep --silent "Command Line Tools.*${os}"; then
echo 'Command-line tools already installed. Skipping'
else
echo 'Installing Command-line tools...'
@attilah
attilah / 3-page.html
Created May 5, 2025 15:56
3-page letter
<html>
<head>
<meta charset="UTF-8" />
<title>3 Page Test Letter</title>
<style>
@page {
size: Letter;
margin: 0;
}