App-Cheats

 view release on metacpan or  search on metacpan

cheats.txt  view on Meta::CPAN

    document.querySelector("#blanket").className = "overlay";
}
function unblur () {
    document.querySelector("#blanket").className = "";
}
.overlay{
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: 10;
  background-color: rgba(0,0,0,0.5); /*dim the background*/
}


#############################################################
## CSS - Box
#############################################################

# Create an empty (check) box using CSS
h1::before {
    border: 2px solid black;

cheats.txt  view on Meta::CPAN

  align-items: center;
}


#############################################################
## CSS - Force
#############################################################

# Force a style even though there is a longer (more specific one) (CSS Style)
#details .failed_validation {
  background-color: #ff5050 !important;
}


#############################################################
## CSS - Grid
#############################################################

# Avoid having to always set the grid-template-columns by using (HTML,section)
grid-auto-rows: min-content;

cheats.txt  view on Meta::CPAN

    height:   100%;
  }
}


#############################################################
## CSS - Progress Bar
#############################################################

# Create a progress bar in HTML (css)
background: linear-gradient(90deg, rgb(40, 135, 20) 59%, rgb(129, 199, 132) 0);


#############################################################
## CSS - Readonly
#############################################################

# Readonly checkboxes (HTML)
# Use the attribute "disabled" to make a checkbox readonly
# Both "readonly" and "disabled" work with other elements like "select".
# Note: "readonly" form elements make show up when serialized.

cheats.txt  view on Meta::CPAN

# Default is 0.
.child {
	z-index: 20;
}


#############################################################
## CSS - Text Input
#############################################################

# Overwrite the Chrome placeholder background color (CSS Style)
# Color after choosing a past selected value.
#details input:-webkit-autofill {
    -webkit-box-shadow: 0 0 0px 1000px #ddd inset;
}


#############################################################
## CSS - Transform
#############################################################

cheats.txt  view on Meta::CPAN


#############################################################
## CSS - Variables
#############################################################

# Use a variable inside CSS styling
html, body {
  --accent-color: #ae0000;
}
#main > span {
  background: var(--accent-color);
}


#############################################################
## CSS - Wrap
#############################################################

