I hereby claim:
- I am gesquive on github.
- I am gesquivel (https://keybase.io/gesquivel) on keybase.
- I have a public key ASB9AOb3ILKZj7j51Ya6YNtREiujK6jd3qlBW4H3wur5Qgo
To claim this, I am signing this object:
#!/usr/bin/env python3 | |
# get_keypress.py | |
import sys | |
import os | |
def main(): | |
try: | |
print("press ctrl+c to exit") |
I hereby claim:
To claim this, I am signing this object:
// run a command using the shell; no need to split args | |
// from https://stackoverflow.com/questions/6182369/exec-a-shell-command-in-go | |
func runcmd(cmd string, shell bool) []byte { | |
if shell { | |
out, err := exec.Command("bash", "-c", cmd).Output() | |
if err != nil { | |
log.Fatal(err) | |
panic("some error found") | |
} | |
return out |
package main | |
import ( | |
"fmt" | |
"github.com/spf13/cobra" | |
"github.com/spf13/viper" | |
) | |
func main() { |
"configurations": [ | |
{ | |
"name": "Python: Server", | |
"type": "python", | |
"request": "launch", | |
"envFile": "${workspaceFolder}/.env", | |
"program": "${workspaceFolder}/server.py" | |
}, | |
{ | |
"name": "Python: run file", |
#!/bin/sh | |
# original src: https://unix.stackexchange.com/a/2146/17806 | |
# usage: authkeys-report <authorized_keys-file> | |
set -ue | |
tmp="$(mktemp -t fingerprint-authkeys.XXXXXXXX)" | |
trap 'rm -f "$tmp"' 0 |
{ | |
"version": "0.2.0", | |
"configurations": [ | |
{ | |
"name": "Golang: App", | |
"type": "go", | |
"request": "launch", | |
"mode": "debug", | |
"program": "${workspaceFolder}", | |
"args": [ |
# zero.zsh-theme | |
# forked from af-magic | |
# https://github.com/andyfleming/oh-my-zsh/blob/master/themes/af-magic.zsh-theme | |
# color vars | |
eval sys_color='$FG[240]' | |
eval dirty_color='$FG[214]' | |
eval virt_color='$FG[023]' | |
eval git_color='$FG[064]' | |
eval prompt_color='$FG[032]' |