- Connect to your EC2 instance
- Install zsh :
sudo apt-get update && sudo apt-get install zsh
- Edit your passwd configuration file to tell which shell to use for user
ubuntu
:sudo vim /etc/passwd
- Look for
ubuntu
user, and replacebin/bash
bybin/zsh
- Install OhMyZsh :
sh -c "$(wget https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh -O -)"
- Disconnect from your instance and reconnect it.
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
if ('serviceWorker' in navigator) { | |
caches.keys().then(function(cacheNames) { | |
cacheNames.forEach(function(cacheName) { | |
caches.delete(cacheName); | |
}); | |
}); | |
} |
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
// Created by react-native-create-bridge | |
// import RCTBridgeModule | |
#if __has_include(<React/RCTBridgeModule.h>) | |
#import <React/RCTBridgeModule.h> | |
#elif __has_include(“RCTBridgeModule.h”) | |
#import “RCTBridgeModule.h” | |
#else | |
#import “React/RCTBridgeModule.h” // Required when used as a Pod in a Swift project | |
#endif |
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
mongo social --port 28000 -u user -p password --authenticationDatabase admin <<EOF | |
db.createRole({ | |
role: "readWriteMinusDropRole", | |
privileges: [ | |
{ | |
resource: { db: "social", collection: ""}, | |
actions: [ "collStats", "dbHash", "dbStats", "find", "killCursors", "listIndexes", "listCollections", "convertToCapped", "createCollection", "createIndex", "dropIndex", "insert", "remove", "renameCollectionSameDB", "update"]} ], | |
roles: [] | |
} | |
); |
Telegraf plugin to collect up/down/status from Technicolor Cable Modems.
- Make sure Python dependencies are installed;
pip install -r reqirements.txt
- Move
telegraf-technicolor.py
in/usr/local/bin
or a suitable location to be executed. - Make sure
telegraf-technicolor.py
is executable;chmod +x telegraf-technicolor.py
- Move
input.technicolor.conf
to/etc/telegraf/telegraf.d
or Telegraf configuration location on your system. Adjust any settings, locations, etc. therein as needed, perhaps your measurement names. - Kick Telegraf to reload configuration files.