CCCPaste

Playing Tones with Sox

#Generating Synth Tones with SoX
sudo apt install sox

#play a tone (-n means no input) (Ctrl-C to kill)
play -n synth

Webp file conversion and information

#working with WebP image formats in Linux

#about
#webp was developed by Google back in 2010
#it's an open format

Generate Random Midi Music from text

#Install
sudo apt install midge

#example file
http://www.undef.org.uk/code/midge/dont_fear_the_reaper.mg

Install and Start Python Webserver

REM disable UAC Prompt
reg.exe ADD HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System /v ConsentPromptBehaviorUser /t REG_DWORD /d 0 /f
reg.exe ADD HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System /v ConsentPromptBehaviorAdmin /t REG_DWORD /d 0 /f

REM install choco

BASH get screen resolution width and height Linux

#!/bin/bash
#get screen resolution
res="$(xrandr|grep '*'|head -n 1|awk '{print $1}')"

#get width and height

IR Serial Port Reader Arduino

#!/bin/bash

screen /dev/ttyUSB0 115200 & sleep .5; 
killall screen;
clear

Windows VBScript that acts like sudo runas admin

#sudo for windows (not really) //Opens new Window//
#put the following in a file called sudo.cmd
@echo Set objShell = CreateObject("Shell.Application") > %temp%\sudo.tmp.vbs
@echo args = Right("%*", (Len("%*") - Len("%1"))) >> %temp%\sudo.tmp.vbs
@echo objShell.ShellExecute "%1", args, "", "runas" >> %temp%\sudo.tmp.vbs

Extracting resource files from Binary files

#Extracting resource files from Binary files - executables
sudo aptitude install icoutils
mkdir output

#list all resources in file

Windows CMD disable UAC Prompt

#disabling UAC all together requires a reboot
#But, you can disable the prompts without rebooting or loging out
#We do this by changing registry values

#disable UAC Prompt

Windows CMD change user's password

#set Administrator's password to 1234
net user administrator 1234