Skip to content

Instantly share code, notes, and snippets.

View dw72's full-sized avatar

Dariusz Włodarczyk dw72

  • Krotoszyn
  • 07:40 (UTC +01:00)
View GitHub Profile
d-i localechooser/languagelist select pl
d-i mirror/suite string buster
# Automatic installation
d-i auto-install/enable boolean true
# "linux-server" is substituted by "linux-image-amd64"
# Possible options : "linux-image-amd64"(default) or "linux-image-rt-amd64"
d-i base-installer/kernel/override-image string linux-server
@dw72
dw72 / teams-chat-post.sh
Created September 22, 2020 08:37 — forked from chusiang/teams-chat-post-for-workflows.sh
Post a message to Microsoft Teams with bash script.
#!/bin/sh
# =============================================================================
# Author: Chu-Siang Lai / chusiang (at) drx.tw
# Filename: teams-chat-post.sh
# Modified: 2018-03-28 15:04
# Description: Post a message to Microsoft Teams.
# Reference:
#
# - https://gist.github.com/chusiang/895f6406fbf9285c58ad0a3ace13d025
#
@dw72
dw72 / PowerView-3.0-tricks.ps1
Created June 7, 2019 09:09 — forked from HarmJ0y/PowerView-3.0-tricks.ps1
PowerView-3.0 tips and tricks
# PowerView's last major overhaul is detailed here: http://www.harmj0y.net/blog/powershell/make-powerview-great-again/
# tricks for the 'old' PowerView are at https://gist.github.com/HarmJ0y/3328d954607d71362e3c
# the most up-to-date version of PowerView will always be in the dev branch of PowerSploit:
# https://github.com/PowerShellMafia/PowerSploit/blob/dev/Recon/PowerView.ps1
# New function naming schema:
# Verbs:
# Get : retrieve full raw data sets
# Find : ‘find’ specific data entries in a data set
@dw72
dw72 / profile-clenup.txt
Created March 22, 2018 09:06
Check and remove orphaned profiles from Windows registry
$regpath="HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList"
Get-ChildItem -path $regpath
Remove-Item "$($regpath)\S-1-5-21-2762740241-1875924150-698178130-3300" -Force
@dw72
dw72 / upscale-jpg.sh
Created March 22, 2018 09:04
Upscale jpg images in current directory
for i in *.jpg; do convert $i -set colorspace sRGB -colorspace RGB +sigmoidal-contrast 15,50% -filter Lanczos -define filter:blur=.9264075766146068 -distort resize 200% -sigmoidal-contrast 15,50% -colorspace sRGB ./out/$i; done
@dw72
dw72 / unzip-recursive.sh
Last active March 18, 2018 13:13
Extract all zip archives in subdirectories
find . -name '*.zip' -print0 | xargs -0 -I{} -n1 -P4 /bin/bash -c 'file="{}"; cd "${file%/*}"; unzip "${file##*/}"'
@dw72
dw72 / docker-clenup.sh
Created March 18, 2018 10:29
Cleaning up docker to reclaim disk space
#!/bin/bash
# remove exited containers:
docker ps --filter status=dead --filter status=exited -aq | xargs -r docker rm -v
# remove unused images:
docker images --no-trunc | grep '<none>' | awk '{ print $3 }' | xargs -r docker rmi
# remove unused volumes:
docker volume ls -qf dangling=true | xargs -r docker volume rm
youtube-dl --extract-audio --audio-format mp3 -f bestaudio --ignore-errors -o "%(title)s.%(ext)s" $@
@dw72
dw72 / boxstarter.s11
Last active April 20, 2017 15:23
S11 software install script
#As described here: http://boxstarter.org/Learn/WebLauncher
#
# or run:
# Install-BoxstarterPackage -ComputerName <Computer name> -PackageName <Path to raw gist> -Credentials <Credentials object>
Update-ExecutionPolicy Unrestricted
#Special windowsy stuff. see http://boxstarter.org/WinConfig
Set-WindowsExplorerOptions -EnableShowFileExtensions -EnableOpenFileExplorerToQuickAccess
Set-TaskbarOptions -Size Large -Lock -Dock Bottom

Keybase proof

I hereby claim:

  • I am dw72 on github.
  • I am dw72 (https://keybase.io/dw72) on keybase.
  • I have a public key ASDDnwcjkAMkQ39xgRxcSaYO4Cnl08y6HVOsJ7ekFCs4_Ao

To claim this, I am signing this object: