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
branch_name=`git branch --show-current` | |
date_now=`date +%Y%m%d-%H%M` | |
diff_file=/tmp/$branch_name-$date_now.diff | |
echo "Saving to $diff_file" | |
git diff master $branch_name > $diff_file | |
git checkout master | |
git push origin $branch_name --delete | |
git branch -M $branch_name fuckings | |
git checkout -b $branch_name | |
git apply $diff_file |
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 zamuro on github. | |
* I am zamuro (https://keybase.io/zamuro) on keybase. | |
* I have a public key ASBR7pHj_R-P_GSxsO2VLxeV23Ris33u-DciF_xsI0Eg_go | |
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
package main | |
import ( | |
"fmt" | |
"strconv" | |
) | |
func calculate (inpt string) { | |
a, _ := strconv.ParseFloat(inpt, 64) | |
if (a < 15 && a >= 10) { |
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/ruby | |
## PLACE THIS ON $HOME/bin (or wherever your $PATH executables are) and set appropiate permissions | |
require 'net/http' | |
require 'json' | |
def chuck | |
url = URI('https://api.chucknorris.io/jokes/random') | |
request = Net::HTTP.get(url) | |
response = JSON.parse(request) | |
response['value'] |
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
[global_config] | |
suppress_multiple_term_dialog = True | |
[keybindings] | |
[profiles] | |
[[default]] | |
audible_bell = True | |
background_darkness = 0.95 | |
background_type = transparent | |
cursor_color = "#aaaaaa" | |
font = JetBrains Mono Medium 12 |
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
[core] | |
repositoryformatversion = 0 | |
filemode = true | |
bare = false | |
logallrefupdates = true | |
[remote "origin"] | |
url = git@github.com:[user or organization of your fork]/consul.git | |
fetch = +refs/heads/*:refs/remotes/origin/* | |
[branch "master"] | |
remote = origin |
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 zamuro on github. | |
* I am zamuro (https://keybase.io/zamuro) on keybase. | |
* I have a public key ASDpFj5GKqSQC1H9vPJc_Sx-W4OIb74j2XwwZy1xYS4BKwo | |
To claim this, I am signing this object: |