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
#!/usr/bin/env python3 | |
import hmac | |
import hashlib | |
import base64 | |
import argparse | |
# Values that are required to calculate the signature. These values should | |
# never change. | |
DATE = "11111111" |
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
- hosts: localhost | |
vars: | |
kube_resource_configmaps: | |
test: "{{ lookup('template', 'test.configmap.yml') | from_yaml }}" | |
tasks: | |
- name: create configmaps | |
k8s: |
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
### Keybase proof | |
I hereby claim: | |
* I am hipyhop on github. | |
* I am hipyhop (https://keybase.io/hipyhop) on keybase. | |
* I have a public key ASCLx0RK9BTtfxMtCXxZ1WnVHybz5rFwfyzoxX8PRtOziQo | |
To claim this, I am signing this object: |
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
# Utilities for quickly accessing frequently used directories in zsh/bash. | |
# Usage: | |
# $ cd /path/to/project/src/ | |
# $ mark code # Will create a new shortcut. | |
# # Becomes interactive if a shortcut already exists | |
# # m is an alias for mark. You can also `m code` | |
# | |
# $ code # From now on, running this anywhere in the shell | |
# # will put you in /path/to/project/src/code |
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
use warnings; | |
use strict; | |
use Storable; | |
sub random_sequence { | |
my @nuc = ( 'A' , 'T' , 'C' , 'G' ); | |
my $DNA; | |
$DNA .= $nuc[rand @nuc] for 1..50; | |
return $DNA; |
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
use warnings; | |
use strict; | |
multiplyArray( [1,2,3], [4,5,6]); | |
sub multiplyArray{ | |
#my $a = shift; | |
#my $b = shift; | |
my ($a, $b) = @_; |
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
print "$_\n" for map { $_ % 3 == 0 ? $_ % 5 == 0 ? "FizzBuzz" : "Fizz" : $_ % 5 == 0 ? "Buzz" : $_ } (1..100); |