Skip to content

Instantly share code, notes, and snippets.

View JBlond's full-sized avatar

Mario JBlond

  • Germany
  • 03:09 (UTC +02:00)
View GitHub Profile
@JBlond
JBlond / svn_create_package.cmd
Created May 21, 2019 14:31
create svn package
@echo off
mkdir __PACKAGE__
cd __PACKAGE__
set SVN_PACKAGE_PATH=%cd%
mkdir bin
mkdir doc
mkdir modules
mkdir tools
cd ..
xcopy /E tools %SVN_PACKAGE_PATH%\tools\
@JBlond
JBlond / uniocode_random.sh
Created April 5, 2019 13:24
Unide code ramdom in bash
#!/bin/bash
while true; do
rand=$(shuf -i 2600-2700 -n 1)
echo -n -e ' \u'$rand
sleep 1
done
@JBlond
JBlond / .editorconfig
Created February 25, 2019 14:38
.editorconfig
root = true
[*]
charset = utf-8
end_of_line = lf
indent_size = 4
indent_style = tab
insert_final_newline = true
trim_trailing_whitespace = true
@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