Skip to content

Instantly share code, notes, and snippets.

View Davidnet's full-sized avatar
🦔

David Cardozo Davidnet

🦔
View GitHub Profile
ERROR: /home/nvidia/Documents/tensorflow/tensorflow/contrib/layers/BUILD:36:1: Linking of rule '//tensorflow/contrib/layers:gen_sparse_feature_cross_op_py_wrappers_cc' failed (Exit 1): crosstool_wrapper_driver_is_not_gcc failed: error executing command
(cd /home/nvidia/.cache/bazel/_bazel_nvidia/38f510ce87073e6e7989e37d45036c24/execroot/org_tensorflow && \
exec env - \
LD_LIBRARY_PATH=/usr/local/cuda/lib64/: \
PATH=/usr/local/cuda/bin/:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin \
PWD=/proc/self/cwd \
external/local_config_cuda/crosstool/clang/bin/crosstool_wrapper_driver_is_not_gcc -o bazel-out/host/bin/tensorflow/contrib/layers/gen_sparse_feature_cross_op_py_wrappers_cc '-Wl,-rpath,$ORIGIN/../../../_solib_local/_U_S_Stensorflow_Scontrib_Slayers_Cgen_Usparse_Ufeature_Ucross_Uop_Upy_Uwrappers_Ucc___Utensorflow' '-Wl,-rpath,$ORIGIN/../../../_solib_local/_U@local_Uconfig_Ucuda_S_S
#######################
# CUDA 9.0 CUDNN 7.0 #
#######################
sudo apt-get update && sudo apt-get install -y wget tar bzip2
#######################
# CUDA 9.0 #
#######################
# Remap prefix to Control + a
set -g prefix C-a
unbind C-b
bind C-a send-prefix
# force a reload of the config file
unbind r
bind r source-file ~/.tmux.conf
# Set fish as my own shell
from sh import iw, grep
print(grep(iw("wlan0", "scan"), "-P", "\"(^|\s)KiwiNet(?=\s|$)\"", "-B", "2"))
def get_current_wifi_connection():
for line in iw('dev', 'wlan0', 'link', _iter=True):
if "SSID" in line:
return line.split(":")[1]
@Davidnet
Davidnet / download_script.sh
Created September 20, 2018 17:52
How to download large files from Google Drive
#!/bin/bash
fileid="### file id ###"
filename="MyFile.csv"
curl -c ./cookie -s -L "https://drive.google.com/uc?export=download&id=${fileid}" > /dev/null
curl -Lb ./cookie "https://drive.google.com/uc?export=download&confirm=`awk '/download/ {print $NF}' ./cookie`&id=${fileid}" -o ${filename}
@Davidnet
Davidnet / paste.sh
Last active September 27, 2018 17:48
ssh -Q cipher localhost | paste -d , -s -
#!/bin/bash
# Copyright (c) 2011-2018, NVIDIA CORPORATION. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
# * Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
# * Redistributions in binary form must reproduce the above copyright
VIDEONAME=$(basename ${VIDEO_URL})
VIDEOPATH="/data/${VIDEONAME}"
echo $VIDEOPATH
VIDEONAME=$(basename ${VIDEO_URL})
VIDEOPATH="/data/${VIDEONAME}"
echo $VIDEOPATH