Skip to content

Instantly share code, notes, and snippets.

View pwasiewi's full-sized avatar
😎
An usual day ;)

Piotr Wasiewicz pwasiewi

😎
An usual day ;)
View GitHub Profile
@lhriley
lhriley / aws-cert-import.sh
Created February 3, 2018 02:10
AWS CA import script for JDK keystore
#!/bin/bash -e
# create a temp dir in which to work
OLDDIR="$PWD"
TMPDIR="/tmp/_aws-ca"
mkdir "${TMPDIR}" && cd "${TMPDIR}"
AWS_CERTS=(
AmazonRootCA1.pem
@SunboX
SunboX / corporate-linux-desktop-howto.md
Created January 15, 2018 14:09 — forked from jtyr/corporate-linux-desktop-howto.md
How to run Linux desktop in a corporate environment

How to run Linux desktop in a corporate environment

DISCLAIMER

Some of the practices described in this HOWTO are considered to be illegal as they often break internal corporate policies. Anything you do, you do at your own risk.

@Bengt
Bengt / UbuntuSetup.md
Last active May 24, 2024 22:46
This is how I setup Ubuntu ... more or less.

Detect USB

  • Press tab to autocomplete the device file, e.g. /dev/sda.
ls /dev/sd

Do not complete to the partition, e.g. /dev/sda1.

@daveselinger
daveselinger / rocm_install_script_16_04
Last active July 19, 2022 14:37
Install ROCM and hipCaffe on Ubuntu 16.04
# https://rocm.github.io/ROCmHipCaffeQuickstart.html
# But fixed :)
wget -qO - http://repo.radeon.com/rocm/apt/debian/rocm.gpg.key | sudo apt-key add -
sudo sh -c 'echo deb [arch=amd64] http://repo.radeon.com/rocm/apt/debian/ xenial main > /etc/apt/sources.list.d/rocm.list'
sudo add-apt-repository ppa:oibaf/graphics-drivers
sudo apt update
sudo apt upgrade
sudo apt install mesa-vdpau-drivers
@daveselinger
daveselinger / ubuntu_16_amd_rocm_theano
Last active March 7, 2019 11:50
Ubuntu 16.04 with proprietary AMD driver for OpenCL on Theano.
## Shout out to jarutis here https://gist.github.com/jarutis/ff28bca8cfb9ce0c8b1a
## install Catalyst proprietary
## sudo cp /etc/X11/xorg.conf /etc/X11/xorg.conf.BAK
sudo apt update
sudo apt dist-upgrade
# on a clean install not needed but could be helpful
sudo apt-get remove --purge fglrx*
@lod
lod / config
Created August 18, 2017 13:22
Files to set up a LXC container for steam
# Template used to create this container: /usr/share/lxc/templates/lxc-download
# Parameters passed to the template: --keyserver 178.254.42.45 -d ubuntu -a i386 -r zesty
# Template script checksum (SHA-1): 2c972265e2bb65e2d265271d7545563fd80f96b5
# For additional config options, please look at lxc.container.conf(5)
# Uncomment the following line to support nesting containers:
#lxc.include = /usr/share/lxc/config/nesting.conf
# (Be aware this has security implications)
# Subuids and subgids mapping
@kfaRabi
kfaRabi / frozenLake_v0_using_qLearning.py
Created August 18, 2017 10:31
FrozenLake-v0 solution using Q-Learning without any discount.
import matplotlib
import numpy as np
import sys
import os
from collections import defaultdict
import gym
cwd = os.getcwd()
gymPath = cwd[:cwd.find("gym") + len("gym")]
# print gymPath
@fm4dd
fm4dd / gcc compiler optimization for arm systems.md
Last active May 26, 2024 10:24
GCC compiler optimization for ARM-based systems

GCC compiler optimization for ARM-based systems

2017-03-03 fm4dd

The gcc compiler can optimize code by taking advantage of CPU specific features. Especially for ARM CPU's, this can have impact on application performance. ARM CPU's, even under the same architecture, could be implemented with different versions of floating point units (FPU). Utilizing full FPU potential improves performance of heavier operating systems such as full Linux distributions.

-mcpu, -march: Defining the CPU type and architecture

These flags can both be used to set the CPU type. Setting one or the other is sufficient.

<pyopencl.Device 'Tonga' on 'AMD Accelerated Parallel Processing' at 0x749460>
Repeating [test_overwrite_ecb()] 1000 times....
Function [test_overwrite_ecb] finished in average of 0:00:00.003962
Repeating [test_overwrite_efb()] 1000 times....
Function [test_overwrite_efb] finished in average of 0:00:00.002380
@kevin39
kevin39 / Proxmox reload services
Last active March 5, 2024 20:13
Proxmox reload services properly (services order is important)
service pve-cluster restart && service pvedaemon restart && service pvestatd restart && service pveproxy restart