This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
To upload through terminal you can use: curl -F "image=@firmware.bin" esp8266-webupdate.local/update | |
*/ | |
#include <ESP8266WiFi.h> | |
#include <WiFiClient.h> | |
#include <ESP8266WebServer.h> | |
#include <ESP8266mDNS.h> | |
#ifndef STASSID |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt-get install -y samba samba-common python-glade2 system-config-samba | |
whereis samba | |
sudo cp -pf /etc/samba/smb.conf /etc/samba/smb.conf.bak | |
[sambashare] | |
path = /samba/sambashare | |
browsable = yes | |
writable = yes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apt-get update | |
apt-get dist-upgrade | |
apt-get install -y linux-headers-$(uname -r) | |
#get Nvidia driver | |
http://us.download.nvidia.com/XFree86/Linux-x86_64/375.39/NVIDIA-Linux-x86_64-375.39.run | |
###Error | |
Installing the NVIDIA display driver... | |
Error: unsupported compiler: 6.3.0. Use --override to override this check. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Copyright (c) 2015-2017, Texas Instruments Incorporated | |
* 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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
###cpcb.py ===> its library, save this as cpcb.py | |
#!/usr/bin/env python | |
''' | |
Copyright 2017 Mrityunjai Kumar | |
Licensed under the Apache License, Version 2.0 (the "License"); | |
you may not use this file except in compliance with the License. | |
You may obtain a copy of the License at |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
lpadmin | |
sudo usermod -a -G lpadmin DXer | |
apt-get install cups cups-client hplip |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
=(A1/86400)+25569+5.5/24 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt-get install -y build-essential g++ curl libssl-dev apache2-utils git libxml2-dev | |
wget http://nodejs.org/dist/v0.10.21/node-v0.10.21.tar.gz | |
tar -xf node* | |
./configure | |
make | |
sudo make install | |
node -v | |
npm list -g | |
git clone https://github.com/jadonk/bonescript.git |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
new version of gcc 6 and Cuda 8 are incompatibile | |
It fails when we are trying to do the #python setup.py build/install with the following error: | |
ERROR: No supported gcc/g++ host compiler found, but clang-3.8 is available. | |
Use ‘nvcc -ccbin clang-3.8’ to use that instead. | |
Traceback (most recent call last): | |
************************************************* | |
Example:- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Prereq: | |
apt-get install zsh | |
apt-get install git-core | |
Getting zsh to work in ubuntu is weird, since sh does not understand the source command. So, you do this to install zsh | |
wget https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -O - | zsh | |
and then you change your shell to zsh | |
chsh -s `which zsh` | |
curl -L http://install.ohmyz.sh > install.sh | |
sh install.sh |
NewerOlder