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 | |
//Language file for Russian | |
// Login Widget related | |
define(AFF_WIDGET_TITLE, 'Affiliate Login'); | |
define(AFF_WIDGET_LOGGED_IN_AS, 'You are logged in as:'); | |
define(AFF_WIDGET_ACCESS_DASHBOARD, 'Access the Affiliate Dashboard'); | |
// General | |
define(AFF_G_DATE, 'Дата'); |
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
// Create an instance of our cache and set some keys. Notice that the [new] operator | |
// is optional since the SimpleCache (and revealing module pattern) doesn't use | |
// prototypical inheritance. And, we can use method-chaining to set the cache keys. | |
var cache = SimpleCache() | |
.set( "foo", "Bar" ) | |
.set( "hello", "world" ) | |
.set( "beep", "boop" ) | |
; | |
console.log( cache.has( "beep" ) ); |
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
#!/bin/bash | |
cd /opt/bitnami | |
sudo ./ctlscript.sh stop | |
sudo cp -f apache-tomcat/webapps/jenkins.war apps/jenkins/jenkins.war.bak | |
sudo wget http://mirrors.jenkins-ci.org/war/latest/jenkins.war | |
sudo mv jenkins.war apache-tomcat/webapps/ | |
sudo rm -rf apache-tomcat/work/Catalina/localhost | |
sudo rm -rf apache-tomcat/webapps/jenkins | |
sudo ./ctlscript.sh start |
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
Собаки в группе | |
//div[@id='gedit_users_members']//div[@class='gedit_user'][div/a/img[@src='/images/deactivated_100.png']]/div[3]/a[2] |
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
{ | |
"name": "my-lambda-function", | |
"config": { | |
"funcName": "bot-gatecrasher-gen_person_process_instruction", | |
"zip": "../../../build/dist/gen_person_process_instruction.zip", | |
"restapiid": "your-rest-api-id" | |
}, | |
"scripts": { | |
"//1": "---------------------- UTILITIES -----------------------------------------", | |
"dumpconf": "env | grep npm_ | sort | uniq", |
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
{ | |
"config": { | |
"docker": { | |
"reg": "XXXXXXXXXXXX.dkr.ecr.eu-west-1.amazonaws.com", | |
"ns": "mynamespace" | |
} | |
}, | |
"scripts": { | |
"//0": "______________________ UTILITIES _______________________________________", | |
"dumpconf": "env | grep npm_ | sort | uniq", |
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
#!/bin/sh | |
if [ -d "./.openshift/plugins/" ]; then | |
webroot=$(pwd) | |
# folder plugins | |
for i in $(find $webroot/.openshift/plugins/ -maxdepth 1 -mindepth 1 -type d) | |
do | |
f=$(basename $i) |
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
# A tmux-256color based TERMINFO that adds the escape sequences for italic. | |
# | |
# Install: | |
# | |
# tic tmux-256color-italic.terminfo | |
# | |
# Usage: | |
# | |
# export TERM=tmux-256color-italic | |
# |
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
#! /usr/bin/env nix-shell | |
#! nix-shell -i bash -p bash parted cryptsetup btrfs-progs | |
# Steps for this script are taken from this article: | |
# https://dzone.com/articles/nixos-native-flake-deployment-with-luks-and-lvm | |
set -euo pipefail | |
read -p "enter the name of the storage device to partition (e.g. /dev/nvme0n1): " -r | |
drive=$REPLY |
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
#!/usr/bin/env bash | |
set -e | |
# Replace with your kubeconfig | |
export KUBECONFIG=/home/alex/.kube/develop-config.yaml | |
# export KUBECONFIG=/home/alex/.kube/production-config.yaml | |
# Define whitelisted namespaces (empty array means process all except blacklisted) | |
WHITELIST=() |