Skip to content

Instantly share code, notes, and snippets.

*
{
font-family: 'Source Sans Pro';
font-size: 0;
line-height: 12px;
margin: 0;
padding: 0;
border-collapse: collapse;
border: 0;
}
{
"query": {
"attributes.league": "hardcore harbinger",
"attributes.itemType": "Amulet",
"mods": [
{
"mods": {
"total.+# to maximum Life": [
"50",
null
@miaoles
miaoles / PKGBUILD
Created December 19, 2018 17:29
dxvk-git AUR package PKGBUILD edited to apply dxvk-poe-hack
# Unmaintained, based on Adrià Cereto i Massagué's AUR package, applies jomihaka's dxvk-poe-hack
pkgbase=dxvk-git
pkgname=('dxvk-win64-git' 'dxvk-win32-git' 'dxvk-git')
pkgver=0.94
pkgrel=1
pkgdesc="A Vulkan-based compatibility layer for Direct3D 10/11 which allows running 3D applications on Linux using Wine."
arch=('x86_64' 'i686')
url="https://github.com/doitsujin/dxvk"
license=('zlib/libpng')
@miaoles
miaoles / PKGBUILD
Last active November 17, 2019 12:47
Edited wine-git AUR PKGBUILD to patch ASYNC patch
# Unmaintained, based on Adrià Cereto i Massagué's AUR package
pkgbase=dxvk-git
pkgname=('dxvk-win64-git' 'dxvk-win32-git' 'dxvk-git')
pkgver=1.4.4_21_gb18c50d5
pkgrel=1
pkgdesc="A Vulkan-based compatibility layer for Direct3D 10/11 which allows running 3D applications on Linux using Wine."
arch=('x86_64' 'i686')
url="https://github.com/doitsujin/dxvk"
license=('zlib/libpng')
@miaoles
miaoles / ccm-miles.html
Created May 7, 2021 17:38
Just some thing.
<html>
<head><title>CMP255</title></head>
<body>
<h1>
Describe what you have learned about Linux. How much did you know about it before class started? Do you feel comfortable using it after the class? Explain.
</h1>
<p>
I had already been using Linux casually for awhile, but I gained a much better foundational knowledgebase for it in this class. I had known of some things from disparate sources but having a class to give me all the information from the ground up helped fill the knowledge gaps. Now I feel better going forward and learning more.
</p>
<h1>
#!/bin/bash
CURRENTDATE==$(date +"%m-%d-%Y")
sudo mkdir /home/miles/backup/$CURRENTDATE
sudo tar zvf /home/miles/backup/$CURRENTDATE/backup.tar.gz /home/*
#!/bin/bash
CONTINUE=false
echo 'Enter the username for a new user:'
read USERNAME
check_username
if [ $CONTINUE = true ]; then
#!/bin/bash
CONTINUE=true
main_menu () {
echo "Enter the letter for one of the following options:"
echo "1. Display today's date and time."
echo "2. Display first 5 lines of top command's output."
echo "3. Display a list of who is logged in."
echo "4. Display disk usage for /home/admin in human readable format."
#!/bin/bash
PASSWORD=pa$$w0rd
for name in $(cat users.txt); do
sudo mysql -u $name -p $PASSWORD create $name
echo "User $name with password $PASSWORD added to created database $name"
done
#!/bin/bash
PASSWORD='pa$$w0rd'
for name in $(cat users.txt); do
sudo mysql> CREATE DATABASE '$name'
sudo mysql> CREATE USER '$name'@'localhost' identified by '${PASSWORD}';
sudo mysql> GRANT ALL PRIVILEGES ON ${name}.* TO '$name'@'localhost' IDENTIFIED BY '${PASSWORD}'
echo "User $name created with password $PASSWORD with database $name"
done