Skip to content

Instantly share code, notes, and snippets.

View langheran's full-sized avatar
🎧
Automation Ninja 🐱‍👓

Nisim Hurst-Tarrab langheran

🎧
Automation Ninja 🐱‍👓
View GitHub Profile
@langheran
langheran / download_googledrive.py
Created October 22, 2020 03:54
Download_Google_Drive
from __future__ import print_function
import pickle
import os.path
from googleapiclient.discovery import build
from google_auth_oauthlib.flow import InstalledAppFlow
from google.auth.transport.requests import Request
from googleapiclient.http import MediaIoBaseDownload
import io
# If modifying these scopes, delete the file token.pickle.
@langheran
langheran / ipython_config.py
Last active January 24, 2021 21:59
~/.ipython/profile_default/ipython_config.py -> register_ipython_magics
# Configuration file for ipython.
#------------------------------------------------------------------------------
# InteractiveShellApp(Configurable) configuration
#------------------------------------------------------------------------------
## A Mixin for applications that start InteractiveShell instances.
#
# Provides configurables for loading extensions and executing files as part of
# configuring a Shell environment.
@langheran
langheran / plantuml_magic.py
Last active January 24, 2021 21:59
~/.ipython/metakernel/magics/plantuml_magic.py
import argparse
import os
import subprocess
import uuid
from IPython.core.magic import register_cell_magic
from IPython.display import SVG
from metakernel import Magic
@langheran
langheran / custom.js
Created January 26, 2021 00:50
~/.jupyter/custom/custom.js
// leave at least 2 line with only a star on it below, or doc generation fails
/**
*
*
* Placeholder for custom user javascript
* mainly to be overridden in profile/static/custom/custom.js
* This will always be an empty file in IPython
*
* User could add any javascript in the `profile/static/custom/custom.js` file.
* It will be executed by the ipython notebook at load time.
@langheran
langheran / .octaverc
Created January 26, 2021 01:19
~/.octaverc
gnuplot_binary 'C:\Program Files\gnuplot\bin\gnuplot.exe'
graphics_toolkit 'gnuplot'
graphics_toolkit('gnuplot')
@langheran
langheran / matlabrc.m
Last active April 11, 2021 18:11
<matlabroot>/toolbox/local/matlabrc.m
%MATLABRC Master startup MATLAB script.
% MATLABRC is automatically executed by MATLAB during startup.
% It sets the default figure size, and sets a few uicontrol defaults.
%
% On multi-user or networked systems, the system manager can put
% any messages, definitions, etc. that apply to all users here.
%
% A STARTUP command is invoked after executing MATLABRC if the file 'startup.m'
% exists on the MATLAB path.
@langheran
langheran / exercise.ipynb
Last active February 7, 2021 20:58
PA-CRF-Learning-For-OCR-Release
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@langheran
langheran / .serverlessrc
Created February 3, 2021 17:23
~\.serverlessrc
{
"userId": null,
"frameworkId": "a11c5c00-6278-11eb-8318-c1377d65b139",
"trackingDisabled": false,
"enterpriseDisabled": false,
"meta": {
"created_at": 1611955580,
"updated_at": 1612322029
},
"shownNotificationsHistory": {
@langheran
langheran / .npmrc
Last active February 3, 2021 17:53
~\.npmrc
python=C:\ProgramData\Miniconda3\python.exe
loglevel=verbose
@langheran
langheran / bat_profile_rc.cmd
Last active April 9, 2021 00:40
~/bat_profile_rc.cmd
doskey save=doskey /history $g$g %USERPROFILE%\command_history.log
doskey quit=doskey /history $g$g %USERPROFILE%\command_history.log $T exit
doskey exit=doskey /history $g$g %USERPROFILE%\command_history.log $t exit $1 $2
doskey history=find /I "$*" %USERPROFILE%\command_history.log
doskey activate=.\venv\Scripts\activate.bat
doskey getconfig=aws lambda get-function-configuration --function-name "$*-dev-app" --query "Environment.Variables" $g config-dev.json
cls