I hereby claim:
- I am aidoboy on github.
- I am aidoboy (https://keybase.io/aidoboy) on keybase.
- I have a public key ASAgbjndCvB8q1UdK5vdDi7L76wp5NnKpu5IKwV-5dbdUgo
To claim this, I am signing this object:
| This is gist. | |
| There are many like it, but this one is mine. | |
| It is my life. | |
| I must master it as I must master my life. | |
| Without me gist is useless. | |
| Without gist, I am useless. |
I hereby claim:
To claim this, I am signing this object:
| #!/bin/bash | |
| #set -x | |
| ################################################## ############################ | |
| ## Enable the compiz wallpaper plugin and manually set 4 wallpapers in ccsm ## | |
| ## before running this script ## | |
| ################################################## ############################ | |
| # Adapted from http://ubuntuforums.org/archive/index.php/t-2268186.html | |
| ################################################## ############################ | |
| directory="/media/Crossover/Wallpapers" # set your wallpaper directory |
| Some collections of commands I find interesting. |
//
Since we don't want this visible in C, we put it in a comment.
&>/dev/null
Unfortunately // is interpreted as an invalid shell command and produces an error message, so we need to redirect that to /dev/null to get rid of it.
;x="${0%.*}"
//
Since we don't want this visible in C, we put it in a comment.
&>/dev/null
Unfortunately // is interpreted as an invalid shell command and produces an error message, so we need to redirect that to /dev/null to get rid of it.
;x="${0%.*}"
| $dir = [System.IO.Path]::GetFullPath((Join-Path $(([io.fileinfo]$MyInvocation.MyCommand.Definition).DirectoryName) "..\")) | |
| if (!(Test-Path "$(join-path $env:USERPROFILE "\Temp\ideaIU\bin\idea.bat")")) { | |
| Import-Module BitsTransfer | |
| Start-BitsTransfer -Source "https://download-cf.jetbrains.com/idea/ideaIU-2018.1.2.win.zip" -Destination $(join-path $env:USERPROFILE "\Downloads\ideaIU.win.zip") | |
| iex "$(JOIN-PATH $dir "Program``` Files\7z-extra\x64\7za.exe") x $(join-path $env:USERPROFILE "\Downloads\ideaIU.win.zip") -o$(join-path $env:USERPROFILE "\Temp\ideaIU")" | |
| } |
| Get-ChildItem ".\" -Filter *.svg | Foreach-Object { inkscape -z "$($_.BaseName).svg" -e "$($_.BaseName).png" } |
| give @s minecraft:chest{BlockEntityTag:{LootTable:"minecraft:chests/simple_dungeon", CustomName:"{\"text\":\"Lootbox\"}"}, display:{Name:"{\"text\":\"Lootbox\"}"}} 1 |
| @echo off | |
| powershell "%~dp0/%~n0.ps1 %*" | |
| "XX" | Out-File -filepath C:\Users\Aidan\cmake.txt -append | |
| $args -join " " | Out-File -filepath C:\Users\Aidan\cmake.txt -append | |
| for ($i=0; $i -lt $args.length; $i++) { | |
| if($args[$i].StartsWith("-G")){ | |
| if($args[$i].substring(2) -eq "Unix"){ | |
| $args[$i] = -join($args[$i],"\") | |
| } | |
| $args[$i] = $args[$i].substring(0, 2),$args[$i].substring(2) -join "" |