Skip to content

Instantly share code, notes, and snippets.

View p1nox's full-sized avatar

Raul Pino p1nox

View GitHub Profile
@p1nox
p1nox / screen_sessions.md
Last active December 1, 2022 14:23
screen sessions basics

screens basics

screen                              # create a new screen session

screen -list                        # list screen sessions

[ctrl] + [a] -> [d]                 # detach current screen session

session -r session_id # enter a screen session
@p1nox
p1nox / noip2.md
Last active March 5, 2018 02:24
NoIp install and config

Install

    sudo apt-get install build-essential
    cd /usr/local/src
    wget http://www.no-ip.com/client/linux/noip-duc-linux.tar.gz
    tar xzf noip-duc-linux.tar.gz
    cd no-ip-2.1.9
    make
    make install
@p1nox
p1nox / Dockerfile
Last active March 18, 2018 17:15
Set Jitsi server
FROM ubuntu:16.04
MAINTAINER jitsi-meet <[email protected]>
ARG DEBIAN_FRONTEND=noninteractive
# we want python to output everything that's printed inside the app rather than buffering it
# ENV PYTHONUNBUFFERED 1
# update apt-get
RUN apt-get update
RUN apt-get install -y htop vim wget curl apt-transport-https
@p1nox
p1nox / linux.md
Last active August 31, 2021 22:52
@p1nox
p1nox / docker-cleanup-resources.md
Created June 21, 2018 22:30 — forked from bastman/docker-cleanup-resources.md
docker cleanup guide: containers, images, volumes, networks

Docker - How to cleanup (unused) resources

Once in a while, you may need to cleanup resources (containers, volumes, images, networks) ...

delete volumes

// see: https://github.com/chadoe/docker-cleanup-volumes

$ docker volume rm $(docker volume ls -qf dangling=true)

$ docker volume ls -qf dangling=true | xargs -r docker volume rm

@p1nox
p1nox / python.md
Last active May 10, 2023 06:46
Python notes

osx

brew install python
brew install [email protected]

brew install pyenv
pyenv install 3.6.5
pyenv global 3.6.5
# install node with official installer or
brew install n

sudo chown -R $USER /usr/local/lib/node_modules
@p1nox
p1nox / spacemacs_for_sublime.MD
Created December 23, 2018 13:41 — forked from yuvadm/spacemacs_for_sublime.MD
Spacemacs 101 for Sublime users

This is a quick tutorial on how to start using Spacemacs coming from Sublime Text.

After installing Spacemacs, boot it up:

$ emacs

Open up a file by hitting SPACE f f, you can then locate and open a file by path with tab completion and ending with ENTER

@p1nox
p1nox / git-secret.sh
Last active May 17, 2020 05:08
git secret cmds
# https://confluence.atlassian.com/bitbucketserver/using-gpg-keys-913477014.html
# generate your gpg keys
gpg --gen-key
# fill prompt questions
gpg --list-keys
gpg --list-secret-keys --keyid-format LONG
# import/export keys: https://www.debuntu.org/how-to-importexport-gpg-key-pair/
# show hash id of your keys