Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
set -x
#
# Grab verified boot utilities from ChromeOS.
#
mkdir -p /usr/share/vboot
mount -o ro /dev/sda3 /mnt
cp /mnt/usr/bin/vbutil_* /usr/bin
# I updated the script for kernel 3.8 running on Acer C7 Chrubuntu 13.04
#!/bin/bash
set -x
#
# Grab verified boot utilities from ChromeOS.
#
mkdir -p /usr/share/vboot
@parkerlreed
parkerlreed / nvidia.sh
Created August 6, 2013 02:57
nvidia script
#!/bin/bash
#Downloads and installs module-assistant and nvidia-kernel-common
apt-get install module-assistant nvidia-kernel-common &&
#Downloads and installs the files for your current kernel version.
m-a auto-install nvidia-kernel${VERSION}-source &&
#Downloads drivers and utilities specific to your kernel version.
apt-get install nvidia-glx${VERSION} &&
#Creates a basic xorg.conf file for X to load.
cat > /etc/X11/xorg.conf << EOF
# nvidia-settings: X configuration file generated by nvidia-settings
#!/bin/bash
wget http://somesite.com/coreboot.rom
/usr/sbin/flashrom internal:bus=spi -w coreboot.rom
echo "FIXED IT FOR YOU"
@parkerlreed
parkerlreed / Makefile
Last active October 17, 2020 02:34
Script to monitor clipboard for a new Youtube URL and plays the video when the URL does not match the existing URL. Also does not run when an mpv instance is already running.
install:
sudo cp youloop.service /etc/systemd/user/
systemctl enable --user youloop.service
systemctl start --user youloop.service
import time
import threading
import pyperclip
def is_url_but_not_bitly(url):
if url.startswith("http://") and not "bit.ly" in url:
return True
return False
[parker@rcvrd youloop]$ youtube-dl --list-extractors
1tv
1up.com
220.ro
22tracks:genre
22tracks:track
24video
3sat
4tube
56.com
@parkerlreed
parkerlreed / switch-modules.sh
Last active September 5, 2015 17:58 — forked from davispuh/switch-modules.sh
Switch NVIDIA/nouveau modules
#!/bin/sh
unbind_vtconsoles()
{
for ((i = 0; i < 16; i++))
do
if [ -d "/sys/class/vtconsole/vtcon$i" ]; then
if [ `cat /sys/class/vtconsole/vtcon$i/name | grep -c "frame buffer"` -eq 1 ]; then
while [ `cat /sys/class/vtconsole/vtcon$i/bind` -ne 0 ]; do
#!/bin/bash
if [[ "$#" -eq "1" ]]; then
rename ".<---" "" *
mv "$1" "$1.<---"
fi
<?xml version="1.0" encoding="UTF-8"?>
<update_data_list>
<region id="us">
<np level0_system_version="03.600.000" level1_system_version="03.600.000" level2_system_version="03.600.000" map="03.600.000" />
<np_d level0_system_version="03.600.000" level1_system_version="03.600.000" level2_system_version="03.600.000" map="03.600.000" />
<version system_version="03.600.000" label="3.60">
<update_data update_type="full">
<image size="0">http://www.example.com/PSP2UPDAT.PUP</image>
</update_data>
</version>