sudo apt install nitrogen
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
| { | |
| "Version": "2008-10-17", | |
| "Statement": [ | |
| { | |
| "Sid": "AllowPublicRead", | |
| "Effect": "Allow", | |
| "Principal": { | |
| "AWS": "*" | |
| }, | |
| "Action": "s3:GetObject", |
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
| # Add the content below in your /etc/hosts file on Linux and macOS or C:\Windows\System32\drivers\etc\hosts on Windows | |
| # Block X/Twitter | |
| 127.0.0.1 twitter.com | |
| 127.0.0.1 *.twitter.com | |
| 127.0.0.1 www.twitter.com | |
| 127.0.0.1 mobile.twitter.com | |
| 127.0.0.1 m.twitter.com | |
| 127.0.0.1 api.twitter.com | |
| 127.0.0.1 ads.twitter.com |
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
| # Remove-SysmonOldLogs.ps1 | |
| $Folder = "C:\Sysmon" | |
| $Days = 30 | |
| Get-ChildItem -Path $Folder -Recurse -File | Where-Object { | |
| ($_.LastWriteTime -lt (Get-Date).AddDays(-$Days)) | |
| } | Remove-Item -Force |
add_filter('the_content', function($content) { if (is_single()) {
$word_count = str_word_count(strip_tags(get_post_field('post_content', get_the_ID())));
$reading_time = ceil($word_count / 200);
$content = 'Temps de lecture estimé : ' . $reading_time . ' minute(s).' . $content;
}
return $content;
});
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
| # Add this at the end of /etc/bash_completion.d/apt-linux-mint | |
| _apt_mint_file_completion() | |
| { | |
| local cur prev | |
| COMPREPLY=() | |
| _get_comp_words_by_ref -n : cur prev | |
| # If the previous word is 'install' and the current word starts with ./ or / | |
| if [[ "$prev" == "install" && ( "$cur" == ./* || "$cur" == /* ) ]]; then |
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
| X5O!P%@AP[4\PZX54(P^)7CC)7}$EICAR-STANDARD-ANTIVIRUS-TEST-FILE!$H+H* |
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
| pkgname=<name> | |
| pkgver=1.0.0 | |
| pkgrel=1 | |
| arch=('any') | |
| pkgdesc="<desccribe program>" | |
| license=('GPL') | |
| source=('<name>.sh') | |
| sha256sums=('SKIP') | |
| package() { |
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
| # Maintainer: Your Name <[email protected]> | |
| pkgname=<name> | |
| pkgver=1.0 | |
| pkgrel=1 | |
| pkgdesc="<description>" | |
| arch=('any') | |
| url="https://github.com/<profile>/<name>" | |
| license=('GPL') | |
| depends=('bash') | |
| source=("<name>.sh::https://raw.githubusercontent.com/<profile>/<name>/main/<name>.sh") |
OlderNewer