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
import asyncio | |
loop = asyncio.get_event_loop() | |
async def hello(): | |
await asyncio.sleep(3) | |
print('Hello!') | |
if __name__ == '__main__': | |
loop.run_until_complete(hello()) | |
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
pulp_default_admin_password: password | |
pulp_install_source: pip | |
pulp_settings: | |
secret_key: secret | |
content_origin: "https://{{ inventory_hostname }}" | |
x_pulp_api_host: 127.0.0.1 | |
x_pulp_api_port: 24817 | |
x_pulp_api_user: "admin" | |
x_pulp_api_password: "{{ pulp_default_admin_password }}" | |
x_pulp_api_prefix: "pulp_ansible/galaxy/automation-hub/api" |
This section is a boiled down version of everything above. It should serve as an easy reference. These steps assume you've identified and installed the correct JDK.
- Locate the jar file: Extender > Extensions > Select extension > Details.
bapps\
directory is located atC:\Users\yourusername\AppData\Roaming\BurpSuite\bapps
- Backup the original jar file to a different folder, outside of bapps.
- Change extension from .jar to .zip, extract contents, delete .zip file
- Make your modifications
- Re-jar:
jar cvf yourJarName.jar -C extractedContentsDirectory/ .
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
Sometimes you try to open a remote desktop connection to a machine only to get an error message that "the password has expired". | |
If the remote machine does not enforce NLA (Network Level Authentication), it is still possible to start a remote desktop session by disabling NLA on the client (currenlty not possible from the menu on my remote desktop client v.6.3.96000 that came with windows 8.1). | |
Add the following setting to your .rdp file ("C:\Users\<User>\Documents\Default.rdp" if you aren't using a specific one). | |
enablecredsspsupport:i:0 | |
Optionally you might need to specify |
- SC1000 $ is not used specially and should therefore be escaped.
- SC1001 This
\o
will be a regular 'o' in this context. - SC1003 Want to escape a single quote? echo 'This is how it'\''s done'.
- SC1004 This backslash+linefeed is literal. Break outside single quotes if you just want to break the line.
- SC1007 Remove space after = if trying to assign a value (or for empty string, use var='' ... ).
- SC1008 This shebang was unrecognized. ShellCheck only supports sh/bash/dash/ksh. Add a 'shell' directive to specify.
- SC1009 The mentioned parser error was in ...
- SC1010 Use semicolo
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
function Get-OUPermissions{ | |
<# | |
.SYNOPSIS | |
FindOuPermissions is a Windows PowerShell script that finds all of the different OUs in a domain, | |
determins the permissions assigned to different users and groups, and reports back which are different | |
from their parent; including what those permissions are. | |
This script does require that the device be joined to the domain being queried and RSAT is installed. |
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
$socket = new-object System.Net.Sockets.TcpClient('127.0.0.1', 413); | |
if($socket -eq $null){exit 1} | |
$stream = $socket.GetStream(); | |
$writer = new-object System.IO.StreamWriter($stream); | |
$buffer = new-object System.Byte[] 1024; | |
$encoding = new-object System.Text.AsciiEncoding; | |
do | |
{ | |
$writer.Flush(); | |
$read = $null; |
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
# the following two lines give a two-line status, with the current window highlighted | |
hardstatus alwayslastline | |
hardstatus string '%{= kG}[%{G}%H%? %1`%?%{g}][%= %{= kw}%-w%{+b yk} %n*%t%?(%u)%? %{-}%+w %=%{g}][%{B}%m/%d %{W}%C%A%{g}]' | |
# huge scrollback buffer | |
defscrollback 5000 | |
# no welcome message | |
startup_message off |