Skip to content

Instantly share code, notes, and snippets.

View ruden's full-sized avatar
:octocat:
Working from home

Valeriy Rudenko ruden

:octocat:
Working from home
View GitHub Profile
@ruden
ruden / web-auth-nodeny.sh
Created May 18, 2016 06:24
Web authorization for Nodeny billing system
#!/bin/sh
HOST="your host"
USERNAME="your login"
PASSWORD="your password"
URL="https://$HOST/cgi-bin/stat.pl"
ses()
{
echo `wget --no-check-certificate -qO- $URL | grep -Eo -e '[0-9]{5,7}'`
@ruden
ruden / phpv
Last active December 8, 2016 08:15
My switch php versions
#!/bin/bash
array_contains () {
local array="$1[@]"
local seeking=$2
local in=1
for element in "${!array}"; do
if [[ $element == $seeking ]]; then
in=0
break
<?php
/*
osCommerce, Open Source E-Commerce Solutions
http://www.oscommerce.com
Copyright (c) 2016 osCommerce
Released under the GNU General Public License
*/
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
#!/usr/bin/env bash
if [ -z "$1" ]
then
echo "Please supply a subdomain to create a certificate for";
echo "e.g. mysite.localhost"
exit;
fi
# Create a new private key if one doesnt exist, or use the xeisting one if it does
#!/bin/bash
DIR_BASE=$(pwd)
BRANCH=$(git rev-parse --symbolic-full-name --abbrev-ref HEAD)
CURRENT_COMMIT=$(git log --pretty=format:'%h' -n 1)
NEW_FILES=$(git diff --name-only --diff-filter=A master origin/$BRANCH)
CHANGED_FILES=$(git diff --name-only --diff-filter=M master origin/$BRANCH)
sudo rm -rf ~/.config/bcompare
sudo sed -i "s/keexjEP3t4Mue23hrnuPtY4TdcsqNiJL-5174TsUdLmJSIXKfG2NGPwBL6vnRPddT7tH29qpkneX63DO9ECSPE9rzY1zhThHERg8lHM9IBFT+rVuiY823aQJuqzxCKIE1bcDqM4wgW01FH6oCBP1G4ub01xmb4BGSUG6ZrjxWHJyNLyIlGvOhoY2HAYzEtzYGwxFZn2JZ66o4RONkXjX0DF9EzsdUef3UAS+JQ+fCYReLawdjEe6tXCv88GKaaPKWxCeaUL9PejICQgRQOLGOZtZQkLgAelrOtehxz5ANOOqCaJgy2mJLQVLM5SJ9Dli909c5ybvEhVmIC0dc9dWH+/N9KmiLVlKMU7RJqnE+WXEEPI1SgglmfmLc1yVH7dqBb9ehOoKG9UE+HAE1YvH1XX2XVGeEqYUY-Tsk7YBTz0WpSpoYyPgx6Iki5KLtQ5G-aKP9eysnkuOAkrvHU8bLbGtZteGwJarev03PhfCioJL4OSqsmQGEvDbHFEbNl1qJtdwEriR+VNZts9vNNLk7UGfeNwIiqpxjk4Mn09nmSd8FhM4ifvcaIbNCRoMPGl6KU12iseSe+w+1kFsLhX+OhQM8WXcWV10cGqBzQE9OqOLUcg9n0krrR3KrohstS9smTwEx9olyLYppvC0p5i7dAx2deWvM1ZxKNs0BvcXGukR+/g" /usr/lib/beyondcompare/BCompare
add license
--- BEGIN LICENSE KEY ---
GXN1eh9FbDiX1ACdd7XKMV7hL7x0ClBJLUJ-zFfKofjaj2yxE53xauIfkqZ8FoLpcZ0Ux6McTyNmODDSvSIHLYhg1QkTxjCeSCk6ARz0ABJcnUmd3dZYJNWFyJun14rmGByRnVPL49QH+Rs0kjRGKCB-cb8IT4Gf0Ue9WMQ1A6t31MO9jmjoYUeoUmbeAQSofvuK8GN1rLRv7WXfUJ0uyvYlG