What is a scoped proxy in Spring?

The proxy generated for @Transactional behavior serves a different purpose than the scoped proxies. The @Transactional proxy is one that wraps the specific bean to add session management behavior. All method invocations will perform the transaction management before and after delegating to the actual bean. If you illustrate it, it would look like main -> … Read more

SSH in git behind proxy on windows 7

Setting http.proxy will not work for ssh. You need to proxy your ssh connection. See this description. To summarize: Start git-cmd.bat and create ~/.ssh/config (notepad %home%\.ssh\config.) ProxyCommand /bin/connect.exe -H proxy.server.name:3128 %h %p Host github.com User git Port 22 Hostname github.com IdentityFile “C:\users\username\.ssh\id_rsa” TCPKeepAlive yes IdentitiesOnly yes Host ssh.github.com User git Port 443 Hostname ssh.github.com IdentityFile … Read more

proxy authentication in node.js with module request

Here is an example of how to configure (https://github.com/mikeal/request/issues/894): //…some stuff to get my proxy config (credentials, host and port) var proxyUrl = “http://” + user + “:” + password + “@” + host + “:” + port; var proxiedRequest = request.defaults({‘proxy’: proxyUrl}); proxiedRequest.get(“http://foo.bar”, function (err, resp, body) { … })

Squid: forward to another proxy (with authentication details for the parent proxy)

I figured from squid tutorials that the simplest configuration to do this is: http_access allow all http_port 3128 coredump_dir /var/spool/squid3 refresh_pattern ^ftp: 1440 20% 10080 refresh_pattern ^gopher: 1440 0% 1440 refresh_pattern -i (/cgi-bin/|\?) 0 0% 0 refresh_pattern (Release|Packages(.gz)*)$ 0 20% 2880 refresh_pattern . 0 20% 4320 cache_peer 10.1.2.3 parent 80 0 no-query default login=my_username:my_password never_direct … Read more

how to you toggle on and off a web proxy in os x from the command line

For an unauthenticated proxy (and assuming it’s the Ethernet service you want to configure): networksetup -setwebproxy Ethernet proxy.example.net 80 off for authenticated: networksetup -setwebproxy Ethernet proxy.example.net 80 on proxyuser “p4ssw0rd” and to turn it off: networksetup -setwebproxystate Ethernet off If the network service isn’t named just “Ethernet”, you may need to parse networksetup -listallnetworkservices or … Read more

Setting JVM/JRE to use Windows Proxy Automatically

It is possible to detect the proxy using the ProxySelector class and assign the system proxy by assigning environment variables with the setProperty method of the System class: System.setProperty(“java.net.useSystemProxies”, “true”); System.out.println(“detecting proxies”); List l = null; try { l = ProxySelector.getDefault().select(new URI(“http://foo/bar”)); } catch (URISyntaxException e) { e.printStackTrace(); } if (l != null) { for … Read more

How to pass all Python’s traffics through a http proxy?

Linux system first export the environment variables like this $ export http_proxy=”http://<user>:<pass>@<proxy>:<port>” $ export HTTP_PROXY=”http://<user>:<pass>@<proxy>:<port>” $ export https_proxy=”http://<user>:<pass>@<proxy>:<port>” $ export HTTPS_PROXY=”http://<user>:<pass>@<proxy>:<port>” or in the script that you want to pass through the proxy import os proxy = ‘http://<user>:<pass>@<proxy>:<port>’ os.environ[‘http_proxy’] = proxy os.environ[‘HTTP_PROXY’] = proxy os.environ[‘https_proxy’] = proxy os.environ[‘HTTPS_PROXY’] = proxy #your code goes here…………. then … Read more

How can I set a proxy for Wget?

For all users of the system via the /etc/wgetrc or for the user only with the ~/.wgetrc file: use_proxy=yes http_proxy=127.0.0.1:8080 https_proxy=127.0.0.1:8080 or via -e options placed after the URL: wget … -e use_proxy=yes -e http_proxy=127.0.0.1:8080 …

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)