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
#!/bin/sh | |
error() { echo "$@" 1>&2; exit 1; } | |
[ $# -gt 1 ] || | |
error "must provide screen session name and command" | |
session="${1}" | |
shift; | |
found=$(screen -ls | awk '-F\t' '$2 ~ m {print $2}' "m=[0-9]+[.]$session$") |
Dependencies:
$ aptitude install libtool autoconf automake uuid-dev
Installation commands:
$ git clone https://github.com/zeromq/zeromq3-x.git
<?php | |
/** | |
* php-ansi-color | |
* | |
* Original | |
* https://github.com/loopj/commonjs-ansi-color | |
* | |
* @code | |
* <?php | |
* require_once "ansi-color.php"; |
#!/bin/sh | |
for file in $(grep -il "^OnlyShowIn=MATE;$" /usr/share/applications/*.desktop); do | |
echo "patching $file" | |
sed -e "s/OnlyShowIn=MATE;/#OnlyShowIn=MATE;/ig" $file > /tmp/tempfile.tmp | |
mv -f /tmp/tempfile.tmp $file | |
done |
apt-add-repository ppa:pitti/postgresql | |
apt-get update && apt-get upgrade |
FROM ubuntu | |
RUN echo "deb http://archive.ubuntu.com/ubuntu precise main universe" > /etc/apt/sources.list | |
RUN apt-get update | |
RUN apt-get upgrade | |
RUN apt-get install -y openssh-server supervisor | |
ADD sshd.conf /etc/supervisor/conf.d/sshd.conf | |
RUN mkdir -p /var/run/sshd |
package main | |
import( | |
"log" | |
"net/url" | |
"net/http" | |
"net/http/httputil" | |
) | |
func main() { |
Note: This was written using elasticsearch 0.9.
Elasticsearch will automatically create an index (with basic settings and mappings) for you if you post a first document:
$ curl -X POST 'http://localhost:9200/thegame/weapons/1' -d \
'{
"_id": 1,
Stolen from here:
sudo cp /etc/apt/sources.list{,.bak}
sudo sed -i -e 's/ \(stable\|wheezy\)/ testing/ig' /etc/apt/sources.list
sudo apt-get update
sudo apt-get --download-only dist-upgrade
sudo apt-get dist-upgrade