Skip to content

Instantly share code, notes, and snippets.

View JBlond's full-sized avatar

Mario JBlond

  • Germany
  • 13:17 (UTC +02:00)
View GitHub Profile
@JBlond
JBlond / test.sp1
Created January 29, 2019 11:46
Remove windows app via PowerShell
$unerwuenschteApps = "xbox", "BingNews", "Dolby", "BingWeather", "Zune", "WindowsCamera", "WindowsMaps","Microsoft.People","PhotoShopExpress","Microsoft.OneConnect","Solitaire","Print3D","SoundRecorder","Duolingo","freshpaint"
$remove = $true
foreach($a in $unerwuenschteApps)
{
Write-Host "Installierte Apps mit $a im Titel:" -ForegroundColor Yellow
$menge = Get-AppxPackage | where name -like "*$a*" # Get-AppxProvisionedPackage -Online / DisplayName
$menge | ft
if ($menge.length -eq 0) { Write-Host "Keine :-)" -ForegroundColor green }
else { if ($remove) {
@JBlond
JBlond / win10.vbs
Created November 27, 2018 07:58
win 10 script
' Apps: Vorgeschlagene, OEM und PreInstallierte Apps deaktivieren
' ====================================================================
registryDWORD "Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager", "ContentDeliveryAllowed", 0
registryDWORD "Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager", "OemPreInstalledAppsEnabled", 0
registryDWORD "Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager", "PreInstalledAppsEnabled", 0
registryDWORD "Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager", "PreInstalledAppsEverEnabled", 0
registryDWORD "Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager", "SilentInstalledAppsEnabled", 0
registryDWORD "Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager", "SoftLandingEnabled", 0
registryDWORD "Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager", "SubscribedContentEnabled", 0
registryDeleteValue "Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager\Subscriptions", ""
@JBlond
JBlond / tmux.md
Last active January 7, 2025 11:59
tmux cheat seet

tmux cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@JBlond
JBlond / phpcs.xml
Created July 11, 2018 14:57
php code sniffer config
<?xml version="1.0" encoding="UTF-8"?>
<!--suppress XmlUnboundNsPrefix, XmlUnboundNsPrefix -->
<ruleset name="overview">
<description>overview</description>
<rule ref="Generic.Classes.DuplicateClassName"/>
<rule ref="Generic.CodeAnalysis.EmptyStatement"/>
<rule ref="Generic.CodeAnalysis.ForLoopShouldBeWhileLoop"/>
<rule ref="Generic.CodeAnalysis.ForLoopWithTestFunctionCall"/>
<rule ref="Generic.CodeAnalysis.UnconditionalIfStatement"/>
<rule ref="Generic.CodeAnalysis.UselessOverridingMethod"/>
@JBlond
JBlond / .htaccess
Created April 3, 2018 13:18
htaccess if host matches
<If "%{HTTP_HOST} == 'dev.example.com'">
AuthType basic
AuthName "private"
AuthUserFile /home/example/.htpasswd
Require valid-user
</If>
@JBlond
JBlond / setup-utf8.sh
Last active March 29, 2018 10:03
linux console UTF-8
sudo dpkg-reconfigure locales
sudo apt install console-setup
sudo dpkg-reconfigure console-setup
export LANGUAGE=de_DE.utf8
export LANG=de_DE.utf8
export LC_ALL=de_DE.utf8
@JBlond
JBlond / whereis.bat
Created March 16, 2018 08:34
whereis windows
:: Whereis program by Raymond Chen
:: URL: http://blogs.msdn.com/oldnewthing/archive/2005/01/20/357225.aspx
@for %%e in (%PATHEXT%) do @for %%i in (%1%%e) do @if NOT "%%~$PATH:i"=="" echo %%~$PATH:i
@JBlond
JBlond / branding_22.diff
Created March 9, 2018 13:15
branding apache
--- include/ap_branding.h 2014-08-22 12:13:35.648000000 -0700
+++ include/ap_branding.h 2014-08-28 16:21:34.234800000 -0700
@@ -0,0 +1,36 @@
+/* Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
@JBlond
JBlond / aprutilx4h-win.patch
Created February 9, 2018 08:31
aprutilx4h-win.patch
Index: Apache.dsw
===================================================================
--- Apache.dsw (revision 1816075)
+++ Apache.dsw (working copy)
@@ -494,6 +494,9 @@
Begin Project Dependency
Project_Dep_Name apriconv
End Project Dependency
+ Begin Project Dependency
+ Project_Dep_Name xml
#!/bin/bash
# find-out-what-is-using-your-swap.sh
# -- Get current swap usage for all running processes
# --
# -- rev.0.3, 2012-09-03, Jan Smid - alignment and intendation, sorting
# -- rev.0.2, 2012-08-09, Mikko Rantalainen - pipe the output to "sort -nk3" to get sorted output
# -- rev.0.1, 2011-05-27, Erik Ljungstrom - initial version