This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rem execute as an Administrator | |
rem based on http://www.windowsdevcenter.com/pub/a/windows/2005/02/08/NTFS_Hacks.html | |
ram based on https://docs.microsoft.com/en-us/previous-versions/windows/it-pro/windows-2000-server/cc938961(v=technet.10) | |
rem http://archive.oreilly.com/cs/user/view/cs_msg/95219 (some installers need 8dot3 filenames) | |
rem disable 8dot3 filenames | |
ram Warning: Some applications such as incremental backup utilities rely on this update information and do not function correctly without it. | |
fsutil behavior set disable8dot3 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
REM you need to execute in adminstrator command prompt | |
REM based on | |
REM https://docs.microsoft.com/en-us/windows-hardware/manufacture/desktop/clean-up-the-winsxs-folder | |
Dism.exe /online /Cleanup-Image /StartComponentCleanup | |
REM All existing service packs and updates cannot be uninstalled after this command is completed. | |
REM This will not block the uninstallation of future service packs or updates | |
Dism.exe /online /Cleanup-Image /SPSuperseded | |
Dism.exe /online /Cleanup-Image /StartComponentCleanup /ResetBase |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dpkg --list | egrep -i --color 'linux-image|linux-headers|linux-modules' | |
dpkg --list | egrep -i --color 'linux-image|linux-headers|linux-modules' | grep "^rc" | cut -d " " -f 3 | xargs sudo dpkg --purge |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# you need to install xdotool: | |
# sudo apt install -y xdotool | |
# probably you can find this in every distro, but it only shows the debian based distros install | |
move=(-1 1 0) | |
wait=60 | |
while : |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# http://blog.christosoft.de/2012/05/mount-clonezilla-image-to-restore-single-file-browse/ | |
# ./extract-clonzilla /media/patrikx3/SEAGATE-450GB/restore/image.img '/media/patrikx3/SEAGATE-450GB/backup/2017-05-21-17-img/sda1.ext4-ptcl-img.gz.*' | |
# $1 = destination - full path eg /media/clonzilla/image.img | |
# $2 = source = '/media/backup/date/sda1.ext4-ptcl-img.gz.*' (import ' in the file, since * is needed!) | |
echo DESTINATION: $1 | |
echo SOURCE: $2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo ip addr show dev enp1s0f2 | sed -e's/^.*inet6 \([^ ]*\)\/.*$/\1/;t;d' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Config for GNU GRand Unified Bootloader (GRUB) (2) | |
# /boot/grub/grub.cfg | |
# or | |
# /boot/grub2/grub.cfg | |
# This grub.cfg file was created by Lance http://www.pendrivelinux.com | |
# Suggested Entries and the suggestor, if available, will also be noted. | |
# and then improved by Pysis. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Debian | |
# sudo apt install lm-sensors bc linux-cpupower | |
# Ubuntu | |
# probably is https://packages.ubuntu.com/search?suite=xenial§ion=all&arch=any&keywords=cpupower&searchon=contents | |
# but you might to have a specific kernel linux-tools-common | |
# sudo apt install lm-sensors bc linux-tools-common | |
# Then you go this: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
easyrsa build-ca nopass | |
easyrsa gen-dh | |
easyrsa build-server-full named nopass | |
easyrsa build-client-full named-android | |
easyrsa build-client-full named-laptop | |
easyrsa build-client-full named-workstation | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const fs = require('fs'); | |
const cwd = process.cwd(); | |
const hackPath = `${cwd}/node_modules/@ngtools/webpack/src` | |
const hackFileName = `${hackPath}/angular_compiler_plugin.js` | |
const hackFileNameHacked = `${hackFileName}.hacked` | |
const log = '@ngtool/webpack angular decorators remove' | |
const hack = () => { | |
if (!fs.existsSync(hackFileNameHacked)) { | |
const problemCode = fs.readFileSync(hackFileName).toString('utf-8').split('\n'); |
NewerOlder