Skip to content

Instantly share code, notes, and snippets.

View UndarkAido's full-sized avatar
🤠

Aido UndarkAido

🤠
View GitHub Profile
@UndarkAido
UndarkAido / gist:a8a62bae5faac65b0092
Created January 20, 2016 20:09 — forked from schacon/gist:1
the meaning of gist
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.

Keybase proof

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:

#!/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
@UndarkAido
UndarkAido / Interesting commands
Created June 2, 2017 14:58
Interesting Commands
Some collections of commands I find interesting.
@UndarkAido
UndarkAido / expanded.md
Created June 21, 2017 17:32 — forked from jeremyBanks/expanded.md
one-line self-executing c header and expanded explanation
//

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%.*}"
@UndarkAido
UndarkAido / expanded.md
Created June 21, 2017 17:32 — forked from jeremyBanks/expanded.md
one-line self-executing c header and expanded explanation
//

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")"
}
@UndarkAido
UndarkAido / avgtopng.ps1
Created October 4, 2018 15:34
A powershell command that converts all SVGs in the current directory to PNGs
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
@UndarkAido
UndarkAido / cmake.bat
Created December 31, 2018 03:12
WSL CMake Redirect for Atom
@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 ""