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/python | |
| """ | |
| Download a specific folder from a github repo: | |
| gitget.py https://github.com/divs1210/kilvish/tree/master/examples/bricksnball | |
| """ | |
| __author__ = 'Divyansh Prakash' | |
| import sys | |
| import subprocess |
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
| wget --no-check-certificate --content-disposition https://github.com/joyent/node/tarball/v0.7.1 | |
| # --no-check-cerftificate was necessary for me to have wget not puke about https | |
| curl -LJO https://github.com/joyent/node/tarball/v0.7.1 |
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
| import subprocess | |
| import sys | |
| # pip install PyYAML | |
| import yaml | |
| def lint_keys(data, keys): | |
| """Recursively lint the given data. | |
| """ |
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
| function onOpen() { | |
| var ui = DocumentApp.getUi(); | |
| ui.createMenu('Convert to .RST') | |
| .addItem('Convert to .RST and email me the result', 'ConvertToRestructuredText') | |
| .addToUi(); | |
| } | |
| // Adopted from https://github.com/mangini/gdocs2md by Renato Mangini | |
| // License: Apache License Version 2.0 | |
| String.prototype.repeat = String.prototype.repeat || function(num) { |
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 | |
| # | |
| # Hook script to check the changed files with php lint | |
| # Called by "git commit" with no arguments. | |
| # | |
| # To enable this hook, rename this file to "pre-commit". | |
| if git rev-parse --verify HEAD >/dev/null 2>&1 | |
| then | |
| against=HEAD |
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
| pipeline: | |
| linkcheck: | |
| image: testthedocs/ttd-linkcheck | |
| commands: su-exec ttd /usr/local/bin/linkcheck -c '200,301,302' -t 5 docs | |
| vale: | |
| image: testthedocs/ttd-vale | |
| commands: su-exec ttd vale --config='/srv' docs |
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
| { | |
| "scripts": { | |
| "eslint": "LIST=`git diff-index --name-only HEAD | grep .*\\.js | grep -v json`; if [ \"$LIST\" ]; then eslint $LIST; fi" | |
| }, | |
| "devDependencies": { | |
| "pre-commit": "0.0.7", | |
| "eslint": "~0.5.1" | |
| }, | |
| "pre-commit": [ | |
| "eslint" |
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 | |
| define('DRUPAL_ROOT', __DIR__); | |
| include_once(DRUPAL_ROOT . '/includes/bootstrap.inc'); | |
| drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL); | |
| $nids = db_query('SELECT DISTINCT(nid) FROM {node}') | |
| ->fetchCol(); | |
| $nodes = node_load_multiple($nids); |
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 | |
| # | |
| # Changes the wallpaper hourly and displays a projection of the earth with | |
| # a semi-realistic rendered sunglight mapping. | |
| # | |
| # This script will download hourly the "World Sunlight Map" by die.net. | |
| # You can choose the world_sunlight_wallpaper.jpg picture as background image for your Desktop. | |
| # Gnome recognizes file changes and updates the background accordingly. | |
| # | |
| # See: |
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 | |
| # based on https://gist.github.com/ipedrazas/9c622404fb41f2343a0db85b3821275d | |
| # delete all evicted pods from all namespaces | |
| kubectl get pods --all-namespaces | grep Evicted | awk '{print $2 " --namespace=" $1}' | xargs kubectl delete pod | |
| # delete all containers in ImagePullBackOff state from all namespaces | |
| kubectl get pods --all-namespaces | grep 'ImagePullBackOff' | awk '{print $2 " --namespace=" $1}' | xargs kubectl delete pod | |
| # delete all containers in ImagePullBackOff or ErrImagePull or Evicted state from all namespaces |