Skip to content

Instantly share code, notes, and snippets.

Notes

Ref: Coursera course on Linux for developers

Week 1:

  • Kernel vs OS and Tools
    • Linux is just the kernel ....
  • Normally users will always be running a GUI
  • Almost all desktop linux system will be built using a X window system(X) as the base of this interface
@vishvanath45
vishvanath45 / riot-matrix-workshop.md
Created February 20, 2019 19:54 — forked from attacus/riot-matrix-workshop.md
Create your own encrypted chat server with Riot and Matrix

Running your own encrypted chat service with Matrix and Riot

Workshop Instructor:

This workshop is distributed under a CC BY-SA 4.0 license.

What are we doing here?

The goal of this workshop is to teach you how to configure and run your own Matrix/Riot service. By the end of the workshop, you should be able to log into secure chat rooms and invite others to the same server.

@vishvanath45
vishvanath45 / Pi-Hole Setup.md
Last active January 16, 2019 08:08
Steps to setting up Pi-Hole for Cloud/Internet Connection

Setting up Pi-Hole on Cloud/VM.

Objective :

  • Set up a effiecient Ad Blocker, which can be scaled to as many devices

Required :

  • Any virtual machine and Internet Connection

Steps :

  • Set up a VM on any cloud provider(This guide is based on my set up on Google Cloud)
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
############################################
# To Completely Block Facebook
# Add these entries below to your hosts file
#
# Your hosts file Location:
# Linux, Unix and Mac OS X -> /etc/hosts
# Windows XP, Vista and Windows 7 -> C:\WINDOWS\system32\drivers\etc\hosts
# Windows 2000 -> C:\WINNT\system32\drivers\etc\hosts
# Windows 98/ME -> C:\WINDOWS\hosts
#
@vishvanath45
vishvanath45 / addding_ssh_to_github.md
Created February 1, 2018 05:16
How to add ssh to authenticate to github for once and for all.

Steps.

  • Generate RSA key pair for ssh in local computer use ssh-keygen.

  • Copy the file contents of ~/.ssh/id_rsa.pub

  • Go to settings in github.com

  • add new SSH key

  • paste the RSA public key here. (remove extra new line at the end, if any)

  • This is overall work done,

@vishvanath45
vishvanath45 / bashrc.txt
Created January 24, 2018 16:50
Making aliases for Proxy setting in proxy, inside college network.
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# Set Proxy
alias sp12='export http_proxy="172.16.1.12:3128";
export https_proxy="172.16.1.12:3128";
export ftp_proxy="172.16.1.12:3128";
export HTTP_proxy="172.16.1.12:3128"
export HTTPS_proxy="172.16.1.12:3128";
@vishvanath45
vishvanath45 / gist:2a32281db91e56318ec64344c491b570
Created November 14, 2017 12:30 — forked from bt5e/gist:7507535
Markdown subscript and superscript

Testing subscript and superscript

Testing subscript subscript level 2

Testing superscript superscript level 2

import numpy as np
from numpy import *
import math
# here input will be sum(xi*wi)
def sigmo(x):
return 1/(1+exp(-x))
#here also input will be sum(xi*wi)
def sigmo_derivative(x):
@vishvanath45
vishvanath45 / NN.py
Last active October 7, 2017 18:10
Simple Neural Network Implimentation
import numpy as np
from numpy import *
# here input will be sum(xi*wi)
def sigmo(x):
return 1/(1+np.exp(-x))
def sigmo_derivative(x):