Skip to content

Instantly share code, notes, and snippets.

Aleksandr Gornostal gornostal

Block or report user

Report or block gornostal

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@gornostal
gornostal / home
Last active Oct 2, 2019
Public keys
View home
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQDpiUUl0WT8j2yt51i4LgmAqUv/9roDfGAmFjINfrtn7Mtl+oIsINntVv68spNzcwcqWgHhPkoHqi+qMRDF40hA0uwQ+ZJhgMIRgcrSbFPJOUW962i73Wsv2Rnfr2i8Cpq4YZ1EFb+aYGNWC3Vi0ynXLrdD+GRoud6RCc5ODxDixf8JHardduvY2IIcdWmCrqO3ftQQhNgmdA29UKnguOWuNUGSJZ7L16JkCsYKQtsh5uTsjGq0+u/YEmbpf5W1a7KR1aaWPvuA1n6odxiUV7/YBBEAeTstb13wizFz2GCZp3BIWttkACyspoIaDZzp7ncLcTNSX75QQ/q7S3QJJZ9WQqenW2ZDIR7cC6TR87iN1jwY2ivDM3y0EP7ruD8UfvgT1N3OTwe6nlAKd1ujYbA3yIjMFXlcPD90wIG+vdz759J+z85udy2TNQMbAMcNZkRZHgqfDYUmwCkReAeOgBC9q2IfSL8/6Gi/DYCgEVhikswZqmf2a1AjlhYrC8WkHnUF4vI7RoYx4MoGzmU7171oQCV09o8eJzqfgViHcKpSpQDnbxWx7+d2XyKDMnaLzxyRbwy2QGk8864tu2P2MUQVPXZgq0W6p1r7v4lOz5qKc1NJD2beqdG9E69ODynlxvWRKQWQPA8oh1IBRZt5jIfs3a8fVn/n4ElWrFn9J+q4UQ== agornostal
View qr.js
import React, { Component } from 'react'
import Helmet from 'react-helmet'
import QrCode from 'qrcode.react'
import { uploadImage, addJson, getJson, getIpfsHashFromBytes32, getBytes32FromIpfsHash } from '../utils/ipfs'
import './ipfs.css'
export default class Ipfs extends Component {
constructor(props) {
super(props)
View cors.sh
ipfs config --json API.HTTPHeaders.Access-Control-Allow-Origin '["*"]'
ipfs config --json API.HTTPHeaders.Access-Control-Allow-Methods '["PUT", "GET", "POST"]'
@gornostal
gornostal / rinkeby.sh
Created Apr 23, 2018
Run Rinkeby Node
View rinkeby.sh
#!/bin/bash
docker run \
--rm \
-d \
--name geth \
-v $(pwd)/.ethereum:/root/.ethereum \
-p 8545:8545 \
ethereum/client-go \
--rinkeby \
@gornostal
gornostal / README.md
Last active Sep 23, 2019
Ulauncher Color Themes
View README.md

This will be a temporary site for sharing Ulauncher color themes

When posting a theme make sure it has

  • title (theme name or whatever)
  • link to a gist or github repo with theme files
  • screenshot attached (just drag an image onto a comment area)

@gornostal
gornostal / format.sh
Last active Jan 20, 2018
Format USB drive from command line
View format.sh
lsblk
umount /dev/sdc
sudo fdisk /dev/sdc
d,d,d,d,...
n
w
sudo mkfs.vfat /dev/sdc1
sudo dd if=/path/to/ubuntu.iso of=/dev/sdb bs=1M
@gornostal
gornostal / steps.sh
Created Sep 6, 2017
Fedora. Install trusted certificate into the system (p7b file)
View steps.sh
openssl pkcs7 -in mycert.p7b -inform DER -print_certs -out mycert.pem
sudo cp mycert.pem /etc/pki/ca-trust/source/anchors/
sudo update-ca-trust
View keybase.md

Keybase proof

I hereby claim:

  • I am gornostal on github.
  • I am agornostalcgn (https://keybase.io/agornostalcgn) on keybase.
  • I have a public key ASC5GdW2B91yQaw7Ecn62bG4jnI5tYs4R66-LXdkM7qGrAo

To claim this, I am signing this object:

View create-appimage.sh
#!/bin/bash
set -ex
cd `dirname $0`
cd ..
ROOT_DIR=$(pwd)
APP=utest
LOWERAPP=${APP,,}
View pythongtk3hello.sh
#!/bin/bash -eux
# This is a very simple example on how to bundle a Python application as an AppImage
# using virtualenv and AppImageKit using Ubuntu
# NOTE: Please test the resulting AppImage on your target systems and copy in any additional
# libraries and/or dependencies that might be missing on your target system(s).
########################################################################
# Get virtualenv on the target system
########################################################################
You can’t perform that action at this time.