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
| from instascrape import * | |
| #import instascrape | |
| headers = { | |
| "user-agent": "Mozilla/5.0 (Linux; Android 6.0; Nexus 5 Build/MRA58N) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Mobile Safari/537.36 Edg/87.0.664.57", | |
| "cookie":"sessionid=1573657342%3ACjfOyxQ2XdWAOx%3A0" | |
| } | |
| hashtag = Hashtag("https://www.instagram.com/explore/tags/abujarestaurant") | |
| hashtag.scrape(headers=headers) |
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
| apk add gettext #install gettext | |
| echo $KUBE_TOKEN | base64 -d > ./kube_token | |
| echo $KUBE_CA | base64 -d > ./kube_ca | |
| kubectl config set-cluster $CLUSTER_NAME --server=$SERVER_URL --certificate-authority="$(pwd)/kube_ca" | |
| kubectl config set-credentials $K8S_SA --token="$(cat ./kube_token)" | |
| kubectl config set-context $K8S_SA --namespace=$NAMESPACE --cluster=$CLUSTER_NAME --user=$K8S_SA | |
| kubectl config use-context $K8S_SA | |
| #deploy image to AWS ECR | |
| docker build -t ${BITBUCKET_REPO_OWNER}/${REPO_NAME} . |
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
| apiVersion: v1 | |
| kind: ServiceAccount | |
| metadata: | |
| name: fluentd | |
| namespace: amazon-cloudwatch | |
| --- | |
| apiVersion: rbac.authorization.k8s.io/v1 | |
| kind: ClusterRole | |
| metadata: | |
| name: fluentd-role |
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
| apiVersion: apps/v1 | |
| kind: Deployment | |
| metadata: | |
| name: mpos | |
| labels: | |
| apps: mpos | |
| spec: | |
| replicas: 1 | |
| selector: | |
| matchLabels: |
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
| find . -name "*.png" | xargs rm | |
| #https://shapeshed.com/unix-xargs/ |
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
| alias tell_proj="cd /var/www/html/tellvictor" |
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
| <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.0/jquery.min.js"></script> |
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
| #date-created span{ | |
| position:absolute; | |
| top:160px; | |
| font-size: .75em; | |
| width: 76%; | |
| padding: 2em 1.5em 1em; | |
| background-image: linear-gradient(to bottom,rgba(255,255,255,0),rgba(0,0,0,.75)); | |
| color: #fff; | |
| font-style: italic; | |
| font-weight: 300; |
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 | |
| /** | |
| * implements hook_schema() | |
| */ | |
| function cribs_schema() | |
| { | |
| $schema['cribs'] = array( | |
| 'description' => 'table holding account id of users', |