Skip to content

Instantly share code, notes, and snippets.

View NotAdam's full-sized avatar
👌
nice

Adam NotAdam

👌
nice
  • Australia
View GitHub Profile
@metaskills
metaskills / gist:893599
Created March 29, 2011 23:54
A Copy Of sp_MSforeachtable Stored Procedure For Azure, Uses sp_MSforeach_worker
CREATE proc [dbo].[sp_MSforeachtable]
@command1 nvarchar(2000), @replacechar nchar(1) = N'?', @command2 nvarchar(2000) = null,
@command3 nvarchar(2000) = null, @whereand nvarchar(2000) = null,
@precommand nvarchar(2000) = null, @postcommand nvarchar(2000) = null
AS
declare @mscat nvarchar(12)
select @mscat = ltrim(str(convert(int, 0x0002)))
if (@precommand is not null)
exec(@precommand)
@nstarke
nstarke / release-android-debuggable.md
Last active June 26, 2024 15:20
How to make a Release Android App debuggable

How to make a Release Android App debuggable

Let's say you want to access the application shared preferences in /data/data/com.mypackage.
You could try to run adb shell and then run-as com.mypackage ( or adb shell run-as com.mypackge ls /data/data/com.mypackage/shared_prefs), but on a production release app downloaded from an app store you're most likely to see:

run-as: Package 'com.mypackage' is not debuggable
@mellinoe
mellinoe / VeldridComponent.cs
Last active December 2, 2022 20:34
Example code for embedding a Veldrid Swapchain into WPF
using System;
using System.Reflection;
using System.Runtime.InteropServices;
using System.Windows;
using System.Windows.Media;
namespace Veldrid.WPF
{
// This extends from the "Win32HwndControl" from the SharpDX example code.
public class VeldridComponent : Win32HwndControl
folder key (xx/XXXX) suffix type
00 wl(l|m|s) wall
00 wlc wall unknown
01 rf(l|m|s) roof
01 rfc roof unknown
02 dor door
03 wid window
04 fnc fence
05 osg ornament signboard
06 orf ornament, roof