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 | |
date_default_timezone_set('America/Detroit'); | |
//include autoloader to make sure all files are included | |
include '../autoloader.inc.php'; | |
usergrid_autoload('Apigee\\Usergrid\\Client'); | |
//initialize the SDK | |
$client = new Apigee\Usergrid\Client('crainsdetroit','cdbapp'); | |
//Need to login before doing anything for the sake of permissions | |
$client->login("USERNAME","PASSWORD"); |
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
# Backup | |
docker exec CONTAINER /usr/bin/mysqldump -u root --password=root DATABASE > backup.sql | |
# Restore | |
cat backup.sql | docker exec -i CONTAINER /usr/bin/mysql -u root --password=root DATABASE | |
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
apiVersion: apps/v1beta1 | |
kind: Deployment | |
metadata: | |
name: redis | |
spec: | |
template: | |
metadata: | |
labels: | |
app: redis | |
tier: backend |
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 | |
# https://gist.github.com/949831 | |
# http://blog.carbonfive.com/2011/05/04/automated-ad-hoc-builds-using-xcode-4/ | |
# command line OTA distribution references and examples | |
# http://nachbaur.com/blog/how-to-automate-your-iphone-app-builds-with-hudson | |
# http://nachbaur.com/blog/building-ios-apps-for-over-the-air-adhoc-distribution | |
# http://blog.octo.com/en/automating-over-the-air-deployment-for-iphone/ | |
# http://www.neat.io/posts/2010/10/27/automated-ota-ios-app-distribution.html |
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
package jenkins.automation.utils | |
import java.util.Map | |
class CheckmarxUtils { | |
/** | |
* Reusable block to add Checkmarx scanning to a project |
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/sh | |
# | |
# /etc/init.d/elasticsearch -- startup script for Elasticsearch | |
# | |
# Written by Miquel van Smoorenburg <miquels@cistron.nl>. | |
# Modified for Debian GNU/Linux by Ian Murdock <imurdock@gnu.ai.mit.edu>. | |
# Modified for Tomcat by Stefan Gybas <sgybas@debian.org>. | |
# Modified for Tomcat6 by Thierry Carrez <thierry.carrez@ubuntu.com>. | |
# Additional improvements by Jason Brittain <jason.brittain@mulesoft.com>. | |
# Modified by Nicolas Huray for Elasticsearch <nicolas.huray@gmail.com>. |
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/sh | |
# | |
# /etc/init.d/elasticsearch -- startup script for Elasticsearch | |
# | |
# Written by Miquel van Smoorenburg <miquels@cistron.nl>. | |
# Modified for Debian GNU/Linux by Ian Murdock <imurdock@gnu.ai.mit.edu>. | |
# Modified for Tomcat by Stefan Gybas <sgybas@debian.org>. | |
# Modified for Tomcat6 by Thierry Carrez <thierry.carrez@ubuntu.com>. | |
# Additional improvements by Jason Brittain <jason.brittain@mulesoft.com>. | |
# Modified by Nicolas Huray for Elasticsearch <nicolas.huray@gmail.com>. |
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/sh | |
# | |
# /etc/init.d/elasticsearch -- startup script for Elasticsearch | |
# | |
# Written by Miquel van Smoorenburg <miquels@cistron.nl>. | |
# Modified for Debian GNU/Linux by Ian Murdock <imurdock@gnu.ai.mit.edu>. | |
# Modified for Tomcat by Stefan Gybas <sgybas@debian.org>. | |
# Modified for Tomcat6 by Thierry Carrez <thierry.carrez@ubuntu.com>. | |
# Additional improvements by Jason Brittain <jason.brittain@mulesoft.com>. | |
# Modified by Nicolas Huray for Elasticsearch <nicolas.huray@gmail.com>. |
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
def check_palindrom(word): | |
list_of_words = [] | |
for i in word : | |
list_of_words.append(i) | |
print("list_of_words",list_of_words) | |
list_of_words.reverse() | |
reversed_list_word = list_of_words | |
print ("reverse is ",reversed_list_word) | |
list_of_words.reverse() | |
print ("list of words",list_of_words) |
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
kubectl get nodes --sort-by=".status.conditions[?(@.reason == 'KubeletReady' )].lastTransitionTime" |
OlderNewer