Skip to content

Instantly share code, notes, and snippets.

View medival's full-sized avatar
🚀
exploring the universe

Adi Purnomo medival

🚀
exploring the universe
View GitHub Profile
@medival
medival / cloudSettings
Last active October 13, 2020 13:08
Pratice Gist
{"lastUpload":"2020-10-13T13:07:47.024Z","extensionVersion":"v3.4.3"}
@medival
medival / GPG and git on macOS.md
Created June 26, 2020 13:20 — forked from danieleggert/GPG and git on macOS.md
How to set up git to use the GPG Suite

GPG and git on macOS

Setup

No need for homebrew or anything like that. Works with https://www.git-tower.com and the command line.

  1. Install https://gpgtools.org -- I'd suggest to do a customized install and deselect GPGMail.
  2. Create or import a key -- see below for https://keybase.io
  3. Run gpg --list-secret-keys and look for sec, use the key ID for the next step
  4. Configure git to use GPG -- replace the key with the one from gpg --list-secret-keys
"linkedin": "https://linkedin.com/adiipurnomo",
"github": "https://github.com/medival"
@medival
medival / install-rabbitmq-centos-7.md
Last active March 17, 2021 21:08 — forked from fernandoaleman/install-rabbitmq-centos-7.md
Install RabbitMQ on CentOS 7

Install RabbitMQ on CentOS 7

sudo yum -y install epel-release
sudo yum -y update

Install Erlang

Download repository

# Single target scan:
nmap [target]
# Scan from a list of targets:
nmap -iL [list.txt]
# iPv6:
nmap -6 [target]
# OS detection:
/system script
add dont-require-permissions=no name=tg_cmd_diamond owner=admin policy=\
ftp,reboot,read,write,policy,test,password,sniff,sensitive,romon source=":\
local send [:parse [/system script get tg_sendMessage source]]\r\
\n\r\
\n:put \$params\r\
\n:put \$chatid\r\
\n:put \$from\r\
\n\r\
\n:local apname\r\
@medival
medival / sources.list
Created June 5, 2021 23:38 — forked from h0bbel/sources.list
/etc/apt/sources.list for Ubuntu 18.04.1 LTS Bionic Beaver
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://us.archive.ubuntu.com/ubuntu/ bionic main restricted
# deb-src http://us.archive.ubuntu.com/ubuntu/ bionic main restricted
## Major bug fix updates produced after the final release of the
## distribution.
deb http://us.archive.ubuntu.com/ubuntu/ bionic-updates main restricted
# deb-src http://us.archive.ubuntu.com/ubuntu/ bionic-updates main restricted
{
"resto": [
{
"id": 0,
"food": "https://images.unsplash.com/photo-1484980972926-edee96e0960d?ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&ixlib=rb-1.2.1&auto=format&fit=crop&w=334&q=80",
"drink": "https://images.unsplash.com/photo-1578314675249-a6910f80cc4e?ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&ixlib=rb-1.2.1&auto=format&fit=crop&w=357&q=80"
},
{
"id": 1,
"food": "https://images.unsplash.com/photo-1501959915551-4e8d30928317?ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&ixlib=rb-1.2.1&auto=format&fit=crop&w=334&q=80",
@medival
medival / installer.sh
Created June 21, 2021 13:12
Install LEMP on CentOS 7
#!/usr/bin/bash
#update system
yum update -y
#install nginx
echo "install epel-release..."
yum install epel-release -y
echp "install nginx..."
yum install nginx -y
echo "enable nginx"
server {
listen 80;
listen [::]:80;
server_name www.wp-site.com wp-site.com;
root /usr/share/nginx/wp-site.com/;
index index.php index.html index.htm index.nginx-debian.html;
location / {
try_files $uri $uri/ /index.php;
}