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 bash | |
# | |
# Delete dotnet build dirs and files (e.g. 'bin', 'obj', etc...) | |
# recursively, starting from the current working directory (PWD). | |
# | |
# TODO: | |
# - Handle unknown options passed in as arguments | |
# | |
# Author: Jon LaBelle |
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
using System; | |
using System.Collections.Generic; | |
using System.Web; | |
using System.Web.Helpers; | |
using System.Web.Mvc; | |
using Hangfire.Dashboard.Owin; | |
namespace WebApplication34 | |
{ | |
public class MvcAntiforgery : IOwinDashboardAntiforgery |
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 | |
declare -a arr=("obj" "bin" "packages") # Remove/add folders you want to clean up. | |
read -p "Delete $(printf "%s, " "${arr[@]}")folders under $PWD? (y/n) " answer | |
case ${answer:0:1} in | |
y|Y ) | |
for folder in "${arr[@]}" | |
do | |
echo "Cleaning $folder" | |
find . -name $folder -type d -exec rm -rf {} + |