Skip to content

Instantly share code, notes, and snippets.

@magnetikonline
magnetikonline / README.md
Last active March 21, 2024 00:11
Add user ssh-agent as daemon to Ubuntu 18.04LTS server.

Add user ssh-agent as daemon to Ubuntu 18.04LTS server

Create a new systemd user unit, which starts ssh-agent upon login to server. Will remain resident until the final session for the user has logged out.

Steps

  • Create /etc/systemd/user/ssh-agent.service.

  • Run the following commands (under your user account, not root) to install the systemd unit and start:

@9bitbear
9bitbear / AMDGPU-Overclock-BIOS-mod.md
Last active August 5, 2018 16:28
AMD bios mod, overclock
@9bitbear
9bitbear / _MONERO-mining-ubuntu16.04.md
Last active March 22, 2021 10:45
XMR mining on Ubuntu
@9bitbear
9bitbear / AMD-Radeon-GPU-Linux-setup.md
Last active March 20, 2021 21:54
AMD RX Series GPU setup for Mining

Running AMD Radeon GPUS on Ubuntu 16.04

Cards tested (so far):

Model Released
Radeon RX 550 April 2017
Radeon RX 560 April 2017
Radeon HD 7800 Series March 2012
@talolard
talolard / basic_conv1d.py
Created May 22, 2017 05:37
An example of how to do conv1d ourself in Tensorflow
import tensorflow as tf
def conv1d(input_, output_size, width, stride):
'''
:param input_: A tensor of embedded tokens with shape [batch_size,max_length,embedding_size]
:param output_size: The number of feature maps we'd like to calculate
:param width: The filter width
:param stride: The stride
:return: A tensor of the concolved input with shape [batch_size,max_length,output_size]
'''
inputSize = input_.get_shape()[-1] # How many channels on the input (The size of our embedding for instance)
@shagunsodhani
shagunsodhani / RNTN.md
Last active March 24, 2017 18:52
Summary of "Recursive Deep Models for Semantic Compositionality Over a Sentiment Treebank" paper

Recursive Deep Models for Semantic Compositionality Over a Sentiment Treebank

Introduction

  • The paper introduces:
    • Sentiment Sentiment Treebank - A dataset containing 215,154 phrases with fine-grained sentiment labels (5 classes).
    • Recursive Neural Tensor Network - Model to learn these fine-grained sentiment labels.
  • Link to the paper

Sentiment Sentiment Treebank

import keras
from keras.models import Model
import keras.backend as K
from keras.engine.topology import Layer, InputLayer, Input, Node
from keras.layers import merge, Dense, TimeDistributed, LSTM
import theano.tensor as T
import theano
import numpy as np
@herrfz
herrfz / Reuters.py
Last active October 18, 2021 19:27
Reuters-21578 keyword extraction
# Reuters-21578 dataset downloader and parser
#
# Author: Eustache Diemert <eustache@diemert.fr>
# http://scikit-learn.org/stable/auto_examples/applications/plot_out_of_core_classification.html
#
# Modified by @herrfz, get pandas DataFrame from the orig SGML
# License: BSD 3 clause
from __future__ import print_function
@sebald
sebald / latex_xml_style.tex
Created July 17, 2012 17:53
Latex Listing XML Style
\usepackage{listings}
\usepackage{color}
\definecolor{dkgreen}{rgb}{0,0.6,0}
\definecolor{gray}{rgb}{0.5,0.5,0.5}
\definecolor{mauve}{rgb}{0.58,0,0.82}
\definecolor{gray}{rgb}{0.4,0.4,0.4}
\definecolor{darkblue}{rgb}{0.0,0.0,0.6}
\definecolor{lightblue}{rgb}{0.0,0.0,0.9}
\definecolor{cyan}{rgb}{0.0,0.6,0.6}