Skip to content

Instantly share code, notes, and snippets.

View juliosueiras's full-sized avatar

Julio Sueiras juliosueiras

View GitHub Profile
@juliosueiras
juliosueiras / run-nix.sh
Created October 16, 2022 00:55
running nix inside segfault server
apt install nix -y
cd /sec/root
mkdir -p /sec/root/nix-store
wget https://github.com/nixos/nixpkgs/archive/master.tar.gz
tar zxvf master.tar.gz
rm master.tar.gz
# is blocking cache.nixos.org for some reason
cat <<EOF > /etc/resolv.conf
search us-east-2.compute.internal
nameserver 8.8.8.8
@juliosueiras
juliosueiras / hosts.txt
Last active February 25, 2022 01:21
allowed-hosts
s.youtube.com
www.play-asia.com
play-asia.com
@juliosueiras
juliosueiras / debug.output
Created June 18, 2020 16:55
TerraformIssueBreakImportDebugOutput
2020/06/18 12:53:30 [INFO] Terraform version: 0.13.0 beta2
2020/06/18 12:53:30 [INFO] Go runtime version: go1.14.2
2020/06/18 12:53:30 [INFO] CLI args: []string{"/nix/store/65gd0bdmmfwsxk083fznvrlj32wnq04v-terraform/bin/terraform", "import", "-no-color", "-allow-missing-config", "github_repository.terraform", "terraform"}
2020/06/18 12:53:30 [DEBUG] Attempting to open CLI config file: /home/vagrant/.terraformrc
2020/06/18 12:53:30 [DEBUG] File doesn't exist, but doesn't need to. Ignoring.
2020/06/18 12:53:30 [DEBUG] checking for credentials in "/home/vagrant/.terraform.d/plugins"
2020/06/18 12:53:30 [DEBUG] ignoring non-existing provider search directory terraform.d/plugins
2020/06/18 12:53:30 [DEBUG] will search for provider plugins in /home/vagrant/.terraform.d/plugins
2020/06/18 12:53:30 [DEBUG] ignoring non-existing provider search directory /home/vagrant/.local/share/terraform/plugins
2020/06/18 12:53:30 [DEBUG] ignoring non-existing provider search directory /nix/store/7lq77a7vkf8h4hjvlm7kx1k224clgk5w-
@juliosueiras
juliosueiras / .vimrc
Created November 12, 2017 18:37 — forked from josephjoice/.vimrc
set noswapfile
set clipboard=unnamed
set nocompatible " be iMproved, required
filetype off " required
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
Plugin 'VundleVim/Vundle.vim'
Plugin 'scrooloose/nerdtree'
@juliosueiras
juliosueiras / put_volume
Created April 27, 2017 02:43
Enable(Not the perfect solution) audio in Sheridan Mac
#!/bin/bash
if [ ! -z "$1" ]; then
while true; do
osascript -e "set volume output volume $1"
done
else
cat <<HERE
put_volume <volume_amount>
- <volume_amount> 0-100
HERE
@juliosueiras
juliosueiras / .cvimrc
Created August 20, 2015 19:11
My cVimrc
let barposition = "bottom"
let blacklists = ["https://prezi.com/*","http://play.prismata.net/*"]
set autoupdategist
set defaultnewtabpage
let searchengine maps = "https://www.google.com/maps/search/"
let searchengine dictionary = "http://www.thefreedictionary.com/"
let searchengine thesaurus = "http://www.thesaurus.com/browse/"
let searchengine github = "https://github.com/search?utf8=✓&q="
let searchengine pirate = "https://thepiratebay.se/search/"
let searchengine play = "https://play.google.com/music/listen#/sr/"