Skip to content

Instantly share code, notes, and snippets.

@neoasis-werx
neoasis-werx / svg2icns.sh
Created October 5, 2025 01:22 — forked from mark-ingenosity/svg2icns.sh
[BASH: Image Conversion: SVG to Mac ICNS] #convert #image #file_type #bash #script #icon
#!/bin/bash
# iterate over the svg files fed into on the command line
for svgfile in "$@"
do
name=${f%.*}
ext=${f##*.}
echo "Processing $name ..."
set -e
@neoasis-werx
neoasis-werx / TreeFiltering.java
Created March 6, 2025 20:22 — forked from steos/TreeFiltering.java
Java/Swing/JTree quick'n'dirty filter example
import java.awt.Color;
import java.awt.Component;
import java.awt.Graphics;
import java.awt.Rectangle;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.util.Collections;
import java.util.Enumeration;
import java.util.List;
@neoasis-werx
neoasis-werx / VersionSqlProj.md
Created November 1, 2024 02:12
Add versioning to SQL Server Projects

Add versioning to SQL Server Projects

Summary

This is a basic set of instructions on how to add version number support for SQL Server projects and databases. This will will add the version number as an extended property on the deployed database.

How to access version number

@neoasis-werx
neoasis-werx / delete_git_submodule.md
Created July 5, 2024 21:43 — forked from myusuf3/delete_git_submodule.md
How effectively delete a git submodule.

To remove a submodule you need to:

  • Delete the relevant section from the .gitmodules file.
  • Stage the .gitmodules changes git add .gitmodules
  • Delete the relevant section from .git/config.
  • Run git rm --cached path_to_submodule (no trailing slash).
  • Run rm -rf .git/modules/path_to_submodule (no trailing slash).
  • Commit git commit -m "Removed submodule "
  • Delete the now untracked submodule files rm -rf path_to_submodule
namespace YourNamespace
{
/// <summary>
/// Uses the Name value of the <see cref="ColumnAttribute"/> specified to determine
/// the association between the name of the column in the query results and the member to
/// which it will be extracted. If no column mapping is present all members are mapped as
/// usual.
/// </summary>
/// <typeparam name="T">The type of the object that this association between the mapper applies to.</typeparam>
public class ColumnAttributeTypeMapper<T> : FallbackTypeMapper
/*
===================================================
Generate MERGE Statements for All Tables
===================================================
Copyright: Eitan Blumin (C) 2012
Email: [email protected]
Source: www.madeiradata.com
Disclaimer:
The author is not responsible for any damage this
@neoasis-werx
neoasis-werx / SilentWallpaper.cs
Created June 23, 2023 09:47 — forked from Drarig29/SilentWallpaper.cs
Temporarily set a desktop wallpaper without polluting the Windows settings history
using System;
using System.Runtime.InteropServices;
using Microsoft.Win32;
public enum WallpaperStyle
{
Fill,
Fit,
Stretch,
Tile,