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
#!/usr/bin/env python | |
import logging | |
from bluezero import adapter, central, dbus_tools | |
from bluezero.device import Device | |
import dbus | |
import colorama | |
colorama.init() |
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
#!/usr/bin/env python | |
# Standard modules | |
import logging | |
import random | |
import struct | |
import math | |
import colorama | |
colorama.init() |
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
version: '2' | |
services: | |
cassandra-1: | |
image: cassandra:2 | |
environment: | |
- CASSANDRA_CLUSTER_NAME="demo_3nodes" | |
- CASSANDRA_BROADCAST_ADDRESS=cassandra-1 | |
ports: | |
- "9042:9042" |
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 -E chef-client -z --config /tmp/kitchen/client.rb --log_level debug --json-attributes /tmp/kitchen/dna.json |
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
PROMPT='$(build_prompt) ' | |
ZSH_THEME_GIT_PROMPT_AHEAD="▲" | |
ZSH_THEME_GIT_PROMPT_BEHIND="▼" | |
ZSH_THEME_RVM_PROMPT_PREFIX="[" | |
ZSH_THEME_RVM_PROMPT_SUFFIX="]" | |
prompt_status() { |
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
## | |
## Better Node installation | |
## | |
# Install node from the packages as usual if you feel so inclined, or install NVM instead (or as a second step) | |
curl https://raw.githubusercontent.com/creationix/nvm/v0.17.3/install.sh | bash | |
# Edit .zshrc to add the sourcing of the file | |
``` |
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
brew install passenger nginx --with-passenger |
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
You can do the following: | |
1) download and install | |
2) create the destination folder (I used the following in a mountable disk): | |
usb_backups (a folder for the backups) | |
├── huolongjing (a folder for the USB stick) | |
├── huolongjing_SyncSettings.ffs_batch | |
├── huolongjing_SyncSettings.ffs_gui | |
├── huolongjing_SyncSettings.ffs_real | |
└── huolongjing_version (a folder for versioning, just as a safeguard) | |
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
# As explained in http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1211165807/6 | |
sudo mkdir /var/lock | |
sudo chmod 777 /var/lock | |
Make sure the ```Preferences > Arduino``` paths are properly set, so that you can use the same private and hardware libraries as from the Arduino IDE. |
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
DROP user ertpdev cascade; | |
CREATE USER ertpdev IDENTIFIED BY ertpdev | |
DEFAULT TABLESPACE USERS | |
TEMPORARY TABLESPACE temp | |
QUOTA UNLIMITED ON USERS | |
; | |
GRANT RESOURCE, CONNECT, QUERY REWRITE , CREATE SYNONYM, CREATE VIEW TO ertpdev; |
NewerOlder