As easy as 1, 2, 3!
Updated:
- Aug, 08, 2022 update
config
docs for npm 8+ - Jul 27, 2021 add private scopes
- Jul 22, 2021 add dist tags
- Jun 20, 2021 update for
--access=public
- Sep 07, 2020 update docs for
npm version
Server side : | |
-Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.port=1099 -Djava.rmi.server.hostname=127.0.0.1 -Djava.rmi.server.useLocalHostname=true | |
Client side : | |
Forward port 1099 ==> ssh -L 1099:localhost:1099 username@serverip | |
Download this logging properties file : http://blogs.oracle.com/jmxetc/resource/logging.properties | |
start jconsole using the downloaded properties file : | |
$ jconsole -debug -J"-Djava.util.logging.config.file=logging.properties" localhost:1099 |
// install fpm on centos 6.x | |
yum("ruby rubygems ruby-devel") | |
// yum groupinstall "Development Tools" | |
command("gem install fpm") |
git add HISTORY.md
git commit -m "Changelog for upcoming release 0.1.1."
bumpversion patch
I recently had the following problem:
We didn't want to open the MySQL port to the network, but it's possible to SSH from the Jenkins machine to the MySQL machine. So, basically you would do something like
ssh -L 3306:localhost:3306 remotehost
Creating a service to startup at BeagleBone Black boot time:
Create a shell script such as /usr/bin/myFancyBash.sh:
#!/bin/bash
# this could be any runnable code or shell script, really
/usr/bin/myFancyPython.py
Note that the first line is critical.
import json | |
from os.path import exists | |
from selenium import webdriver | |
from selenium.webdriver.support.ui import WebDriverWait | |
from selenium.common.exceptions import TimeoutException | |
class GoogleGroupsScraper(object): | |
""" A simple class to scrape a google group. """ |
function parseVideo (url) { | |
// - Supported YouTube URL formats: | |
// - http://www.youtube.com/watch?v=My2FRPA3Gf8 | |
// - http://youtu.be/My2FRPA3Gf8 | |
// - https://youtube.googleapis.com/v/My2FRPA3Gf8 | |
// - Supported Vimeo URL formats: | |
// - http://vimeo.com/25451551 | |
// - http://player.vimeo.com/video/25451551 | |
// - Also supports relative URLs: | |
// - //player.vimeo.com/video/25451551 |
#!/bin/bash | |
TMUX_VERSION=2.3 | |
NCURSES_VERSION=6.0 | |
LIBEVENT_VERSION=2.0.22 | |
BASEDIR=${HOME}/work/tmux-static | |
TMUXTARGET=${BASEDIR}/local | |
mkdir -p $TMUXTARGET | |
cd $BASEDIR |