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
#!/usr/bin/env php | |
<?php | |
$syntax = !empty($argv[1]) ? $argv[1] : "\$"; | |
$input = preg_replace("/^<\?php/", "", trim(file_get_contents("php://stdin"))); | |
$defvars = array_keys(get_defined_vars()); | |
$parsed = eval($input); | |
$vars = get_defined_vars(); |
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
from typing import Any, Dict, List, Optional, TypeVar, Union | |
from appium import webdriver | |
class AppiumWebDriver(webdriver.Remote): | |
def __init__( | |
self, | |
session_id: None, | |
command_executor: str = 'http://127.0.0.1:4444/wd/hub', | |
browser_profile: str = None, | |
proxy: str = None, |
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 | |
# /usr/local/bin/conduct | |
pushd . > /dev/null 2>&1 && popd > /dev/null 2>&1 | |
if [ -f .env ] && [ $(grep -U $'\x0D' .env | wc -l ) -gt 0 ]; then | |
echo "ERROR: .env contains CRLF!" | |
echo "Refusing to work." | |
exit 1 |
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 | |
ACTIVATIONURL='dsm://agents.deepsecurity.trendmicro.com:443/' | |
MANAGERURL='https://app.deepsecurity.trendmicro.com:443' | |
CURLOPTIONS='--silent --tlsv1.2' | |
linuxPlatform=''; | |
isRPM=''; | |
if [[ $(/usr/bin/id -u) -ne 0 ]]; then | |
echo You are not running as the root user. Please try again with root privileges.; |
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 | |
APP=<appname> # directory for this appname must exist! | |
APPDIR=/var/www/$APP | |
stop() { | |
if [ -z "$1" ] || [ "$1" == "web" ]; then | |
PUMA_PID=`cat $APPDIR/$APP.pid 2>/dev/null` | |
if [ -n "$PUMA_PID" ]; then |
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
using System; | |
using System.Threading.Tasks; | |
using DPFP.Capture; | |
namespace DPFingerTest | |
{ | |
using System; | |
using System.Threading.Tasks; | |
using DPFP.Capture; |
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
var ScriptQueue = function(){ | |
var $this = this; | |
var cbStack = []; | |
var currentCbIndex = -1; | |
this.cbTimers = {}; | |
this.queue = function(cb){ | |
cbStack.push(cb); | |
return $this; | |
} |
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 | |
class ORM extends CI_Model { | |
var $table_name, $fields; | |
function __construct($subclass = NULL){ | |
parent::__construct(); | |
$this->load->helper('inflector'); | |
} | |
function initialize(){ |