# Make an element (like div) wrap the text when too long
.wordwrap {
   white-space: pre-wrap;      /* CSS3. Chrome*/

cheats.txt  view on Meta::CPAN


# Kill the ui when things aren't working
ps -ef | grep ui

# See all users on the bench
ps -elf | grep ui

# Show which processes were started by the current user
ps -elf | grep $USER

# Kill unigraph process if it is running in the background
ps -elf | grep unigraph | perl -anle '`skill -KILL $F[3]`'

# Be more specific in process selection (ps) options
ps -o user,ucmd --no-heading -C ui

# Currently running process (use in a script such as getinfo.sh)
ps -elf | grep getinfo.sh | grep -v grep | grep -v $$

# Check if puppet is running on all the benches
run_on_all_benches.pl 'ps -elf | grep puppet | grep -v grep'

cheats.txt  view on Meta::CPAN


# Modify only select lines
echo "$a" | sed '/abc/  {s/here/NOT here/}'
echo "$a" | sed '/abc/! {s/here/NOT here/}'


#############################################################
## Linux Commands - set
#############################################################

# See what running running in the background of a linux script
set -x 		# Enable trace
set +x 		# Disable trace (default)

# Comparison of set and shopt in Bash
# set   -> $SHELLOPTS (Added: 2017-11-27 08:52:25 AM)
# shopt -> $BASHOPTS

# View manpage for bash builtin commands.
help set

cheats.txt  view on Meta::CPAN

SIGPWR         -        Term    Power failure (System V)
SIGQUIT      P1990      Core    Quit from keyboard
SIGSEGV      P1990      Core    Invalid memory reference
SIGSTKFLT      -        Term    Stack fault on coprocessor (unused)
SIGSTOP      P1990      Stop    Stop process
SIGTSTP      P1990      Stop    Stop typed at terminal
SIGSYS       P2001      Core    Bad system call (SVr4);
                                see also seccomp(2)
SIGTERM      P1990      Term    Termination signal
SIGTRAP      P2001      Core    Trace/breakpoint trap
SIGTTIN      P1990      Stop    Terminal input for background process
SIGTTOU      P1990      Stop    Terminal output for background process
SIGUNUSED      -        Core    Synonymous with SIGSYS
SIGURG       P2001      Ign     Urgent condition on socket (4.2BSD)
SIGUSR1      P1990      Term    User-defined signal 1
SIGUSR2      P1990      Term    User-defined signal 2
SIGVTALRM    P2001      Term    Virtual alarm clock (4.2BSD)
SIGXCPU      P2001      Core    CPU time limit exceeded (4.2BSD);
                                see setrlimit(2)
SIGXFSZ      P2001      Core    File size limit exceeded (4.2BSD);
                                see setrlimit(2)
SIGWINCH       -        Ign     Window resize signal (4.3BSD, Sun)

cheats.txt  view on Meta::CPAN

#		});
#	}

# JQuery Tooltip CSS
#/* ------------------- Tooltip ------------------------- */
#.ui-tooltip {
#    padding: 				10px 20px;
#    border-radius: 			20px;
#    font: 					bold 14px"Helvetica Neue", Sans-Serif;
#    box-shadow: 			0 0 7px black;
#    background-color: 		white;
#    width: 					fit-content;
#    position:				absolute;
#}
#
#/* Prevent seeing content appended to the body */
#.ui-helper-hidden-accessible {
#    display:				none;
#}
#
#.table .cell.clicked_tooltip {

cheats.txt  view on Meta::CPAN

# Menu(bar) example using -menuitems (PTk)
perl -MTk -le '$w=MainWindow->new; $m=$w->Menu; $w->configure(-menu => $m); %h=map{$_ => $m->cascade(-label => "~$_", -menuitems => [[checkbutton => "MY_CHECK"],[command => "MY_CMD", -command => sub{print "exit"}, -accelerator => "Ctrl-o"],[radiobutt...

# Simple Menu(bar) example using -menuitems (PTk)
perl -MTk -le '$w=MainWindow->new; $m=$w->Menu; $w->configure(-menu => $m); $m->cascade(-label => "~File", -menuitems => [[command => "new", -accelerator => "Ctrl-n"],"",[command => "Open", -accelerator => "Ctrl-o"]]); MainLoop'

# Simple 2 Menu(bar) example using -menuitems (PTk)
perl -MTk -le '$w=MainWindow->new; $m=$w->Menu; $w->configure(-menu => $m); $m->cascade(-label => "~File", -menuitems => [[cascade => "new", -accelerator => "Ctrl-n", -menuitems => [map [command => $_],qw/PNG JPEG TIFF/], -tearoff => 0],"",[command =...

# Color changing menu(bar) (PTk)
perl -MTk -le '$color="$red"; $w=MainWindow->new; $mi=[[cascade => "~Edit", -menuitems => [[cascade => "~Background", -menuitems => [map [radiobutton => $_, -variable => \$color, -command => [sub{my $c=shift; $w->configure(-background => $c); print "...

# Very primitive notebook (poor man's notebook) (PTk)
perl -MTk -le '$w=MainWindow->new; ($top,$bot)=map{$w->Frame->pack} 1..2; @b=map { $top->Button(-text => "B$_", -command => [sub{print shift}, $_])->pack(-side => "left") } 1..3; @f=map{$bot->Frame} 1..3; $f[0]->pack; $f[0]->Label(-text => "L1")->pac...

# Wait until variable is changes. Other button can still be pressed though. (PTk)
perl -MTk -le '$w=MainWindow->new; $w->Entry(-width => 20, -textvariable => \$t)->pack; $w->Button(-text => "PRINT", -command => sub{print "ABC"})->pack; $w->Button(-text => "PAUSE", -command => sub{$w->waitVariable(\$t); print "DONE"})->pack; MainLo...

# Simple composite Mega-Widget based on a Toplevel (PTk)
perl -MTk -le '{package Tk::My; use base "Tk::Toplevel"; Construct Tk::Widget "My" } $w=MainWindow->new; $w->My; MainLoop'

cheats.txt  view on Meta::CPAN


# Add the "Open command window here" option back to windows 10 commamd prompt (registry,DOS)
# when doing right click.
#
# Go to the regestry
Win + r
type: regedit
#
# For these paths:
Computer\HKEY_CLASSES_ROOT\Directory\shell\cmd
Computer\HKEY_CLASSES_ROOT\Directory\background\shell\cmd
#
# Update permissions:
	- Right-click the PowerShell (folder) key, and click Permissions.
	- Click the Advanced button.
	- On "Advanced Security Settings," click the Change link next to "Owner".
	- Type your account name in the provided field, click Check Names to verify
		you're typing the account name correctly, and click OK.
	- Check the Replace owner on subcontainers and objects option.
	- Click Apply.
	- Click OK.



( run in 1.435 second using v1.01-cache-2.11-cpan-f56aa216473 )