Skip to content

Instantly share code, notes, and snippets.

View pilinux's full-sized avatar

mahir pilinux

View GitHub Profile
@pilinux
pilinux / gitlab.conf
Created June 1, 2018 08:08 — forked from sameersbn/gitlab.conf
Nginx reverse proxy configuration for GitLab
upstream gitlab {
server 172.17.42.1:10080 fail_timeout=0;
}
# let gitlab deal with the redirection
server {
listen 80;
server_name git.example.com;
server_tokens off;
root /dev/null;
@pilinux
pilinux / install_ruby_on_rails.sh
Last active June 1, 2018 17:11
Install ruby and rails - simplest procedure for Ubuntu OS
#!/bin/bash
sudo apt install build-essential ruby liblzma-dev patch ruby-dev zlib1g-dev libsqlite3-dev nodejs
sudo gem update --system
sudo gem install bundler
sudo gem install nokogiri -v 1.8.2
sudo gem install rails -v 5.2.0
sudo gem install sqlite3 -v 1.3.13
sudo gem install execjs
# To create an app inside a directory,
@pilinux
pilinux / how-to-install-java-on-raspbian.md
Last active July 9, 2018 07:33 — forked from ribasco/how-to-install-java-on-raspbian.md
How to install the latest java version in Raspbian (Stretch)

Introduction

The default version of java provided in the latest raspbian images are outdated, so we are going to install from the ppa:webupd8team/java repository instead. Please note that add-apt-repository ppa:webupd8team/java will not work, so we will need to add the repository manually.

Installation

  1. Create the gpg key file and paste the following lines of text below
nano key.txt
@pilinux
pilinux / Cloudflared_Setup
Last active November 19, 2018 12:24
OpenVPN + Pi-hole Firewall and Resolver + Upstream Public DNS Setup on a Dedicated/Cloud Server
Download link: https://developers.cloudflare.com/argo-tunnel/downloads/
For Raspberry Pi
================
- Install Pi-hole with lighttpd
- $ curl https://bin.equinox.io/c/VdrWdbjqyF/cloudflared-stable-linux-arm.tgz | sudo tar xzC /usr/local/bin
- Test:
$ sudo su

Keybase proof

I hereby claim:

  • I am pilinux on github.
  • I am pilinux (https://keybase.io/pilinux) on keybase.
  • I have a public key ASCFDXaih7saw1LyTW1vG-j_mfsBBcMxeHFHGETdtoxYcQo

To claim this, I am signing this object: