Skip to content

Instantly share code, notes, and snippets.

View sigmavirus24's full-sized avatar
🌴
Taking a break from F/OSS indefinitely

Ian Stapleton Cordasco sigmavirus24

🌴
Taking a break from F/OSS indefinitely
View GitHub Profile
@181192
181192 / increase_root_fedora.md
Last active May 6, 2024 07:07
How to increase the root partition size on Fedora

How to increase the root partition size on Fedora

Boot up with an Fedora Live USB stick.

  1. Run vgs to check if there's any space:
$ sudo vgs
  VG     #PV #LV #SN Attr   VSize    VFree
  fedora   1   3   0 wz--n- <237.28g    0 
@Integralist
Integralist / Go Guru.md
Last active June 28, 2022 12:05
[Go Guru and Vim-Go] #go #golang #guru #interfaces #vim #vim-go

Go Guru

See official doc: Using Go Guru

go get golang.org/x/tools/cmd/guru
guru -help

Guru command line usage:

@nathanchere
nathanchere / install-polybar-ex.sh
Last active September 8, 2020 10:11
Build Polybar on Fedora-ish systems
#!/usr/bin/env bash
# Builds Polybar on Fedora-based systems
# Tested on Fedora 25, Fedora 26 and Korora 25, untested on others
# To get started:
#
# wget -O- https://gist.githubusercontent.com/nathanchere/22491daf4f917b100a35e5c284a5fec5/raw/install-polybar-ex.sh | bash
sudo dnf install -y cmake @development-tools gcc-c++ i3-ipc jsoncpp-devel alsa-lib-devel wireless-tools-devel libmpdclient-devel libcurl-devel cairo-devel xcb-proto xcb-util-devel xcb-util-wm-devel xcb-util-image-devel

Keybase proof

I hereby claim:

  • I am sigmavirus24 on github.
  • I am sigmavirus24 (https://keybase.io/sigmavirus24) on keybase.
  • I have a public key whose fingerprint is 0161 BB7E B208 B5E0 4FDC 9F81 D9DA 0A04 9113 F853

To claim this, I am signing this object:

@Apsu
Apsu / fix-veths.sh
Last active February 1, 2018 21:29
Find and fix veth pairs that aren't connected to LXC containers anymore
#!/usr/bin/env bash
# Create associative arrays
declare -A interior=()
declare -A exterior=()
# Make sure ethtool is installed on this host
apt-get install -y ethtool
# For each container
global_environment_variables:
- "VAR=things"
diff --git a/requirements.txt b/requirements.txt
index c1545a9..e8e0a9d 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -8,7 +8,7 @@ pexpect>=3.1,<=3.3
requests>=1.1,<=2.6.0
cloudlib>=0.4.0
wsgiref==0.1.2
-pip==1.5.6
-wheel==0.24.0
@steveklabnik
steveklabnik / wc.rs
Created March 23, 2015 21:50
a little wc-like in rust
#![feature(collections)]
use std::io::prelude::*;
use std::fs::File;
use std::io::BufReader;
fn main() {
let args: Vec<String> = std::env::args().collect();
let filename = args[1].clone();
@Apsu
Apsu / .tmux.conf
Created January 27, 2015 17:54
vi{,m} environment config files
# Prefix and cycle
set-option -g prefix C-\\
bind C-\ last-window
# Reload config
bind r source-file ~/.tmux.conf
# Mouse mode
set -g mode-mouse on
set -g mouse-resize-pane on
@zaccone
zaccone / adfs-client.py
Created October 20, 2014 07:57
adfs cli
#!/usr/bin/env python
import requests
from keystoneclient.contrib.auth.v3 import saml2
from keystoneclient import session
# project id you want to scope to
VALID_PROJECT_ID = 'your_project_id'