This file contains 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
REM Reseting recursively Windows ACLs of a broken path | |
icacls <path> /reset /T /C /L /Q |
This file contains 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
# Get BFG Repo-Cleaner (https://github.com/rtyley/bfg-repo-cleaner) | |
wget https://repo1.maven.org/maven2/com/madgag/bfg/1.13.2/bfg-1.13.2.jar | |
# Removing by filesize | |
java -jar bfg-1.13.2.jar --strip-blobs-bigger-than <MB> <repository> | |
# Removing by filename | |
java -jar bfg-1.13.2.jar <filename> <repository> | |
# Prune reference logs, cleanup and optimize |
This file contains 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
# List all available package versions in a repository | |
apt-cache madison <package> | |
# Downgrade to a specific package version | |
apt-get install <package>=<version> |
This file contains 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
# Resetting a single file from current branch [or from another branch] | |
git checkout [--] <filename> |
This file contains 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
# For all of us who forgetting to branch before starting new things ;) | |
git branch newbranch | |
git reset --keep HEAD~1 | |
git checkout newbranch | |
# For a detailed description refer to: | |
# https://stackoverflow.com/questions/1628563/move-the-most-recent-commits-to-a-new-branch-with-git |
This file contains 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
something: | |
$(info Using parameters in Makefiles... The value of parameter is $(in)) | |
@echo $(in) |
This file contains 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
something: | |
$(eval variable = 123) | |
$(info Using variables in Makefiles... The value of variable is $(variable)) | |
@echo $(variable) |
This file contains 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
# Example how to mount an ISO image file | |
sudo mount -o loop <image.iso> <directory> |
This file contains 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
network: # No NetworkManager entry | |
version: 2 | |
wifis: | |
some-wifi-device: | |
dhcp4: no | |
dhcp6: no | |
addresses: [192.168.0.42/24] | |
gateway4: 192.168.0.1 | |
nameservers: | |
addresses: [8.8.8.8, 8.8.4.4] # Google DNS Service |
This file contains 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
package android.util; | |
import java.util.Locale; | |
import static java.lang.System.out; | |
@SuppressWarnings("UnusedReturnValue") | |
public class Log { | |
private static final int DEFAULT_RETURN_VALUE = 0; |
NewerOlder