Skip to content

Instantly share code, notes, and snippets.

View DaveA-W's full-sized avatar

Dave A-W DaveA-W

View GitHub Profile
@jzeferino
jzeferino / remove_bin_obj_packages_from_this_directory_recursively.sh
Created August 16, 2017 12:53
Removes bin, obj and packages from current folder recursively
#!/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 {} +
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
@jonlabelle
jonlabelle / clean_dotnet_build_files.sh
Last active October 14, 2023 22:02
Delete dotnet build dirs and files ('bin', 'obj', etc) recursively, starting from the current working directory.
#!/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