Skip to content

Instantly share code, notes, and snippets.

View dineshviswanath's full-sized avatar

Dinesh Viswanath dineshviswanath

View GitHub Profile
@dineshviswanath
dineshviswanath / python_web_dev_flask_environment_setup.md
Last active December 9, 2024 05:37
How to install python and Flask on Mac OS X

#Starting Python Web development in Mac OS X#

Objective: Getting started with Python Development Operating System: Mac OS X Python version installed: 3.5 (5th December 2015)

Downoad the lastest Python from https://www.python.org/downloads/

@dineshviswanath
dineshviswanath / coreaudiod_fix.sh
Created April 4, 2020 13:55
How to Fix MacOSX audio not working
sudo killall coreaudiod && sudo launchctl start com.apple.audio.coreaudiod
@dineshviswanath
dineshviswanath / coreaudiod_fix.sh
Created April 4, 2020 13:55
How to Fix MacOSX audio not working
sudo killall coreaudiod && sudo launchctl start com.apple.audio.coreaudiod
@dineshviswanath
dineshviswanath / github_load_all_diffs.js
Created March 24, 2020 15:20 — forked from juanca/github_load_all_diffs.js
Github PR bookmarklet: Load all file diffs
javascript:
document.querySelectorAll('.load-diff-button').forEach(node => node.click())
@dineshviswanath
dineshviswanath / go-os-arch.md
Created February 11, 2020 08:24 — forked from asukakenji/0-go-os-arch.md
Go (Golang) GOOS and GOARCH

Go (Golang) GOOS and GOARCH

All of the following information is based on go version go1.8.3 darwin/amd64.

A list of valid GOOS values

(Bold = supported by go out of the box, ie. without the help of a C compiler, etc.)

  • android
  • darwin
@dineshviswanath
dineshviswanath / dyanamodb.py
Last active December 19, 2019 15:08
batch insert DynamoDB
def dynamo_db_batch_write(items):
"""
Write in db by batch
"""
dynamo_db = boto3.resource(
'dynamodb',
endpoint_url=get_aws_endpoint_url('dynamodb'),
region_name=region,
)
0x4F3fcf87B3bc413f327f68f43574904a389AC9e2
@dineshviswanath
dineshviswanath / gist:6629393
Created September 19, 2013 20:29
Code to identify whether file or directory
public class RecFind {
public static void main(String a[]) throws FileNotFoundException, IOException{
String target = a[0];
String[] tmp;
//Extra File logging. Not required for File or Dir
FileOutputStream fos = new FileOutputStream("Recfind.log",true);
fos.write("Program Started".getBytes());
System.setOut((java.io.PrintStream)fos);
@dineshviswanath
dineshviswanath / 0_reuse_code.js
Created September 26, 2015 14:29
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console