Skip to content

Instantly share code, notes, and snippets.

View antontsv's full-sized avatar

Anton Tsviatkou antontsv

View GitHub Profile
@antontsv
antontsv / homeshick.files
Last active November 12, 2023 06:51
Install .files using homeshick - https://git.io/install.files
#!/usr/bin/env bash
homeshick_home_dir=${HOMESHICK_DIR:-$HOME/.homesick}
homeshick_repos_dir="$homeshick_home_dir/repos"
# In this setup main repo should not contain root /home directory
main_repo_uri="${DOT_FILES_REPO:-https://github.com/antontsv/.files.git}"
main_castle_name="${DOT_FILES_CASTLE_NAME:-main.files}"
main_castle_branch="${DOT_FILES_CASTLE_BRANCH:-master}"
main_castle_ignore_files="${DOT_FILES_IGNORE_FILES:-LICENSE,README.md,/.gitmodules}"
key_file="${DOT_FILES_REPO_PUB_PGP_KEY_FILE}"
@antontsv
antontsv / setup.bash
Last active March 12, 2020 05:32
Setup with homeshick - https://git.io/all.files
#!/usr/bin/env bash
commands=(git)
if [ -n "$URL_SHELL_EXEC" ];then
commands+=("$URL_SHELL_EXEC")
else
commands+=(curl)
fi;
has_commands=1
for cmd in ${commands[@]};do
@antontsv
antontsv / readonly-setup.bash
Last active July 25, 2016 06:19
Readonly setup with homeshick
#!/usr/bin/env bash
[ -f "$HOME/.sh/init_homeshick.extra" ] && rm "$HOME/.sh/init_homeshick.extra"
base_install_gist='https://gist.githubusercontent.com/antontsv/1167f4a1128b505e9ee1740947491580/raw/f868d4ea76262d0a4cd7bf10695eab6e6a10733d/homeshick.files'
# Homeshick & .files
curl "$base_install_gist" | DOT_FILES_REPO="https://github.com/antontsv/.files.git" bash
# ~/bin
curl "$base_install_gist" | DOT_FILES_REPO="https://github.com/antontsv/home.bin.git" DOT_FILES_CASTLE_BRANCH="master" DOT_FILES_CASTLE_NAME="home.bin" bash

Keybase proof

I hereby claim:

  • I am antontsv on github.
  • I am antontsv (https://keybase.io/antontsv) on keybase.
  • I have a public key whose fingerprint is EBCD C302 806F C411 6E04 353A 95FF C5EB EEFD BBB5

To claim this, I am signing this object:

@antontsv
antontsv / homeshick-url-change.sh
Created February 11, 2017 21:37
Change Homeshick repo origin location from SSH to HTTPs
find ~/.homesick -type f -name config | xargs grep git@ | cut -d: -f1 | sort | uniq | xargs gsed -i 's/git@github.com:/https:\/\/github.com\//g'
@antontsv
antontsv / hello_twillio.xml
Last active June 16, 2017 01:45
twillio hello
<?xml version="1.0" encoding="UTF-8"?>
<Response>
<Reject reason="rejected" />
</Response>
@antontsv
antontsv / allmac.files
Created October 1, 2017 03:20
MacOS dotfiles bootstrap
#!/usr/bin/env bash
curl -s -L https://git.io/all.files | PRIVATE_REPO_CLONE_URL=$HOME/repos/private.files PRIVATE_REPO_BRANCH=local-mac bash
@antontsv
antontsv / private.files
Last active October 2, 2017 05:42
Dotfiles setup including private repo
#!/usr/bin/env bash
install_gist_url="https://git.io/all.files"
download_and_exec(){
if [ -n "$URL_SHELL_EXEC" ];then
"$URL_SHELL_EXEC" "$install_gist_url"
else
curl -s -L "$install_gist_url" | bash
fi;
@antontsv
antontsv / all.files.asc
Last active March 12, 2020 05:34
PGP signature for all.files
-----BEGIN PGP SIGNATURE-----
iQJKBAABCgA0FiEE683DAoBvxBFuBDU6lf/F6+79u7UFAl5pyZcWHGEudHN2aWF0
a291QGdtYWlsLmNvbQAKCRCV/8Xr7v27tTieD/9c5DIrHPseAvbu5BmQ1nPrK50C
5H9ufsIM8pLqwM1sLsAfWGp6wmKV4KsrR7Y+SUirGQL/dWLDaWNdAz/My75i7m8t
K6fl+O+rxm/vF8fKbmFP7KH6HjFARToXD15joPJ7+AnVAOIyaeukeFjFzO7zpvkn
72VR+Zooebj3R23gpVr5ggfxg9IKF9ZrM+oWet4Nscsuoqv00Rx2mgD7hT7JOvpw
CxE+cBtk7iDj1kNNRSD1VqwWsolobiPHPbxtIrIQKchITJJocptzxfSzmFDK6AeZ
7YE0qyZILsfhqhX+GgHeTaHkZwscr+ZrmhZ/utup/5RtJMysVRAToa3YSZjmJYQz
Kc73OLvNe4WR3DS2RasOsWiX5xA8ALIG0NDepM/GnPHMh7isXYPUkHhzb39uVXkK
@antontsv
antontsv / install.files.asc
Last active November 12, 2023 06:52
PGP signature for install.files
-----BEGIN PGP SIGNATURE-----
iQIzBAABCgAdFiEE683DAoBvxBFuBDU6lf/F6+79u7UFAmVQc20ACgkQlf/F6+79
u7UhkQ/8C4T9QDB4t3TqdXzzpW0/EcwIIWvJ3kvF5oEQxxzPWvERmbdjQaDeiTJY
+jVAbA/Etmq8Z8HsSTemhL2Uvo9R/dgepG5WemvNvxNO5X21RgPLIxCG2RkmWN/+
l3czD1EvKBwMb+8gwH7EtH28eQ5P7xIagFwSKMDVoNx8nuXa98gQxZOpQHW7Yudy
NOnlOcAOKpy/Qr7jza/R0huqLtt96Lk+Kmupbzo+Rjt02EGvcybPEf1EqGlReTB0
t8YDPIz3oXkvrzxFZoCh//+tbYqJsnVjRpBEvqjqsY0+StMatoKHAhhgZp6PXcBi
XoaJ7scsL5r6Efdlx2XQgCvLyDB9ododosfG2MZp5jm9iJae5chNzcp2ghxoq/Ln
KiTRji/wfsJGun1soj02eSPeiO131hSWgPncUg8yHfF37ibXdiGr6ABjTSEQTt4B