Skip to content

Instantly share code, notes, and snippets.

@BenTech2
BenTech2 / LCMods.desktop
Last active January 14, 2024 21:21
R2ModMan for SteamDeck and LC
#!/usr/bin/env xdg-open
[Desktop Entry]
Comment[en_US]=
Comment=
Exec=sh -c 'curl -L https://gist.githubusercontent.com/BenTech2/191718cd2f901a7a044c0bd520c11eb7/raw/install.sh | bash'
GenericName[en_US]=
GenericName=
MimeType=
Name[en]=Install LC Mods
Name=Install LC Mods
@BenTech2
BenTech2 / install.sh
Created February 10, 2017 21:35
install a better ubuntu theme
sudo apt-get install unity-tweak-tool
# for ubuntu 16.04
sudo sh -c "echo 'deb http://download.opensuse.org/repositories/home:/Horst3180/xUbuntu_16.04/ /' > /etc/apt/sources.list.d/arc-theme.list"
sudo apt-get update
sudo apt-get install arc-theme
wget -qO- https://raw.githubusercontent.com/PapirusDevelopmentTeam/papirus-icon-theme/master/install-papirus-root.sh | sh
@BenTech2
BenTech2 / install.sh
Last active December 20, 2016 17:32
docker install
apt-get install -y apt-transport-https ca-certificates
apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D
echo "deb https://apt.dockerproject.org/repo ubuntu-xenial main" | sudo tee /etc/apt/sources.list.d/docker.list
apt-get update
apt-get install -y linux-image-extra-$(uname -r) linux-image-extra-virtual
apt-get install -y docker-engine
service docker start
docker run -d --restart=unless-stopped -p 8080:8080 rancher/server
@BenTech2
BenTech2 / 0_readme.md
Last active January 7, 2018 00:16
PocketPi - Handheld Raspberry Pi with QWERTY Keypad
@BenTech2
BenTech2 / install.sh
Last active August 29, 2015 14:18
PiHome
# set up auto login and run script
sed -i 's/1\:2345\:respawn\:\/sbin\/getty 115200 tty1/1:2345:respawn:\/bin\/login -f pi tty1 <\/dev\/tty1 >\/dev\/tty1 2>\&1/g' /etc/inittab
sed -i 1:2345:respawn:\/sbin\/getty --noclear 38400 tty1/1:2345:respawn:\/bin\/login -f pi tty1 <\/dev\/tty1 >\/dev\/tty1 2>\&1/g' /etc/inittab
echo ". /home/pi/your_script_name.sh" >> /etc/profile
@BenTech2
BenTech2 / _readme.md
Last active November 6, 2024 14:28
PretendYoureXyzzy Server Installation

WARNING: This guide is still being written... after 3 days of research and trial/error i have setup a working server and now am shareing the process since theres no documentation on the internet for it.

How To Setup a PretendYoureXyzzy Server

Ubuntu 14.04 Server or Desktop

NOTE - you will need a linux (or M$ windows, but i could not get it tomcat emulator to work) GUI environment for eclipse to build the WAR file for the server, unless you plan to use Ubuntu Desktop for the server.

Setup the Tomcat Server

G21
G00 X0 Y0 Z0
G04 P1.0010
G01 X7.8561921971 Y0.0000000000 Z0.0000000000 F1882.3426151474
G01 X7.7245569158 Y0.0000000000 Z0.0000000000 F1776.6948421037
G01 X6.9103602701 Y0.0000000000 Z0.0000000000 F1582.8551573568
G01 X6.8783052841 Y0.0000000000 Z0.0000000000 F1582.8551573568
G01 X7.6860574310 Y2.2045693964 Z0.0000000000 F1853.5520383584
G01 X-7.1126573241 Y3.0295411623 Z0.0000000000 F1911.4876217985
G01 X7.1352321315 Y3.8269022793 Z0.0000000000 F1986.4052211086
@BenTech2
BenTech2 / better.sh
Last active August 29, 2015 14:06
DupDestroyer
#!/bin/sh
SOURCE_DIR="."
DEST_DIR="test"
FILE_EXT="scexe"
COUNTER=0
# Check to make sure that this script is executed from a root user
if [ $(whoami) != 'root' ]
then
echo "
@BenTech2
BenTech2 / _readme.md
Last active August 29, 2015 14:05
TeamSpeak 3 Server on Intel Galileo
@BenTech2
BenTech2 / _readme.md
Last active August 29, 2015 14:05
Project Diva F Arduino PS3 Controller

Project Diva F Arduino PS3 Controller

All code was stolen and modified from the awesome people that made https://code.google.com/p/unojoy/

Stuff thats required for this:

  • A PS3
  • Project Diva F or F2 Japanese or English... (Thanks Sony for being awesome about Reigon-free games! and SEGA for actualy making a english version of the games... please continue!)
  • 8 big arcade style momentary push buttons
  • 2 analog stick ... part numbers coming soonish!
  • 7 more smaller buttons not as important buttons