The set
lines
- These lines deliberately cause your script to fail. Wait, what? Believe me, this is a good thing.
- With these settings, certain common errors will cause the script to immediately fail, explicitly and loudly. Otherwise, you can get hidden bugs that are discovered only when they blow up in production.
set -euxo pipefail
is short for:
set -e
set -u
#Script to extract to data from google cache This is a simple python script which retrieves content like your blog posts from googles cache, you can use this if your servers hard drive crashes or if a meteor hits your data center.
Remove the time.sleep
code if you don't have more than 50 pages to retrieve.
##Original Source
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/env python | |
# -*- coding: utf-8 -*- | |
import mwclient | |
from mwclient import Site | |
def save_snips(agent, site, path): | |
""" | |
http://snpedia.com/index.php/Bulk | |
https://mwclient.readthedocs.io/en/latest/user/page-ops.html | |
gets all snips from snpedia |
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
(ns scrape | |
(:require [babashka.pods :as pods] | |
[clojure.walk :as walk])) | |
(pods/load-pod 'retrogradeorbit/bootleg "0.1.9") | |
(require '[babashka.curl :as curl]) | |
(def pubmed-html (:body (curl/get "https://ftp.ncbi.nlm.nih.gov/pubmed/baseline/"))) |
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
(ns scottdw.feip.core | |
(:import [java.awt Image] | |
[java.awt.image BufferedImage] | |
[org.imgscalr Scalr] | |
[org.jtransforms.fft DoubleFFT_2D RealFFTUtils_2D]) | |
(:require [mikera.image.core :as img] | |
[mikera.image.colours :as ic] | |
[clojure.core.matrix :as mat])) | |
(defn gen-p-img [] |
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 | |
# ------------------------------------------------------------------------------------------------- | |
# Author: Thomas Pintaric <[email protected]> | |
# Version: 1.0.0 | |
# SPDX-License-Identifier: 0BSD | |
# ------------------------------------------------------------------------------------------------- | |
# USAGE: ./derive_cardano_wallet_keys.sh [flags] args | |
# flags: | |
# -r,--recovery_phrase: text file containing your wallet's recovery phrase (default: 'recovery-phrase.txt') | |
# -n,--[no]new_mnemonic: generate new 24-word mnemonic (default: false) |
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 React, { useState } from 'react'; | |
import { useModel } from 'umi'; | |
import { Avatar, Button, Col, Modal, Row, Statistic } from 'antd'; | |
import Loader from '../../utils/loader'; | |
import type Paginate from '@/interfaces/Paginate'; | |
import type { WalletError } from '@/components/WalletConnect/WalletErrors'; |
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
#!comment: This is a list of the top 100,000 most frequently-used English words | |
#!comment: according to Wiktionary. | |
#!comment: | |
#!comment: It was compiled in August 2005 and coalesced into a handy list for | |
#!comment: use in John the Ripper. | |
#!comment: | |
#!comment: | |
#!comment: Pull date: Sun Jan 15 22:03:54 2012 GMT | |
#!comment: | |
#!comment: Sources: |
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
====== | |
Videos | |
====== | |
DevOps | |
What is DevOps? by Rackspace - Really great introduction to DevOps | |
https://www.youtube.com/watch?v=_I94-tJlovg | |
Sanjeev Sharma series on DevOps (great repetition to really get the DevOps concept) |