Skip to content

Instantly share code, notes, and snippets.

Avatar
💭
Writing if statements. Then, else.

Clemente Cuevas cuevasclemente

💭
Writing if statements. Then, else.
  • Erudite AI
  • Montreal, QC
View GitHub Profile
@josh-padnick
josh-padnick / fish-agent.sh
Last active Nov 6, 2021
Run ssh-agent via fish shell
View fish-agent.sh
#!/bin/bash
#
# Convert ssh-agent output to fish shell
#
eval "$(ssh-agent)" >/dev/null
echo "set SSH_AUTH_SOCK \"$SSH_AUTH_SOCK\"; export SSH_AUTH_SOCK"
echo "set SSH_AGENT_PID \"$SSH_AGENT_PID\"; export SSH_AGENT_PID"
@dotike
dotike / try_or_die.sh
Last active Nov 6, 2021
3 finger claw technique for POSIX shell programming. Three one-line functions which greatly enhance shell programming, enabling reliable UNIX-style programming in an extremely concise fashion.
View try_or_die.sh
#!/bin/sh
##############################################################################
# This code known is distributed under the following terms:
#
# Copyright (c) 2013 Isaac (.ike) Levy <ike@blackskyresearch.net>.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
@DenverDias
DenverDias / AddRepositoryToPacmanForYaourt
Created Sep 18, 2013
This snippet adds the repository to pacman that contains yaourt...
View AddRepositoryToPacmanForYaourt
[archlinuxfr]
SigLevel = Never
Server = http://repo.archlinux.fr/$arch