Skip to content

Instantly share code, notes, and snippets.

View silvae86's full-sized avatar

João Rocha da Silva silvae86

View GitHub Profile
@silvae86
silvae86 / Virtuoso.Dockerfile
Created January 17, 2017 20:04
Idea to create DEB packages for Virtuoso 7.2
#source https://hub.docker.com/r/joernhees/virtuoso/~/dockerfile/
FROM debian
MAINTAINER Joern Hees
ENV VIRTUOSO_VERSION=7.2.4.2
ENV VIRTUOSO_SOURCE=https://github.com/openlink/virtuoso-opensource/releases/download/v$VIRTUOSO_VERSION/virtuoso-opensource-$VIRTUOSO_VERSION.tar.gz
ARG BUILD_DIR=/tmp/build
ARG VIRTUOSO_DEB_PKG_DIR=/virtuoso_deb
@silvae86
silvae86 / vodafonePT_Note3_NOSMS_Fix.md
Created January 25, 2017 01:37
Setting up Vodafone PT SMS Center

Dialer -> ##4636## – Phone information, usage statistics and battery

Phone Information -> SMSC . Paste +351 91 161 61 61

Tap "Refresh"

@silvae86
silvae86 / android_backup_restore.sh
Last active May 6, 2024 09:26
Backup and restore Android partitions to SD Card
#!/sbin/sh
#open adb shell
adb shell
#listing partitions (general command for Android devices)
#ls -l /dev/block/platform/<block_device_name>/by-name/
#for the Galaxy Note 3
ls -l /dev/block/platform/msm_sdcc.1/by-name/
@silvae86
silvae86 / scratch_pad.js
Created March 3, 2017 16:42
Dendro Code Dumps
var query =
"SELECT * \n" +
"FROM [0] \n" +
"WHERE { \n" +
"{ \n" +
" ?uri ddr:handle ?handle . \n" +
" ?uri dcterms:creator [1] .\n"+
" ?uri dcterms:title ?title .\n"+
" ?uri dcterms:description ?description . \n" +
" ?uri dcterms:subject ?subject . \n" +
@silvae86
silvae86 / unetbbootin.md
Created March 29, 2017 20:43
Make UnetBootin image bootable on a Mac (since it does not do the only thing it should)
@silvae86
silvae86 / perfectelementary.bash
Last active March 30, 2017 08:41
HowTo Install the perfect Elementary-OS
#Download Elementary OS from here:
#http://sourceforge.net/projects/elementaryos/files/stable/
#First you update your system
sudo apt-get update && sudo apt-get dist-upgrade
#Install Google Chrome
wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
sudo sh -c 'echo "deb http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list'
#!/bin/bash
sudo apt-add-repository ppa:tista/adapta -y
sudo apt-get update
sudo apt-get install adapta-gtk-theme
This file has been truncated, but you can view the full file.
INFO global: Vagrant version: 1.9.3
INFO global: Ruby version: 2.2.5
INFO global: RubyGems version: 2.4.5.1
INFO global: VAGRANT_SHELL_ARGS=""
INFO global: VAGRANT_VM_NAME="dendroVagrantDemo"
INFO global: VAGRANT_LOG="debug"
INFO global: VAGRANT_VM_INSTALL="true"
INFO global: VAGRANT_VM_IP="192.168.56.249"
INFO global: VAGRANT_OLD_ENV_JENKINS_HOME="/var/lib/jenkins"
INFO global: VAGRANT_OLD_ENV_HUDSON_HOME="/var/lib/jenkins"
This file has been truncated, but you can view the full file.
INFO global: Vagrant version: 1.9.3
INFO global: Ruby version: 2.2.5
INFO global: RubyGems version: 2.4.5.1
INFO global: VAGRANT_LOG="debug"
INFO global: VAGRANT_OLD_ENV_PATH="/home/jrocha/bin:/home/jrocha/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/usr/lib/jvm/java-8-oracle/bin:/usr/lib/jvm/java-8-oracle/db/bin:/usr/lib/jvm/java-8-oracle/jre/bin"
INFO global: VAGRANT_OLD_ENV_SHLVL="2"
INFO global: VAGRANT_OLD_ENV_J2SDKDIR="/usr/lib/jvm/java-8-oracle"
INFO global: VAGRANT_OLD_ENV_SHELL="/bin/bash"
INFO global: VAGRANT_OLD_ENV_TERM="xterm"
INFO global: VAGRANT_OLD_ENV_SSH_CLIENT="10.3.3.6 62396 22"
@silvae86
silvae86 / apache_modproxy_safe.md
Created April 25, 2017 18:45
configure reverse proxy without making it open as a public proxy

http://stackoverflow.com/questions/820310/risk-of-using-apache-mod-proxy

I am now exploring to use Apache's mod_proxy's directive, eg ProxyPass, as part of solution for cross-domain scripting restriction (for html/ajax/flash code). However, I am afraid by enabling mod_proxy, I would risk having the server as open proxy.

What's the risk, and how to minimize the risk, in short?

Thanks.

Since you specifically mentioned ProxyPass, I'll assume you're using mod_proxy as a reverse proxy.