Skip to content

Instantly share code, notes, and snippets.

View 0xj4f's full-sized avatar

0xJAF 0xj4f

View GitHub Profile
#!/bin/bash
sudo apt install -y \
coreutils \
tmux
wget https://raw.githubusercontent.com/codeandrew/shell-scripts/master/Configs/ubuntu_profile
mv ubuntu_profile ~/.myprofile
wget https://raw.githubusercontent.com/codeandrew/shell-scripts/master/Configs/tmux.conf
mv tmux.conf ~/.tmux.conf
@0xj4f
0xj4f / rest-api-response-format.md
Last active September 24, 2022 01:23 — forked from igorjs/rest-api-response-format.md
REST API response format based on some of the best practices
@0xj4f
0xj4f / .gitlab-ci.yml
Created August 14, 2019 08:34 — forked from daicham/.gitlab-ci.yml
A sample of .gitlab-ci.yml for a gradle project
image: java:8-jdk
stages:
- build
- test
- deploy
before_script:
# - echo `pwd` # debug
# - echo "$CI_BUILD_NAME, $CI_BUILD_REF_NAME $CI_BUILD_STAGE" # debug
@0xj4f
0xj4f / Instructions.sh
Created September 18, 2018 03:50 — forked from GhazanfarMir/Instructions.sh
Install PHP7.2 NGINX and PHP7.2-FPM on Ubuntu 16.04
########## Install NGINX ##############
# Install software-properties-common package to give us add-apt-repository package
sudo apt-get install -y software-properties-common
# Install latest nginx version from community maintained ppa
sudo add-apt-repository ppa:nginx/stable
# Update packages after adding ppa
@0xj4f
0xj4f / getipinfo.py
Created August 23, 2018 03:09 — forked from timofurrer/getipinfo.py
Python get IP Address information
# -*- coding: utf-8 -*-
from sys import argv, stderr, exit
from geoip import geolite2
IP_PROVIDER = "http://httpbin.org/ip"
comma_sep = lambda x: ", ".join([str(y) for y in x])
if not argv[1:]:
from urllib2 import urlopen