Skip to content

Instantly share code, notes, and snippets.

View full-sized avatar
🧨
)))))) @#$%^&*^%$# ((((((

Chandra Prakash cprakashagr

🧨
)))))) @#$%^&*^%$# ((((((
View GitHub Profile
@cprakashagr
cprakashagr / Install_gcc7_ubuntu_16.04.md
Created May 2, 2020 20:06 — forked from jlblancoc/Install_gcc7_ubuntu_16.04.md
Installing gcc-7 & g++-7 in Ubuntu 16.04LTS Xenial
View Install_gcc7_ubuntu_16.04.md

Run the following in the terminal:

Install the gcc-7 packages:

sudo apt-get install -y software-properties-common
sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt update
sudo apt install g++-7 -y

Set it up so the symbolic links gcc, g++ point to the newer version:

@cprakashagr
cprakashagr / rig.js
Created December 28, 2019 10:59
Rig Management Tool
View rig.js
/**
* Rig Power Management System
* Author: CP
*/
const puppeteer = require('puppeteer')
const select = require ('puppeteer-select');
(async () => {
function printUsage() {
@cprakashagr
cprakashagr / gen.py
Created October 14, 2019 10:15
The data augmentation scripts
View gen.py
#!/usr/bin/env python
#
# Copyright (c) 2016 Matthew Earl
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
View Install protobuf 3 on Ubuntu
# Make sure you grab the latest version
curl -OL https://github.com/google/protobuf/releases/download/v3.2.0/protoc-3.2.0-linux-x86_64.zip
# Unzip
unzip protoc-3.2.0-linux-x86_64.zip -d protoc3
# Move protoc to /usr/local/bin/
sudo mv protoc3/bin/* /usr/local/bin/
# Move protoc3/include to /usr/local/include/
@cprakashagr
cprakashagr / PyTorStemPrivoxy.md
Created January 8, 2018 19:16 — forked from KhepryQuixote/PyTorStemPrivoxy.md
Python script to connect to Tor via Stem and Privoxy, requesting a new connection (hence a new IP as well) as desired.
View PyTorStemPrivoxy.md
@cprakashagr
cprakashagr / LICENCE SUBLIME TEXT
Last active June 8, 2023 14:12
Sublime Text 3 Serial key build is 3143
View LICENCE SUBLIME TEXT
## Sublime Text 3 Serial key build is 3103
—– BEGIN LICENSE —–
Michael Barnes
Single User License
EA7E-821385
8A353C41 872A0D5C DF9B2950 AFF6F667
C458EA6D 8EA3C286 98D1D650 131A97AB
AA919AEC EF20E143 B361B1E7 4C8B7F04
B085E65E 2F5F5360 8489D422 FB8FC1AA
@cprakashagr
cprakashagr / runJupyterNotebookService.service
Last active June 17, 2017 12:46
A simple, yet intuitive way to start the jupyter notebook as service for my local work station.
View runJupyterNotebookService.service
[Unit]
Description=Deep Learning Jupyter Notebook Service
[Service]
WorkingDirectory=/home/cprakashagr/Workspace
PIDFile=/run/jupyter.pid
ExecStart=/home/cprakashagr/.virtualenvs/DeepLearning/bin/jupyter-notebook --config=/home/cprakashagr/.jupyter/jupyter_notebook_config.py
User=cprakashagr
Group=cprakashagr
Restart=always
@cprakashagr
cprakashagr / ubuntu.sh
Created June 3, 2017 17:21 — forked from jarutis/ubuntu.sh
Theano and Keras setup on ubuntu with OpenCL on AMD card
View ubuntu.sh
## install Catalyst proprietary
sudo ntfsfix /dev/sda2
sudo cp /etc/X11/xorg.conf /etc/X11/xorg.conf.BAK
sudo apt-get remove --purge fglrx*
sudo apt-get install linux-headers-generic
sudo apt-get install fglrx xvba-va-driver libva-glx1 libva-egl1 vainfo
sudo amdconfig --initial
## install build essentials
sudo apt-get install cmake
@cprakashagr
cprakashagr / video_scaler.c
Created February 26, 2016 05:24
Simple video scaler which decodes a file, scale the video frames and encodes back to the new file.
View video_scaler.c
#include <jni.h>
#include <android/log.h>
#include <libavutil/imgutils.h>
#include <libavutil/parseutils.h>
#include <libavutil/timestamp.h>
#include <libswscale/swscale.h>
#include <libavcodec/avcodec.h>
#include <libavformat/avformat.h>
@cprakashagr
cprakashagr / decoder.cpp
Created February 25, 2016 06:33 — forked from darkyen/decoder.cpp
C++ ffmpeg decoder
View decoder.cpp
/*
* encoder.cpp
*
* Created on: Jul 12, 2012
* Author : Abhishek Hingnikar
* @TODO: remove the file deps.
* ADD STREAM DEPS so that u can buffer output.
* Structure
* @JSAPI
* ffmpeg{