Skip to content

Instantly share code, notes, and snippets.

View undefinedzain's full-sized avatar

Akhmad Romadlon Zainur Rofiq undefinedzain

  • Lifepack
  • Jombang, Indonesia
View GitHub Profile
@undefinedzain
undefinedzain / letsencrypt-nginx-centos.md
Created June 22, 2018 02:01 — forked from masasdani/letsencrypt-nginx-centos.md
letsencyript SSL nginx proxy centos 7

Install Letsencrypt Nginx Centos 7

install certbot

  sudo yum install epel-release
  sudo yum update
  sudo yum install certbot

install nginx

  sudo yum install nginx

sudo systemctl start nginx

@undefinedzain
undefinedzain / resi_scraping.py
Last active April 5, 2018 19:14
Get resi data scraping
import requests
from bs4 import BeautifulSoup
import sys
if len(sys.argv) < 3:
print ('Usage example : python resi_scraping.py tiki 030003437484 ')
else:
jasa = sys.argv[1]
noresi = sys.argv[2]
@undefinedzain
undefinedzain / synonim_scraping.py
Created May 17, 2017 23:26
Get synonim of a word . scraping . :D
import requests
from bs4 import BeautifulSoup
import sys
if len(sys.argv) == 1:
print ('Please input at least a word, i.e python scraping.py bisa')
else:
kata = sys.argv[1]
headers = {'User-Agent': 'Mozilla/5.0'}
@undefinedzain
undefinedzain / scraping_download_link.py
Created May 17, 2017 23:22
Scraping to get download link (example)
<?php
/*
##########################################################################
# PHP Benchmark Performance Script #
# © 2010 Code24 BV #
# #
# Author : Alessandro Torrisi #
# Company : Code24 BV, The Netherlands #
# Date : July 31, 2010 #
# version : 1.0 #
@undefinedzain
undefinedzain / speedup_php.html
Last active March 12, 2023 18:33
63 Tips for speeding up your php application
<html>
<body>
<p>Here are Webber’s points:</p>
<ul>
<li>If a method can be static, declare it static. Speed improvement is by a factor of 4.</li>
<li>echo is faster than print.(<em>* compare with list from phplens by John Lim</em>)</li>
<li>Use echo’s multiple parameters instead of string concatenation.</li>
<li>Set the maxvalue for your for-loops before and not in the loop.</li>
<li>Unset your variables to free memory, especially large arrays.</li>
<li>Avoid magic like __get, __set, __autoload</li>
# 2017 - @zend
#
# Wordpress 4.7.0/4.7.1 Unauthenticated Content Injection PoC
# Full bug description: https://blog.sucuri.net/2017/02/content-injection-vulnerability-wordpress-rest-api.html
# Usage example:
#
# List available posts:
#
# $ python inject.py http://localhost:8070/
@undefinedzain
undefinedzain / steps.md
Created September 17, 2016 00:20
Add Custom Facade on Laravel 5.3
  1. Create a custom class

?>

@undefinedzain
undefinedzain / ssh.sh
Last active May 17, 2017 23:23 — forked from SunDi3yansyah/ssh.md
Set Up Git & Generating an SSH key
git config --global user.name "Undefined Zain"
git config --global user.email "[email protected]"
ls -al ~/.ssh
ssh-keygen -t rsa -b 4096 -C "[email protected]"
eval "$(ssh-agent -s)"
ssh-add ~/.ssh/id_rsa
sudo apt-get install xclip
xclip -sel clip < ~/.ssh/id_rsa.pub
@undefinedzain
undefinedzain / Passphrase.sh
Created June 15, 2016 15:44
Remove the Passphrase
cp id_rsa id_rsa.org
openssl rsa -in id_rsa.org -out id_rsa