Skip to content

Instantly share code, notes, and snippets.

Avatar

Aleksandr Gornostal gornostal

View GitHub Profile
View keybase.md

Keybase proof

I hereby claim:

  • I am gornostal on github.
  • I am agornostal (https://keybase.io/agornostal) on keybase.
  • I have a public key ASAuglcs9fAD6hgQznImKHGJzrYC-0M6UjXSbfZ71VMHkwo

To claim this, I am signing this object:

@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 Jul 10, 2020
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 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.