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 org.example; | |
import java.util.ArrayList; | |
import java.util.Arrays; | |
import java.util.Hashtable; | |
import java.util.List; | |
import javax.naming.NamingEnumeration; | |
import javax.naming.directory.Attribute; | |
import javax.naming.directory.DirContext; | |
import javax.naming.directory.InitialDirContext; |
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
#!/usr/bin/env bash | |
HELP="Usage: curltime.sh HOSTNAME [SAMPLES_COUNT] [PATH]" | |
if [ $# -eq 0 ]; then | |
echo "Please, provide a hostname." | |
echo $HELP | |
exit 1 | |
fi |
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
begin | |
require 'terminal-notifier' | |
module Jekyll | |
class Site | |
alias jekyll_process process | |
def process | |
jekyll_process | |
TerminalNotifier.notify("🍻 Jekyll rebuild finished") | |
rescue => e | |
TerminalNotifier.notify("💥 Jekyll rebuild failed: #{e.message}") |
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
require 'bundler/setup' | |
require 'active_record' | |
include ActiveRecord::Tasks | |
class Seeder | |
def initialize(seed_file) | |
@seed_file = seed_file | |
end |