Skip to content

Instantly share code, notes, and snippets.

View lysyi3m's full-sized avatar
😡

Emil Kashkevich lysyi3m

😡
View GitHub Profile
class TransactionsController < ApplicationController
def index
tesote_transactions
end
def tesote_transactions
@tesote_transactions ||= TesoteTransaction.where(tesote_account_id: selected_account_ids).most_recent_first.paginate(
page: params[:page], per_page: 5,
)
end
<% content_for(:title, "Promotions") %>
<div class="py-4">
<div class="container-xl">
<div class="align-items-center d-flex flex-row justify-content-between mb-4">
<%= link_to admin_path, class: "icon-button icon-button_size-md" do %>
<i class="fa-kit fa-petfolk-icon-left-arrow"></i>
<% end %>
<h3 class="flex-grow-1 my-0 mx-3" style="line-height: 1">Promotions</h3>
@lysyi3m
lysyi3m / aws_glacier_delete_vault.md
Created March 23, 2023 09:20 — forked from veuncent/aws_glacier_delete_vault.md
Delete all archives in an AWS Vault

AWS Glacier: Delete vault

Follow these steps to remove all archives from an AWS vault. After this is finished, you will be able to delete the vault itself through the browser console.

Step 1 / Retrieve inventory

This will create a job that collects required information about the vault.

$ aws glacier initiate-job --job-parameters '{"Type": "inventory-retrieval"}' --account-id YOUR_ACCOUNT_ID --region YOUR_REGION --vault-name YOUR_VAULT_NAME 

Keybase proof

I hereby claim:

  • I am lysyi3m on github.
  • I am lysyi3m (https://keybase.io/lysyi3m) on keybase.
  • I have a public key ASBkHzIZuZIQyBezJCDcmhuCw9uNm5apbhfe7MtF8oBmUwo

To claim this, I am signing this object: