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
| #!/bin/bash | |
| # Script backup-duplicity.sh | |
| # -------------------------- | |
| # Perform a backup of the current machine using duplicity and synchronize it to a remote machine | |
| # Abort on unset variables | |
| set -o nounset | |
| ## Global variables |
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
| [user] | |
| name = Alex | |
| email = alex@example.com | |
| username = alex | |
| [color] | |
| ui = true | |
| [help] | |
| autocorrect = 20 |
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
| "Basic settings | |
| set bg=dark | |
| colorscheme slate | |
| set nocompatible | |
| set nopaste | |
| set pastetoggle=<F9> | |
| "Setting indentation | |
| set autoindent smartindent | |
| set shiftwidth=4 | |
| set expandtab |
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
| #!/bin/bash | |
| # Aliases definition file | |
| # ----------------------- | |
| # Enable color support of ls, grep, ip, etc. | |
| aliases_color () { | |
| if [[ -x /usr/bin/dircolors ]] ; then | |
| local dircolors_file="" | |
| if [[ -r ~/.dircolors ]] ; 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
| public class MathUtils { | |
| /** | |
| * Return the maximum number in a collection.<br /> | |
| * @param collection | |
| * the collection. | |
| * @return the maximum value in the collection or <code>null</code> if the collection is empty. | |
| */ | |
| public static <T extends Number> T max (Iterable<T> collection) { | |
| T max = null; | |
| for (T item : collection) { |
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
| Find: "^(\s+)(.*;)\s+\/\*\*?(.*)$" | |
| Replace with: "\1/**\3\n\1\2" |
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
| <!doctype html> | |
| <html> | |
| <head> | |
| <title></title> | |
| <style> | |
| body { | |
| background: white; | |
| text-align: center; | |
| padding: 20px; | |
| font-family: Georgia, serif; |
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
| package com.sun.test; | |
| import java.awt.Color; | |
| import java.util.Map; | |
| import java.util.Map.Entry; | |
| import java.util.Set; | |
| import java.util.TreeMap; | |
| import java.util.logging.Logger; | |
| import javax.swing.UIManager; |
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
| <?xml version="1.0" encoding="UTF-8" standalone="no"?> | |
| <profiles version="2"> | |
| <profile kind="CleanUpProfile" name="Perso" version="2"> | |
| <setting id="cleanup.format_source_code" value="true"/> | |
| <setting id="cleanup.add_missing_annotations" value="true"/> | |
| <setting id="cleanup.use_this_for_non_static_method_access_only_if_necessary" value="true"/> | |
| <setting id="cleanup.remove_unused_private_types" value="true"/> | |
| <setting id="cleanup.qualify_static_member_accesses_through_instances_with_declaring_class" value="true"/> | |
| <setting id="cleanup.qualify_static_method_accesses_with_declaring_class" value="false"/> | |
| <setting id="cleanup.add_generated_serial_version_id" value="false"/> |
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
| package sleep_prevent; | |
| import java.awt.AWTException; | |
| import java.awt.GraphicsDevice; | |
| import java.awt.GraphicsEnvironment; | |
| import java.awt.Rectangle; | |
| import java.awt.Robot; | |
| import java.util.logging.Level; | |
| import java.util.logging.Logger; |
NewerOlder