Skip to content

Instantly share code, notes, and snippets.

View BeniaminK's full-sized avatar

Beniamin Kalinowski BeniaminK

View GitHub Profile
#!/bin/bash -
set -o nounset # Treat unset variables as an error
BUCKET="beniamink-permission-testing-source"
# List all objects in the bucket
objects=$(aws s3api list-objects --bucket "$BUCKET" --query "Contents[?StorageClass=='GLACIER']" --output json | jq -r '.[].Key')
VERSION=1.46.5
sudo apt install build-essential
wget https://sourceforge.net/projects/e2fsprogs/files/e2fsprogs/v$VERSION/e2fsprogs-$VERSION.tar.gz
tar xfz e2fsprogs-$VERSION.tar.gz
cd e2fsprogs-$VERSION
./configure
make -j8

beniamink

Keybase proof

I hereby claim:

  • I am beniamink on github.
  • I am beniamink (https://keybase.io/beniamink) on keybase.
  • I have a public key ASDIRs-upU3qhxrdKTH0n_KqczLnY0QyJDAWR9eTYHcfxQo

To claim this, I am signing this object:

Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@BeniaminK
BeniaminK / min-char-rnn.py
Created October 6, 2018 14:55 — forked from karpathy/min-char-rnn.py
Minimal character-level language model with a Vanilla Recurrent Neural Network, in Python/numpy
"""
Minimal character-level Vanilla RNN model. Written by Andrej Karpathy (@karpathy)
BSD License
"""
import numpy as np
# data I/O
data = open('input.txt', 'r').read() # should be simple plain text file
chars = list(set(data))
data_size, vocab_size = len(data), len(chars)
#!/usr/local/bin/io
Matrix := Object clone
Matrix mainList := list()
Matrix dim := method(x, y,
for(i, 1, x, mainList push(list()))
for(i, 1, x, mainList foreach(arr, arr setSize(y)))
self
#include <iostream>
using namespace std;
int main()
{
double tab[10] = { 7, 8, 6, 4, 5, 9, 0, 3, 1, 2 };
double srednia = 0;
for (int i = 0; i < 10; i++)
{
cout << tab[i] << "\t";
}
#include <iostream>
using namespace std;
struct suma_roznica
{
int suma;
int roznica;
};