Skip to content

Instantly share code, notes, and snippets.

View uvwild's full-sized avatar

UV uvwild

View GitHub Profile
@uvwild
uvwild / showproxy.sh
Last active February 19, 2019 07:39
change proxy settings via dconf in linux
#!/bin/bash
#########################################
# handle proxy settings
# create link to this file using the case option below to create command to set a proxy
dconf_hosts="/system/proxy/http/host
/system/proxy/https/host
/system/proxy/socks/host"
dconf_ports="/system/proxy/http/port
@uvwild
uvwild / CombinationSearch.java
Created September 27, 2018 16:43
Write a function, that given a list (or array) of integers and an integer s, prints all combinations of 2 numbers in the list that sum to s.
/*
Write a function, that given a list (or array) of integers and an integer s,
prints all combinations of 2 numbers in the list that sum to s.
*/
import java.util.*;
public class CombinationSearch {