Skip to content

Instantly share code, notes, and snippets.

View abdulhadad's full-sized avatar

Abdul Hadad abdulhadad

View GitHub Profile
@abdulhadad
abdulhadad / youfakirtajir.txt
Created September 9, 2017 04:21
Youtajir/youfakir, youtube-dl wrapper for Bash
alias youtajir="youtube-dl -o '%(title)s.%(ext)s' -f 'best'"
alias youfakir="youtube-dl -o '%(title)s.%(ext)s' -f 'best[height<=480]'"
@abdulhadad
abdulhadad / apache httpd ipv4 only.txt
Created October 26, 2017 09:36
apache httpd ipv4 only
Listen 0.0.0.0:80 # apache httpd ipv4 only
export http_proxy="http://domain_optional\user:pass@proxy_iip:port/"
# or export http_proxy="http://user:pass@proxy_iip:port/"
# special char use https://www.w3schools.com/tags/ref_urlencode.asp
export https_proxy=$http_proxy
export ftp_proxy=$http_proxy
export rsync_proxy=$http_proxy
export no_proxy="localhost,127.0.0.1,172.0.1.1,.localdomain,.local,.dev"
@abdulhadad
abdulhadad / dot_subversion_servers
Created January 17, 2018 07:05
subversion under proxy
# nano ~/.subversion/servers
[global]
http-proxy-host = proxy-ip
http-proxy-port = proxy-port-here
http-proxy-username = proxyuser
http-proxy-password = proxy-pw
http-proxy-compression = no # optional
http-chunked-requests = no # subversion 1.6 server, higher client version
@abdulhadad
abdulhadad / dot_gradle-gradle.properties
Created February 9, 2018 10:33
Gradle proxy settings, .gradle\gradle.properties file
systemProp.http.proxyHost=www.somehost.org
systemProp.http.proxyPort=8080
systemProp.http.proxyUser=userid
systemProp.http.proxyPassword=password
systemProp.http.nonProxyHosts=*.nonproxyrepos.com|localhost
systemProp.https.proxyHost=www.somehost.org
systemProp.https.proxyPort=8080
systemProp.https.proxyUser=userid
systemProp.https.proxyPassword=password
@abdulhadad
abdulhadad / dot_m2-settings.xml
Created February 9, 2018 11:11
Maven proxy settings, .m2\settings.xml file
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0
https://maven.apache.org/xsd/settings-1.0.0.xsd">
<proxies>
<proxy>
<id>myhttpproxy</id>
<active>true</active>
<protocol>http</protocol>
<host>proxy.somewhere.com</host>
@abdulhadad
abdulhadad / dot_gitconfig
Created February 9, 2018 12:42
Git proxy settings, .gitconfig file
add
[http]
proxy = http://domain%5cuser:password@host:port
or
[http]
proxy = http://user:password@host:port
@abdulhadad
abdulhadad / windows10_port_forwarding.md
Created March 2, 2018 07:47
Windows 10 port forwarding notes

Start port forwarding

netsh interface portproxy add v4tov4 listenport=9090 listenaddress=0.0.0.0 connectport=9090 connectaddress=10.17.18.232

Remove port forwarding

netsh interface portproxy delete v4tov4 listenport=9090 listenaddress=0.0.0.0

Notes

  • Combine with Windows10 Hostsport feature for Mobile devices access
  • Alternative: tcpmon, apache proxy pass or other debugging proxy
@abdulhadad
abdulhadad / docker_playground.md
Created March 2, 2018 08:02
Docker Playground

Docker Playground

ambil dan test docker tomcat

docker pull tomcat:7-jre8

test jalankan image docker yang telah di-pull menjadi container

docker run -it --rm tomcat:7-jre8 # http://container-ip:8080, --rm remove container setelah mati ctrl-c, -i Keep STDIN open, -t pseudo-tty docker run -it --rm -p 8080:8080 tomcat:7-jre8 # firewalld jangan dimatikan

buat image docker

@abdulhadad
abdulhadad / GNOME printscreen.md
Last active June 10, 2018 04:25
GNOME printscreen

gnome printscreen

  • print, screen area to folder
  • alt+print, window area to folder
  • shift+print, selected area to folder
  • print, screen area to clipboard
  • alt+print, window area to clipboard
  • shift+print, selected area to clipboard