Skip to content

Instantly share code, notes, and snippets.

View gornostal's full-sized avatar

Oleksandr Gornostal gornostal

  • Kyiv, UA
View GitHub Profile
@gornostal
gornostal / Sound.md
Created February 5, 2016 21:28
HP Probook 430 G3 Ubuntu drivers
@gornostal
gornostal / readme.md
Created December 28, 2016 11:08
Ubuntu/Linux. Create SWAP file
  • sudo -i
  • cd /var
  • dd if=/dev/zero of=swap.file bs=1M count=2048
  • mkswap swap.file
  • chmod 600 swap.file
  • swapon swap.file
  • // copy UUID
  • vi /etc/fstab ==> UUID=f1ed55b6-357b-4427-86c8-d57f034cf29e none swap defaults 0 0
  • mount -a
  • echo $? // should be 0 if everything is OK
#!/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
########################################################################
#!/bin/bash
set -ex
cd `dirname $0`
cd ..
ROOT_DIR=$(pwd)
APP=utest
LOWERAPP=${APP,,}
@gornostal
gornostal / steps.sh
Created September 6, 2017 13:28
Fedora. Install trusted certificate into the system (p7b file)
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
@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 / README.md
Last active May 5, 2024 03:16
Ulauncher Color Themes

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 / 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)