Skip to content

Instantly share code, notes, and snippets.

View Thermoflux's full-sized avatar
🏠
Working from home

Thermoflux Thermoflux

🏠
Working from home
  • Hyderabad, India
View GitHub Profile
@Thermoflux
Thermoflux / enabled_plugins
Last active November 29, 2022 19:11
FastAPI RabbitMQ Http auth backend
[rabbitmq_management,rabbitmq_auth_backend_cache,rabbitmq_auth_backend_http,rabbitmq_prometheus].
{
"fruit": "Apple",
"size": "Large",
"color": "Red"
}
#!/bin/bash
################
# Use this script to update the repositories in directory 'REPOSITORIES'
################
# Uncomment if you want the script to always use the scripts
# directory as the folder to look through
#REPOSITORIES="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
REPOSITORIES="/home/rstudio/ForteAegis/Code/"
IFS=$'\n'
@Thermoflux
Thermoflux / updateRepos.sh
Last active February 27, 2020 16:54 — forked from mnem/git_fetch_pull_all_subfolders.sh
Simple bash script for fetching and pulling all repos in the executed folder to the latest of the branch they are on
#!/bin/bash
################
# Use this script to update the repositories in directory 'REPOSITORIES'
################
# Uncomment if you want the script to always use the scripts
# directory as the folder to look through
#REPOSITORIES="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
REPOSITORIES="/home/rstudio/ForteAegis/Code/"
IFS=$'\n'
@Thermoflux
Thermoflux / addNumbers.m
Last active August 22, 2019 18:18
Example/Tutorial for variable inputs/outputs in Matlab
function varargout = addNumbers(varargin)
% addNumbers is the name of the function.
%
% This file is intended to act as an example of how variable inputs/outputs
% are used in MATLAB
% ThermoFlux 2019
% For more information on varargin (variable num of arguments in input) type the following in command prompt.
% doc varargin
@Thermoflux
Thermoflux / ifelse.m
Last active August 17, 2019 19:46
A simple ifelse anonymous MATLAB function similar to R's ifelse
%%ifelse - Single line ifelse alternative statement for Matlab. Its implemented as an anonymous function for low overhead.
%% This will only work for numerical values, Please use with caution.
ifelse = @(Condition,TrueVal,FalseVal) Condition .*TrueVal + ~Condition .*FalseVal;
This file has been truncated, but you can view the full file.
[
{
"Year": 1575,
"Annual water use in New York city, litres per capita per day, 1898-1968;": "",
"Total population; Afghanistan": "",
"Total population; Albania": "",
"Total population; Algeria": "",
"Total population; Angola": "",
"Total population; Argentina": "",
"Total population; Armenia": "",
@Thermoflux
Thermoflux / .zshrc
Created May 5, 2018 12:51
My zsh config
# Used various sources to construct this file - Thermoflux
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
# Path to your oh-my-zsh installation.
ZSH=/usr/share/oh-my-zsh/
# Set name of the theme to load. Optionally, if you set this to "random"
# it'll load a random theme each time that oh-my-zsh is loaded.
# See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes
clearvars;
DataPath = 'C:\*.csv';
PDataPath = 'C:\PData';
%%
AllData = datastore(DataPath,'TreatAsMissing','NA');
h=figure;histogram(gather(Data.CreatedOn));
saveas(h,'CreatedOn_AllData.fig');
h=figure;histogram(gather(Data.FileTime));
saveas(h,'FileTime_AllData.fig');
Iterm = Data.TerminalCode == 1004;
D = gather(Data(Iterm,:));
D = D(D.ProductCode == 24,:);