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: admin-user | |
| namespace: kube-system | |
| --- | |
| # Create ClusterRoleBinding | |
| apiVersion: rbac.authorization.k8s.io/v1 | |
| kind: ClusterRoleBinding | |
| metadata: |
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
| package main | |
| import ( | |
| "container/list" | |
| "fmt" | |
| ) | |
| type FirstUnique struct { | |
| nums []int | |
| m map[int]*list.Element |
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
| {"messages":[{"message_id":46,"text":"#javascript #fetch #rest https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API/Using_Fetch/","entities":[{"offset":0,"length":11,"type":"hashtag"},{"offset":12,"length":6,"type":"hashtag"},{"offset":19,"length":5,"type":"hashtag"},{"offset":25,"length":71,"type":"url"}]},{"message_id":44,"text":"#gist #telegram #bot https://api.github.com/gists/634e8f12e2f7069cbb71ac4fd5aa4472","entities":[{"offset":0,"length":5,"type":"hashtag"},{"offset":6,"length":9,"type":"hashtag"},{"offset":16,"length":4,"type":"hashtag"},{"offset":21,"length":61,"type":"url"}]},{"message_id":47,"text":"#shell Kill all PID kill $(ps aux | grep '[p]ython csp_build.py' | awk '{print $2}')","entities":[{"offset":0,"length":6,"type":"hashtag"}]},{"message_id":48,"text":"#hack #proxy #proxies https://api.proxyscrape.com/?request=getproxies\u0026proxytype=http\u0026timeout=10000\u0026country=all\u0026ssl=all\u0026anonymity=all","entities":[{"offset":0,"length":5,"type":"hashtag"},{"offset":6,"length" |
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
| // for multiple requests | |
| let isRefreshing = false; | |
| let failedQueue = []; | |
| const processQueue = (error, token = null) => { | |
| failedQueue.forEach(prom => { | |
| if (error) { | |
| prom.reject(error); | |
| } else { | |
| prom.resolve(token); |
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
| version: '3.3' | |
| services: | |
| wp: | |
| image: wordpress:latest | |
| ports: | |
| - "8000:80" | |
| volumes: | |
| - ./config/php.conf.ini:/usr/local/etc/php/conf.d/conf.ini | |
| - ./wp-app:/var/www/html | |
| env_file: ./containers/wp/.env |
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
| # 1. Clear retry set | |
| Sidekiq::RetrySet.new.clear | |
| # 2. Clear scheduled jobs | |
| Sidekiq::ScheduledSet.new.clear | |
| # 3. Clear 'Processed' and 'Failed' jobs |
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
| !ruby/regexp '/\A([a-zA-Z0-9][\w\.\+\-]*)@([\w.\-]+\.+[\w]{2,})\z/' |
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
| { | |
| "Resources": { | |
| "WebServer": { | |
| "Type": "AWS::EC2::Instance", | |
| "Properties": { | |
| "InstanceType": { | |
| "Ref": "InstanceType" | |
| }, | |
| "ImageId": { | |
| "Fn::FindInMap": [ |
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
| { | |
| "Resources": { | |
| "VPC": { | |
| "Type": "AWS::EC2::VPC", | |
| "Properties": { | |
| "EnableDnsSupport": "true", | |
| "EnableDnsHostnames": "true", | |
| "CidrBlock": "10.0.0.0/16" | |
| }, | |
| "Metadata": { |
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
| { | |
| "AWSTemplateFormatVersion": "2010-09-09", | |
| "Metadata": { | |
| "AWS::CloudFormation::Designer": { | |
| "7b463913-5e19-4c74-898a-2220105ccd41": { | |
| "size": { | |
| "width": 60, | |
| "height": 60 | |
| }, | |
| "position": { |