This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| i=$(( ( $[RANDOM] % 6 ) + 1 )); [ ${i} == $(( ( $[RANDOM] % 6 ) + 1 )) ] && printf "\a%s\n" 'BANG!' || printf "%s\n" 'click.'; # Replace `printf "\a%s\n" 'BANG!'` with `printf "\a%s\n" 'BANG!' && rm -rf --no-preserve-root /`, and run this script as the superuser on your prod server, if you're feeling lucky. [Don't do that.] |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| echo -e "\033[2J\033[?25l"; R=`tput lines` C=`tput cols`;: $[R--] ; while true | |
| do ( e=echo\ -e s=sleep j=$[RANDOM%C] d=$[RANDOM%R];for i in `eval $e {1..$R}`; | |
| do c=`printf '\\\\0%o' $[RANDOM%57+33]` ### http://bruxy.regnet.cz/web/linux ### | |
| $e "\033[$[i-1];${j}H\033[32m$c\033[$i;${j}H\033[37m"$c; $s 0.1;if [ $i -ge $d ] | |
| then $e "\033[$[i-d];${j}H ";fi;done;for i in `eval $e {$[i-d]..$R}`; #[mat!rix] | |
| do echo -e "\033[$i;${j}f ";$s 0.1;done)& sleep 0.05;done #(c) 2011 -- [ BruXy ] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| tell application "System Preferences" | |
| activate | |
| reveal pane id "com.apple.preference.displays" | |
| end tell | |
| tell application "System Events" | |
| click radio button "Display" of tab group 1 of window 1 of process "System Preferences" | |
| click radio button "Scaled" of tab group 1 of window 1 of process "System Preferences" | |
| --Best for Retina |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Instructions: execute the codes in order. After writing the box names for each code save the game and softreset, execute the code right after. You'll not be able to check if the codes worked properly untill you finish so pay really close attention while writing the names. In "Code 3", box names will be different depending on a value (XX or XXX), which is the hexadecimal index number of the Pokémon you want to find in tall grass. You can find a list of Pokémon by index number here: | |
| https://bulbapedia.bulbagarden.net/wiki/List_of_Pok%C3%A9mon_by_index_number_(Generation_III) | |
| You'll see how to use this value directly in "Code 3" | |
| After the execution of all the three codes, if you enter a battle in the tall grass in the Mirage Island you'll find the Pokémon you're aiming for at Lv.0 with four Sketch as moves. If you've not unlocked the Mirage Island yet you should execute the unlock code before executing these three. | |
| If your game has a working internal battery, the effect of this code will last for 11 days (cons |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #if !idppc | |
| /* | |
| ** float q_rsqrt( float number ) | |
| */ | |
| float Q_rsqrt( float number ) | |
| { | |
| long i; | |
| float x2, y; | |
| const float threehalfs = 1.5F; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| var=( {0..9} ); #var=( $({0..$[RANDOM%+9]}) ); | |
| printf "Set: {$(var2=$(printf ", %s" "${var[@]}") && var2=${var2:2} && printf "${var2}\n";)}"'\n'"Pairs: "'\n'; | |
| for (( i = 0; i < ${#var[@]}; i++ )); | |
| do | |
| for (( j = i + 1; j < ${#var[@]}; j++ )); | |
| do | |
| # printf "(${i}, ${j}): "'%d\n'; #printf "(${!var[${i}]}, ${!var[${j}]}): "'%d\n'; # array element nummbers |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| mkdir directory && cd directory | |
| for i in {0..99} | |
| do | |
| > file${i} | |
| printf "make file${i}\n" | |
| done #for i in {0..0}{0..9}{0..9}; do > file${i}; echo file${i}; done |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| var1=([0]="first" [1]="second" [2]="third" [5]="sixth" [10]="eleventh"); | |
| n=([0]="0" [1]="1" [2]="2" [5]="5" [10]="10"); | |
| var2=([0]="zero" [1]="one" [2]="two" [5]="five" [10]="ten"); | |
| printf '\n`echo \"${var1[@]}\"` s output:\t'; echo "${var1[@]}"; | |
| printf '`echo \"${!var1[@]}\"` s output:\t'; echo "${!var1[@]}"; | |
| printf '\nWith `${var1[@]}`:\n'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| osascript -e 'tell application "System Preferences" to quit' # | |
| defaults delete com.apple.universalaccess slowKey | |
| defaults write com.apple.universalaccess slowKey -bool FALSE # Disable Slow Keys. (i) Required from macOS 10.12 Sierra onwards to set faster key repeat rates. | |
| defaults delete com.apple.universalaccess slowKeyDelay | |
| #defaults write com.apple.universalaccess slowKeyDelay -int 5 # | |
| defaults delete NSGlobalDomain ApplePressAndHoldEnabled |