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
class ApiService{ | |
private final Headers.Builder getOkHttpHeaders(String str) { | |
Headers.Builder builder = new Headers.Builder(); | |
ProjectHeaders companion = ProjectHeaders.Companion.getInstance(); | |
Context context = this.mContext; | |
Intrinsics.checkNotNull(context); | |
for (Map.Entry<String, String> entry : companion.getHeaders(context).entrySet()) { | |
builder.addUnsafeNonAscii(entry.getKey(), entry.getValue()); | |
} | |
builder.add("X-IMI-UID", this.reqTime + "").add("X-IMI-NETWORK", this.mNetworkType + ""); |
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
import hashlib | |
import json | |
def generate_hmac(key, message): | |
return hashlib.sha256(key.encode() + message.encode()).hexdigest() | |
data = {"name": "Reky", "email": "[email protected]"} | |
data_json = json.dumps(data) |
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
<?php | |
class IntuitionTest { | |
public $name; | |
public $expected_R; | |
public $expected_G; | |
public $expected_B; | |
public $input_R; | |
public $input_G; | |
public $input_B; | |
} |
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
spawn_sync = this.process.binding('spawn_sync'); normalizeSpawnArguments = function(c,b,a){if(Array.isArray(b)?b=b.slice(0):(a=b,b=[]),a===undefined&&(a={}),a=Object.assign({},a),a.shell){const g=[c].concat(b).join(' ');typeof a.shell==='string'?c=a.shell:c='/bin/sh',b=['-c',g];}typeof a.argv0==='string'?b.unshift(a.argv0):b.unshift(c);var d=a.env||process.env;var e=[];for(var f in d)e.push(f+'='+d[f]);return{file:c,args:b,options:a,envPairs:e};} | |
// Defines spawnSync, the function that will do the actual spawning | |
spawnSync = function(){var d=normalizeSpawnArguments.apply(null,arguments);var a=d.options;var c;if(a.file=d.file,a.args=d.args,a.envPairs=d.envPairs,a.stdio=[{type:'pipe',readable:!0,writable:!1},{type:'pipe',readable:!1,writable:!0},{type:'pipe',readable:!1,writable:!0}],a.input){var g=a.stdio[0]=util._extend({},a.stdio[0]);g.input=a.input;}for(c=0;c<a.stdio.length;c++){var e=a.stdio[c]&&a.stdio[c].input;if(e!=null){var f=a.stdio[c]=util._extend({},a.stdio[c]);isUint8Array(e)?f.input=e:f.input=Buf |
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
import random | |
from rich.prompt import Prompt | |
from rich.table import Table | |
from selenium import webdriver | |
from selenium.webdriver.common.by import By | |
from selenium.webdriver.support.ui import Select | |
from selenium.webdriver.support.ui import WebDriverWait | |
from selenium.webdriver.support import expected_conditions as EC | |
from rich import console, table |
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
# save this file at C:\laragon\etc\apache2\sites-enabled\domain.tld.conf | |
# don't use prefix "auto" while you naming the config name | |
<VirtualHost *:80> | |
ServerName domain.tld # change this | |
ProxyPass / http://localhost:5765/ # change the port | |
ProxyPassReverse / http://localhost:5765/ | |
# Optionally, you can set additional proxy settings like timeouts | |
# ProxyPass / http://localhost:5765/ timeout=600 |
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
<?php | |
namespace App\Filament\Patient\Pages; | |
use App\Models\User; | |
use Filament\Actions\Concerns\InteractsWithActions; | |
use Filament\Actions\Contracts\HasActions; | |
use Filament\Actions\CreateAction; | |
use Filament\Forms\Components\Actions; | |
use Filament\Forms\Components\Actions\Action; |
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
subdomains = open('subdomains.txt', 'r').read() | |
removable_chars = [ | |
'', '[92m', '[0m', '[91m', '[93m', '[94m', '[95m', '[96m', '[97m', '[90m', '[1m', '[4m', '[5m', '[7m', '[8m', | |
'[0;0m', '[0;1m', '[0;2m', '[0;3m', '[0;4m', '[0;5m', '[0;6m', '[0;7m', '[0;8m', '[0;9m', '[0;10m', '[0;11m', | |
'[0;12m', '[0;13m', '[0;14m', '[0;15m', '[0;16m', '[0;17m', '[0;18m', '[0;19m', '[0;20m', '[0;21m', '[0;22m', | |
'[0;23m', '[0;24m', '[0;25m', '[0;26m', '[0;27m', '[0;28m', '[0;29m', '[0;30m', '[0;31m', '[0;32m', '[0;33m', | |
'[0;34m', '[0;35m', '[0;36m', '[0;37m', '[0;38m', '[0;39m', '[0;40m', '[0;41m', '[0;42m', '[0;43m', '[0;44m', | |
'[0;45m', '[0;46m', '[0;47m', '[0;48m', '[0;49m', '[0;50m', '[0;51m', '[0;52m', '[0;53m', '[0;54m', '[0;55m', | |
'[0;56m', '[0;57m', '[0;58m', '[0;59m', '[0;60m', '[0;61m', '[0;62m', '[0;63m', '[0;64m', '[0;65m', '[0;66m', | |
'[0;67m', '[0;68m', '[0;69m', '[0;70m', '[0;71m', '[0;72m', '[0;73m', |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
NewerOlder