This file contains hidden or 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
MIT License | |
Copyright (c) 2021 Daniel Ethridge | |
Permission is hereby granted, free of charge, to any person obtaining a copy | |
of this software and associated documentation files (the "Software"), to deal | |
in the Software without restriction, including without limitation the rights | |
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
copies of the Software, and to permit persons to whom the Software is | |
furnished to do so, subject to the following conditions: |
This file contains hidden or 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
function prompt { | |
Try { | |
Get-Variable -Name rsHash -Scope global -ErrorAction Stop | Out-Null | |
} | |
Catch { | |
#create the runspace and synchronized hashtable | |
$global:rsHash = [hashtable]::Synchronized(@{Computername = $env:computername; results = ""; date = (Get-Date)}) | |
$newRunspace = [runspacefactory]::CreateRunspace() | |
#set apartment state if available |
This file contains hidden or 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
#Put me in /lib/systemd/system/ | |
[Unit] | |
Description=My Miscellaneous Service | |
After=network.target | |
[Service] | |
Type=simple | |
User=nanodano | |
WorkingDirectory=/home/nanodano | |
ExecStart=/home/nanodano/my_daemon --option=123 |
This file contains hidden or 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
function ConvertTo-ChocoPackage { | |
<# | |
.SYNOPSIS | |
Convert a PowerShell module into a chocolatey package. | |
.DESCRIPTION | |
Convert a PowerShell module into a chocolatey package. | |
.EXAMPLE | |
Find-Module pester | ConvertTo-ChocoPackage | |
Find the module pester on a PS repository and convert the module to a chocolatey package. |
This file contains hidden or 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 | |
# ff: convenient wrapper for firejail and firefox | |
# | |
# You can mix and match most keywords. Anything that's not a keyword | |
# will become the name of the private profile. | |
# | |
# Examples: | |
# ff | |
# - use basic defaults (no private directory, system resolver) | |
# ff 1dns personal |
This file contains hidden or 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 python3 | |
# Copyright 2017 Google Inc. | |
# | |
# Licensed 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 | |
# | |
# http://www.apache.org/licenses/LICENSE-2.0 | |
# | |
# Unless required by applicable law or agreed to in writing, software |
This file contains hidden or 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
## | |
## Windows 10 cleanup script. | |
## Remove dodgy tracking settings, unneeded services, all apps, and optional features that come with Windows 10. Make it more like Windows 7. | |
## NOTE: this was tested on Creators Update (1703) and Fall Creators Update (1709). Some of this may not work as expected on newer versions. | |
## | |
## Instructions | |
## 1. Run this script (under Powershell as Administrator): | |
## powershell -ExectionPolicy Bypass .\cleanup-win10.ps1 | |
## 2. Let it run through, you may see a few errors, this is normal | |
## 3. Reboot |
This file contains hidden or 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
function Remove-FromPSModulePath{ | |
[CmdletBinding()] | |
Param( | |
[Parameter(Mandatory=$true)][String]$Path="C:\admin\modules" | |
) | |
if ($env:PSModulePath.split(";") -contains $Path){ | |
$NewValue = (($env:PSModulePath).Split(";") | ? { $_ -ne $Path }) -join ";" | |
[Environment]::SetEnvironmentVariable("PSModulePath", $NewValue, "Machine") | |
$env:PSModulePath = [System.Environment]::GetEnvironmentVariable("PSModulePath","Machine") | |
write-verbose "$Path removed. Restart the prompt for the changes to take effect." |
This file contains hidden or 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/sh | |
# | |
# appimage-vivaldi.sh (version 0.9) | |
# | |
# A script to convert a Vivaldi rpm or deb into AppImage format. | |
# Before you use this script, you may need to adjust the following | |
# variable, based on the name and location of AppImageTool on your | |
# system. | |
# |
NewerOlder