Skip to content

Instantly share code, notes, and snippets.

View 1nikolas's full-sized avatar

Nikolas Spiridakis 1nikolas

View GitHub Profile
@1nikolas
1nikolas / CustomMiniControllerFragment.java
Created February 3, 2024 01:08
Google Cast Reciever for Android mini controller with 3 buttons and the image at the same time
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import com.google.android.gms.cast.framework.media.ImageHints;
@1nikolas
1nikolas / squid3.3.8.sh
Created December 26, 2022 02:22
Install Squid 3.3.8 on newer Ubuntu versions (Tested on Bionic/18.04)
#!/bin/bash
#Ask for password if necessary
sudo echo
#Add Trusty Sources
sudo touch /etc/apt/sources.list.d/trusty_sources.list
echo "deb http://us.archive.ubuntu.com/ubuntu/ trusty main universe" | sudo tee --append /etc/apt/sources.list.d/trusty_sources.list > /dev/null
#Update
#! /bin/sh
#-----------------------------
# squid open source by crazy.
#-----------------------------
NAME=squid3
DESC="Squid HTTP Proxy"
DAEMON=/usr/sbin/squid3
PIDFILE=/var/run/$NAME.pid
CONFIG=/etc/squid3/squid.conf
#!/bin/sh
while(true)
do
echo -n | xsel -n -i
sleep 0.5
done

Keybase proof

I hereby claim:

  • I am 1nikolas on github.
  • I am 1nikolas (https://keybase.io/1nikolas) on keybase.
  • I have a public key whose fingerprint is ABFB AF17 B91C 62FC 0A72 678B 9CE2 9378 5F4C E44E

To claim this, I am signing this object:

@1nikolas
1nikolas / genymotion-4.x.md
Last active August 18, 2023 04:02
Install Android 4.1, 4.2, 4.3 on Genymotion

Install Android 4.1, 4.2, 4.3 on Genymotion

I found a way to install older Android versions (4.x) on latest version of Genymotion. I only tested it on Windows but it should work on Mac and Linux too. So here is what you need to do:

Step 1

Download the required Android image. I've reuploaded the files to Mega and saved them on the WayBack Machine.

#!/bin/sh
OS=`uname -m`;
sudo wget -O /usr/bin/badvpn-udpgw "https://raw.githubusercontent.com/daybreakersx/premscript/master/badvpn-udpgw"
if [ "$OS" == "x86_64" ]; then
sudo wget -O /usr/bin/badvpn-udpgw "https://raw.githubusercontent.com/daybreakersx/premscript/master/badvpn-udpgw64"
fi
sudo touch /etc/rc.local
echo "\nscreen -AmdS badvpn badvpn-udpgw --listen-addr 127.0.0.1:7300" | sudo tee -a /etc/rc.local
sudo chmod +x /usr/bin/badvpn-udpgw
sudo screen -AmdS badvpn badvpn-udpgw --listen-addr 127.0.0.1:7300