GitHub’s search supports a variety of different operations. Here’s a quick cheat sheet for some of the common searches.
For more information, visit our search help section.
| #!/bin/bash | |
| podman run \ | |
| -it \ | |
| --privileged \ | |
| --rm \ | |
| --name metasploit \ | |
| docker.io/metasploitframework/metasploit-framework:6.4.0 \ | |
| bash -c "./msfconsole -r docker/msfconsole.rc" |
| :: This bat file can be used to renew Resharper C# and Resharper C++ every time it runs out | |
| :: It most likely works for all Jetbrains tools, however, I did not test this. | |
| :: I was not able to find the original author for the reg key and the folders that needs to be deleted so if that is you feel free to reach out for credit | |
| @echo off | |
| setlocal enableDelayedExpansion | |
| :confirm | |
| echo Did you stop all Jetbrains services? | |
| echo Jetbrains toolbox AND any other tool using it such as Rider, Visual Studio, ... |
| import os | |
| from playwright.sync_api import sync_playwright | |
| def setup_authentication(): | |
| with sync_playwright() as playwright: | |
| browser = playwright.firefox.launch(headless=False, slow_mo=500) | |
| context = browser.new_context() | |
| page = context.new_page() |
| // Implementation of Result<Result,Error> type a la Rust. | |
| // author: Ugo Varetto | |
| // License: Zero-clause BSD | |
| // SPDX identifier: 0BSD | |
| #include "result.h" | |
| //----------------------------------------------------------------------------- | |
| Result<int, std::string> Foo(int i) { | |
| if (i == 0) { | |
| return Err(std::string("Error")); | |
| } else { |
| # Prompt the user for input | |
| $choice = Read-Host "Enter 1 to enable DEP and ASLR, 2 to disable DEP and ASLR" | |
| if ($choice -eq "1") { | |
| # Enable DEP and ASLR | |
| Set-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management" -Name "MoveImages" -Value 1 | |
| bcdedit.exe /set {current} nx AlwaysOn | |
| Write-Host "DEP and ASLR have been enabled." | |
| } | |
| elseif ($choice -eq "2") { |
| AccessModifierOffset: -2 | |
| AlignAfterOpenBracket: BlockIndent # New in v14. For earlier clang-format versions, use AlwaysBreak instead. | |
| AlignConsecutiveMacros: false | |
| AlignConsecutiveAssignments: false | |
| AlignConsecutiveDeclarations: false | |
| AlignEscapedNewlines: DontAlign | |
| AlignOperands: false | |
| AlignTrailingComments: false | |
| AllowAllArgumentsOnNextLine: false | |
| AllowAllConstructorInitializersOnNextLine: false |
| set-executionpolicy -scope CurrentUser -executionPolicy Bypass -Force | |
| If (-NOT ([Security.Principal.WindowsPrincipal] [Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole]::Administrator)) | |
| { | |
| # Relaunch as an elevated process: | |
| Start-Process powershell.exe "-File",('"{0}"' -f $MyInvocation.MyCommand.Path) -Verb RunAs | |
| exit | |
| } | |
| $ProgressPreference = 'SilentlyContinue' |
| Checks: "bugprone-*,clang-diagnostic-*,clang-analyzer-*,modernize-*,performance-*,readability-*" | |
| WarningsAsErrors: "" | |
| HeaderFilterRegex: "" | |
| CheckOptions: | |
| - key: readability-identifier-naming.PrivateMemberSuffix | |
| value: "_" |
| (In both Windows) | |
| 1. Go to C:\Users\{USER}\AppData\Roaming\AnyDesk | |
| 2. Copy & Paste 'thumbnails' | |
| 3. Open 'user.conf' | |
| 4. Replace the line 'ad.roster.items=' | |
| 5. Done. |
GitHub’s search supports a variety of different operations. Here’s a quick cheat sheet for some of the common searches.
For more information, visit our search help section.