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 | |
# Check if project name is provided as an argument | |
if [ -z "$1" ]; then | |
echo "Error: No project name provided." | |
echo "Usage: ./setup_new_tallstack_project.sh project_name" | |
exit 1 | |
fi | |
# Variables |
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 | |
$countries = array( | |
array('name' => 'Afghanistan'), | |
array('name' => 'Albania'), | |
array('name' => 'Algeria'), | |
array('name' => 'American Samoa'), | |
array('name' => 'Andorra'), | |
array('name' => 'Angola'), | |
array('name' => 'Anguilla'), |
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 | |
# | |
# Cantos 7 quick webserver installation | |
# Installes rsync, vim, nginx, php-fpm mredis, git and php | |
# Default Webserver Directory: /home/webserver | |
# NOTE: script disables SeLinux | |
# | |
######## CONFIG ########## | |
router="index.php" |
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
trap '' 2;WW=$(tput cols);HH=$(tput lines); for h in $(seq 1 $HH); do sleep 0.1; for w in $(seq 1 $WW); do printf "\xf0\x9f\x92\xa9 "; sleep 0.1; done; printf "\xF0\x9F\x98\x81 "; done;trap 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
#!/bin/bash | |
# | |
# Server Status Script | |
# Version 1 | |
CPUTIME=$(ps -eo pcpu | awk 'NR>1' | awk '{tot=tot+$1} END {print tot}') | |
CPUCORES=$(cat /proc/cpuinfo | grep -c processor) | |
UP=$(echo `uptime` | awk '{ print $3 " " $4 }') | |
echo " | |
System Status |
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 | |
$string = "სატესტო string"; | |
//echo preg_replace('/[^\p{Georgian}]\d/u', '', $string); // Leaves the Numbers | |
echo preg_replace('/[^\p{Georgian}]/u', '', $string); | |
// output: | |
// სატესტო |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<title>Page Title</title> | |
<meta name="description" content=""> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> |
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 | |
/** | |
* ngfw | |
* --- | |
* copyright (c) 2015, Nick Gejadze | |
* | |
* Permission is hereby granted, free of charge, to any person obtaining a copy | |
* of this software and associated documentation files (the "Software"), | |
* to deal in the Software without restriction, including without limitation |
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
var isInIFrame = (window.location != window.parent.location) ? true : false; | |
if(isInIFrame){ | |
window.parent.location.href = window.location.href; | |
} |
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 class="col-sm-12"> | |
<?php | |
$this->canonical = \NG\Uri::baseUrl() . \NG\Registry::get('requestedLanguage') . "/people/" . $this->person['id'] ."/". urlencode($this->person['name']); | |
?> | |
<div class="well well-sm movieSocialButtons"> | |
<ul class="pull-left"> | |
<li><a href="#" data-url="<?php echo $this->canonical; ?>" class="gplusShare"><span class="micon-google-plus"></span> +1</a></li> | |
<li class="text-muted"> / </li> | |
<?php if (isset($this->person['profile_path']) and !empty($this->person['profile_path'])): ?> | |
<li><a href="#" data-url="<?php echo $this->canonical; ?>" data-media="<?php echo $this->profileOriginalImage . $this->person['profile_path']; ?>" data-description="<?php if(isset($this->person['name'])): echo $this->person['name']; endif;?>" class="pinitShare"> <span class="micon-pinterest"></span> Pinit</a></li> |
NewerOlder