- Delete all local git branches except current
git branch --list | grep -v "^* $(git branch --show-current)$" | xargs git branch -D - Clean up GIT repository
git reflog expire --expire=now
git prune
git lfs prune| # Find files matching a pattern and then copy to directory | |
| find . -maxdepth 1 -type f -iname "*s.bmp" | xargs -I _ cp _ ./S | |
| # Find files of extension and delete | |
| find . -type f -iname "*.blend" -exec rm {} \; | |
| # Check if repository exists (0: exists) | |
| git -C ./qweebi-unity rev-parse 2>/dev/null; echo $? |
| ! https://www.reddit.com/r/uBlockOrigin/comments/yrtr3r/comment/j0v3gac/ | |
| ! Reddit app ad | |
| www.reddit.com##.XPromoPopupRpl | |
| www.reddit.com##xpromo-new-app-selector | |
| www.reddit.com##.bottom-bar, .XPromoBottomBar | |
| www.reddit.com##.useApp,.TopNav__promoButton | |
| www.reddit.com##body:style(pointer-events:auto!important;) |
git branch --list | grep -v "^* $(git branch --show-current)$" | xargs git branch -D git reflog expire --expire=now
git prune
git lfs prune| tasks.test { | |
| useJUnitPlatform() | |
| testLogging { | |
| exceptionFormat = TestExceptionFormat.FULL | |
| events("skipped", "failed", "passed") | |
| } | |
| } |
| { | |
| "$schema": "https://raw.githubusercontent.com/jsonresume/resume-schema/v1.0.0/schema.json", | |
| "basics": { | |
| "name": "Vinay Shenoy", | |
| "label": "Engineering Lead at Qweebi", | |
| "email": "[email protected]", | |
| "url": "", | |
| "summary": "Software Engineer with 10+ years of experience, specializing in developer experience and consistent engineering delivery.", | |
| "location": { | |
| "countryCode": "SG", |
| interface Provider<T, U> { | |
| fun provide(params: U?): T | |
| } | |
| class DatabaseProvider: Provider<User, string> { | |
| override fun provide(id: string?): User { | |
| // Query DB here | |
| } | |
| } |
| git rm .gitattributes | |
| git reset . | |
| git checkout . |
| find . -type f -print0 | xargs -0 ls -l | sort -k5,5rn > ~/files.txt | |
| find -E . -regex '.*\.(jpg|png)' -print0 | xargs -0 ls -l | sort -k5,5rn | |
| find -E . -regex '.*\.(jpg|jpeg|png|hdr|exr)' -print0 | xargs -0 stat -f "%N,%z" > ./files.csv |
| export GRADLE_USER_HOME="$HOME/Dev/.gradle" | |
| # Delete all gradle log files older than 7 days | |
| find $GRADLE_USER_HOME/daemon -type f -mtime +7 -iregex '.*\.\(dmp\|log\)$' -delete |
| package `in`.obvious.android.bitmaptest | |
| import android.graphics.Bitmap | |
| import android.graphics.Canvas | |
| import android.graphics.Matrix | |
| import android.graphics.RectF | |
| import android.os.Bundle | |
| import android.os.Handler | |
| import android.os.Looper | |
| import android.view.LayoutInflater |