Skip to content

Instantly share code, notes, and snippets.

@tallguyjenks
tallguyjenks / code.sh
Last active August 22, 2023 19:55
ZettelKasten Sync Code
# To permanently cache the credentials
git config --global credential.helper store
# To ignore files that could cause issues across different workspaces
touch .gitignore
echo ".obsidian/cache
.trash/
.DS_Store" > .gitignore
@inog
inog / delete_local_branches.sh
Last active May 14, 2021 11:42
delete local branches
//garbage collector
git gc
// alle remotes die keinen verbindung mehr zum server haben
git remote prune origin -n
// alle branches die nicht gemergt sind und nicht master|develop|\* heißen löschen
git branch | egrep -v "(master|develop|\*)"| xargs git branch -d
@sundowndev
sundowndev / GoogleDorking.md
Last active May 14, 2024 06:29
Google dork cheatsheet

Google dork cheatsheet

Search filters

Filter Description Example
allintext Searches for occurrences of all the keywords given. allintext:"keyword"
intext Searches for the occurrences of keywords all at once or one at a time. intext:"keyword"
inurl Searches for a URL matching one of the keywords. inurl:"keyword"
allinurl Searches for a URL matching all the keywords in the query. allinurl:"keyword"
intitle Searches for occurrences of keywords in title all or one. intitle:"keyword"
@romannurik
romannurik / CheatSheet.java
Last active May 16, 2023 13:42
Android helper class for showing cheat sheets (tooltips) for icon-only UI elements on long-press. This is already default platform behavior for icon-only action bar items and tabs. This class provides this behavior for any other such UI element.
/*
* Copyright 2012 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
@Anks
Anks / trac-post-commit-hook.py
Created July 7, 2009 08:24
Adding a command to create a new version to trac's svn post-commit hook
#!/usr/bin/env python
# trac-post-commit-hook
#
# This version trac-post-commit-hook has a few customizations.
#
# 1. fix/fixes/fixed commands set status to 'testing' instead of closed.
#
# 2. Added a new command to create new versions. Any commit message with
# a pattern 'tagging version VERSION_NUMBER' or 'tagged version