Skip to content

Instantly share code, notes, and snippets.

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

Enno altima

🏠
Working from home
  • Germany
View GitHub Profile
@marco79cgn
marco79cgn / dm-toilet-paper.js
Last active February 17, 2025 10:57
iOS Widget, das die Anzahl an Klopapier Packungen in deiner nächsten dm Drogerie anzeigt (für die scriptable.app)
// dm Klopapier Widget
//
// Copyright (C) 2020 by marco79 <marco79cgn@gmail.com>
//
// Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted.
//
// THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
// INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER
// IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE
@snoerenberg
snoerenberg / Keywish Info
Last active July 1, 2020 12:07
Keywish BLE Nano for Geofency iOS
- attach Keywish BLE Nano to USB on PC
- check which serial port is present
- open serial monitor/console
Configure:
AT+SETTING=DEFAULT
-> factory reset (just to make sure)
AT+MINI_INTERVAL=20
@CodeFetch
CodeFetch / memory-upgrade-wr841-parts
Last active February 29, 2024 14:31
Kompatible Chips für Speicheraufrüstung des TP-Link WR841N
** WICHTIGER HINWEIS **
In den c't-Artikel hat sich ein Fehler eingeschlichen.
Der korrekte Befehl zum Schreiben der MAC-Adresse lautet:
printf "\xaa\xbb\xcc\xdd\xee\xff" | dd conv=notrunc ibs=1 obs=256 seek=508 count=6 of=out.bin
Ich bitte vielmals um Verzeihung.
RAM-Chips
Alliance Memory AS4C32M16D1A-5T
hynix HY5DU121622CTP-D43
hynix HY5DU121622DTP-D43
@psiborg
psiborg / readme.md
Last active September 27, 2024 08:46
Apple Magic Mouse and Windows 10 #windows
  1. Download the latest version of the "Boot Camp Support Software" (e.g., 5.1.5722) from https://support.apple.com/downloads/bootcamp
  2. Unzip the file (e.g., bootcamp5.1.5722.zip) to a new directory
  3. Run BootCamp\Drivers\Apple\AppleWirelessMouse64.exe
  4. Turn on Bluetooth and pair your Magic Mouse

Note: Apple wireless mouse devices have a built-in passcode of "0000" (four zeros).

@tonysneed
tonysneed / nano-docker.md
Last active October 25, 2024 10:20
Install Docker on Windows Nano Server

Install Docker on Windows Nano Server

Connect remotely to the nano server

  1. Open PowerShell as Administrator
  2. Test-WSMan xx.xxx.xxx.xx
  3. Enable-PSRemoting
  4. Enter public IP address of nano server: $ip = "xx.xxx.xxx.xx"
    Set-Item WSMan:\localhost\Client\TrustedHosts "$ip" -Force
  5. Enter-PSSession -ComputerName $ip -Credential "~\Administrator"
@jozefizso
jozefizso / WsusDbMaintanance.sql
Last active October 1, 2019 08:46
WSUS Database Maintenance
/******************************************************************************
This sample T-SQL script performs basic maintenance tasks on SUSDB
1. Identifies indexes that are fragmented and defragments them. For certain
tables, a fill-factor is set in order to improve insert performance.
Based on MSDN sample at http://msdn2.microsoft.com/en-us/library/ms188917.aspx
and tailored for SUSDB requirements
2. Updates potentially out-of-date table statistics.
******************************************************************************/
USE SUSDB;
@formix
formix / xd2md.cs
Last active August 7, 2024 08:02
Generates Markdown From VisualStudio XML documentation files
using System;
using System.Collections.Generic;
using System.IO;
using System.Text.RegularExpressions;
using System.Xml;
using System.Xml.Linq;
namespace Formix.Utils
{
class Program
@jojobyte
jojobyte / ContextCmder-Disable.reg
Last active June 28, 2025 00:14
Cmder Context (Right-Click) Menu for Windows 7, 8, 10 & 11
Windows Registry Editor Version 5.00
[-HKEY_CLASSES_ROOT\Directory\Background\shell\Cmder]
[-HKEY_CLASSES_ROOT\Directory\shell\Cmder]
@codito
codito / PhoneUnitTestsInTfs.md
Last active August 29, 2015 14:03
Running Windows Phone unit tests in team build (TFS)

Running Windows Phone unit tests in team build (TFS)

Prerequisites:

  • Build Agent needs to run a physical x64 Windows 8.1 based machine to be able to run Phone emulators
  • Setup build agent to run as an interactive process and enable it to run unit tests (obtain developer license). Check this MSDN page for more help on this.
  • Install Visual Studio 2013 + Update 2 (with support for Phone development) on Build Agent

Once you have these, you can use custom scripts in TFS 2013 build definition to run phone tests using vstest.console command line. See the script RunPhoneTests.bat

@jpetitcolas
jpetitcolas / gist:5967887
Created July 10, 2013 16:37
Encode/decode a base64 encoded string in PostGreSQL
-- Decoding
SELECT CONVERT_FROM(DECODE(field, 'BASE64'), 'UTF-8') FROM table;
-- Encoding
SELECT ENCODE(CONVERT_TO(field, 'UTF-8'), 'base64') FROM table;