Skip to content

Instantly share code, notes, and snippets.

View yanaga's full-sized avatar
✈️
Staying at home (or not)!

Edson Yanaga yanaga

✈️
Staying at home (or not)!
View GitHub Profile
@yanaga
yanaga / gist:5888804
Created June 28, 2013 23:00
Quick configuration of WiFi on a Raspberry Pi
cat << EOF | sudo tee /etc/network/interfaces
auto lo
iface lo inet loopback
iface eth0 inet dhcp
allow-hotplug wlan0
auto wlan0
iface wlan0 inet dhcp
wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
import java.io.Serializable;
import javax.persistence.EntityManager;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.support.JpaEntityInformation;
import org.springframework.data.jpa.repository.support.JpaRepositoryFactory;
import org.springframework.data.jpa.repository.support.JpaRepositoryFactoryBean;
import org.springframework.data.repository.core.RepositoryMetadata;
import org.springframework.data.repository.core.support.RepositoryFactorySupport;
import java.io.Serializable;
import java.util.List;
import javax.persistence.EntityManager;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.domain.Sort;
import org.springframework.data.jpa.domain.Specification;
import org.springframework.data.jpa.repository.support.JpaEntityInformation;
@yanaga
yanaga / gist:893f5d692cf26c27bc16
Created August 31, 2014 14:58
Automate android-sdk headless installation
expect -c '
set timeout -1;
spawn android - update sdk --no-ui --all;
expect {
"Do you accept the license" { exp_send "y\r" ; exp_continue }
eof
}
'
@yanaga
yanaga / gist:a271e0412da5b575d171
Created April 15, 2015 21:19
Create a 4G swap file on Ubuntu
sudo fallocate -l 4G /swapfile
sudo chmod 600 /swapfile
sudo mkswap /swapfile
sudo swapon /swapfile
cat << EOF | sudo tee -a /etc/fstab
/swapfile none swap sw 0 0
EOF
Verifying that +yanaga is my blockchain ID. https://onename.com/yanaga
RBC WaterPark Workshop - 10/02/2020
Openshift Master Console: http://console-openshift-console.apps.cluster-yyz-3dca.yyz-3dca.example.opentlc.com
Openshift API for command line 'oc' client: https://api.cluster-yyz-3dca.yyz-3dca.example.opentlc.com:6443
Download oc client from https://mirror.openshift.com/pub/openshift-v4/clients/ocp/4.3.0/openshift-client-linux-4.3.0.tar.gz
You can choose any combination of username/password on the first time you login.