Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View gornostal's full-sized avatar

Oleksandr Gornostal gornostal

  • Kyiv, UA
View GitHub Profile
#!/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
########################################################################
@gornostal
gornostal / format.sh
Last active January 20, 2018 16:58
Format USB drive from command line
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 / rinkeby.sh
Created April 23, 2018 08:25
Run Rinkeby Node
#!/bin/bash
docker run \
--rm \
-d \
--name geth \
-v $(pwd)/.ethereum:/root/.ethereum \
-p 8545:8545 \
ethereum/client-go \
--rinkeby \
@gornostal
gornostal / cors.sh
Last active May 14, 2018 09:33
IPFS Node
ipfs config --json API.HTTPHeaders.Access-Control-Allow-Origin '["*"]'
ipfs config --json API.HTTPHeaders.Access-Control-Allow-Methods '["PUT", "GET", "POST"]'
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)
@gornostal
gornostal / README.md
Last active June 7, 2019 16:20
Install Hackintosh OS X Yosemite on Sony Vaio VPC-F11M1R/H

Successfully installed OS X Yosemite on my Sony VAIO F11M1R/H.

Problems:

  • I had to buy USB sound card for $10 (Viewcon VE533 works for me), because I couldn't find audio drivers.
  • OS X won't connect to password protected Wi-Fi networks, so I had to remove a password.

So here's the steps that I followed:

  1. Make a bootable flash drive using UniBeast tool
@gornostal
gornostal / home
Last active October 2, 2019 12:32
Public keys
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQDpiUUl0WT8j2yt51i4LgmAqUv/9roDfGAmFjINfrtn7Mtl+oIsINntVv68spNzcwcqWgHhPkoHqi+qMRDF40hA0uwQ+ZJhgMIRgcrSbFPJOUW962i73Wsv2Rnfr2i8Cpq4YZ1EFb+aYGNWC3Vi0ynXLrdD+GRoud6RCc5ODxDixf8JHardduvY2IIcdWmCrqO3ftQQhNgmdA29UKnguOWuNUGSJZ7L16JkCsYKQtsh5uTsjGq0+u/YEmbpf5W1a7KR1aaWPvuA1n6odxiUV7/YBBEAeTstb13wizFz2GCZp3BIWttkACyspoIaDZzp7ncLcTNSX75QQ/q7S3QJJZ9WQqenW2ZDIR7cC6TR87iN1jwY2ivDM3y0EP7ruD8UfvgT1N3OTwe6nlAKd1ujYbA3yIjMFXlcPD90wIG+vdz759J+z85udy2TNQMbAMcNZkRZHgqfDYUmwCkReAeOgBC9q2IfSL8/6Gi/DYCgEVhikswZqmf2a1AjlhYrC8WkHnUF4vI7RoYx4MoGzmU7171oQCV09o8eJzqfgViHcKpSpQDnbxWx7+d2XyKDMnaLzxyRbwy2QGk8864tu2P2MUQVPXZgq0W6p1r7v4lOz5qKc1NJD2beqdG9E69ODynlxvWRKQWQPA8oh1IBRZt5jIfs3a8fVn/n4ElWrFn9J+q4UQ== agornostal
@gornostal
gornostal / keybase.md
Last active May 20, 2020 12:33
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 / rsa-brute.py
Created September 10, 2020 04:54
RSA password bruteforce
#!/usr/bin/env python3
import paramiko
from paramiko import rsakey
kf = open("/root/.ssh/old/id_rsa", "r")
prefix = "prefix"
chars = {"a", "b", "c"}
@gornostal
gornostal / test.txt
Created February 24, 2022 13:45
Test
7455u
6388m