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
alias gst='git status' | |
alias gco='git checkout' | |
alias ga='git add' | |
alias gd='git diff' | |
alias gc='git commit' | |
alias gp='git push' | |
alias gl='git pull' | |
alias gs='git stash' | |
# make these commands work predictably in all environments |
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
# https://www.ivankrizsan.se/2021/05/16/ansible-and-multipass-virtual-machines/ | |
all: | |
hosts: | |
multipassvm1: | |
ansible_connection: ssh | |
ansible_user: ubuntu | |
ansible_host: <ip of multipass vm> | |
ansible_ssh_common_args: "-o StrictHostKeyChecking=no -o ControlMaster=no -o ControlPath=none" | |
ansible_private_key: /var/snap/multipass/common/data/multipassd/ssh-keys/id_rsa | |
# or copy your public ssh key to vm and use: |
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
export DEBIAN_FRONTEND=noninteractive | |
apt-get update -y | |
apt-get install -y acl sudo software-properties-common python-is-python3 | |
apt-add-repository -y ppa:ansible/ansible | |
apt-get install -y ansible |
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
# If not running interactively, don't do anything | |
[[ $- != *i* ]] && return | |
export TERM="xterm-256color" | |
fpath+=~/.zsh/pure | |
autoload -U promptinit; promptinit | |
autoload -U compinit; compinit | |
prompt pure |
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
[user] | |
name = "Tabrez Iqbal" | |
email = "tabrez@mailbox.org" | |
[color] | |
ui = true | |
[color "branch"] | |
current = green bold | |
local = yellow bold | |
remote = green bold |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
const { GraphQLServer } = require('graphql-yoga'); | |
const server = new GraphQLServer({ typeDefs, resolvers }); | |
server.start(() => console.log('Server is running...')); | |
// run integration tests | |
// how to stop the server? |