sudo apt install zsh-autosuggestions zsh-syntax-highlighting zsh
awk '!a[$0]++' ~/.zsh_history > ~/.zsh_history_new && mv ~/.zsh_history_new ~/.zsh_history | |
# This command reads the current Zsh history file (~/.zsh_history), | |
# removes duplicates using awk, saves the unique commands to a new file (~/.zsh_history_new), | |
# and finally replaces the old history file with the new one. | |
# After running this command, you should have a Zsh history file without any duplicates. |
# This is a skeleton for testing models including examples of validations, callbacks, | |
# scopes, instance & class methods, associations, and more. | |
# Pick and choose what you want, as all models don't NEED to be tested at this depth. | |
# | |
# I'm always eager to hear new tips & suggestions as I'm still new to testing, | |
# so if you have any, please share! | |
# | |
# @kyletcarlson | |
# | |
# This skeleton also assumes you're using the following gems: |
How to have some fun using the terminal.
sudo apt-get install cowsay
sudo apt-get install fortune
sudo apt-get install figlet
ruby -v
gem install lolcat
# frozen_string_literal: true | |
# == Schema Information | |
# | |
# Table name: contributions | |
# | |
# id :bigint not null, primary key | |
# aasm_state :string | |
# amount :integer default(0) | |
# error_message :string |
# frozen_string_literal: true | |
# == Schema Information | |
# | |
# Table name: contributions | |
# | |
# id :bigint not null, primary key | |
# aasm_state :string | |
# amount :integer default(0) | |
# error_message :string |
# frozen_string_literal: true | |
class ContributionsController < ApplicationController | |
skip_before_action :authenticate_user!, only: %i[new create show] # Allow the new contributions page to be accessible without sign in: for sharing OGP data, search engine indexing etc. Also allow create, so no regostration required to contribute, jst phone number | |
before_action :set_contribution, only: %i[show edit update destroy] | |
before_action :set_campaign, only: %i[new create] | |
# GET /contributions | |
# GET /contributions.json |
https://docs.spring.io/spring-boot/docs/current/reference/html/appendix-application-properties.html spring.kafka prefixed properties
Key | Default Value | Description |
---|---|---|
spring.kafka.admin.client-id | ID to pass to the server when making requests. Used for server-side logging. | |
spring.kafka.admin.fail-fast | false | Whether to fail fast if the broker is not available on startup. |
spring.kafka.admin.properties.* | Additional admin-specific properties used to configure the client. | |
spring.kafka.admin.ssl.key-password | Password of the private key in the key store file. | |
spring.kafka.admin.ssl.key-store-location | Location of the key store file. |
curl https://api.github.com/repos/google/iosched 2> /dev/null | grep size | tr -dc '[:digit:]' |