Skip to content

Instantly share code, notes, and snippets.

# Reinstall SpaceVim along with useful bunch of tools that work well together with SpaceVim.
# This is for Ubuntu 20.04
sudo apt install -y ctags miscfiles python3-dev python3-pip rsync shellcheck software-properties-common wbritish wbritish-huge ruby ruby-dev nodejs gcc g++ make universal-ctags python3-pygments ripgrep
sudo select-default-wordlist
sudo apt-get update
sudo apt-get install -y --reinstall neovim
sudo update-alternatives --install /usr/bin/vi vi /usr/bin/nvim 5
sudo update-alternatives --install /usr/bin/vim vim /usr/bin/nvim 5
@timvisee
timvisee / falsehoods-programming-time-list.md
Last active November 16, 2024 05:10
Falsehoods programmers believe about time, in a single list

Falsehoods programmers believe about time

This is a compiled list of falsehoods programmers tend to believe about working with time.

Don't re-invent a date time library yourself. If you think you understand everything about time, you're probably doing it wrong.

Falsehoods

  • There are always 24 hours in a day.
  • February is always 28 days long.
  • Any 24-hour period will always begin and end in the same day (or week, or month).
@deviantony
deviantony / README.md
Last active September 4, 2024 02:41
Portainer HTTP API by example

DEPRECATION NOTICE

This gist is now deprecated in favor of our official documentation: https://documentation.portainer.io/api/api-examples/ which contains up to date examples!

THE FOLLOWING DOCUMENTATION IS DEPRECATED

Please refer to the link above to get access to our updated API documentation and examples.

@jonathanwilsonucla
jonathanwilsonucla / non-powell_others.html
Last active February 13, 2020 19:24 — forked from z3cka/open-now.html
current_laptop_availability.html
<!DOCTYPE html>
<html>
<head lang="en">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta charset="UTF-8">
<script src="https://code.jquery.com/jquery-1.11.3.js"></script>
<style>
div {
color: white;
<?
/////////////////////
// slack2html
// by @levelsio
/////////////////////
//
/////////////////////
// WHAT DOES THIS DO?
/////////////////////
//
@protrolium
protrolium / youtube-dl.md
Last active December 24, 2023 19:08
youtube-dl syntax

youtube-dl will output in the current directory

To list available formats

youtube-dl --list-formats URL

To download an entire user/channel

youtube-dl -citw ytuser:<USER> or

@gubatron
gubatron / multiple-deploy-keys-multiple-private-repos-github-ssh-config.md
Last active October 12, 2024 22:57
How to configure multiple deploy keys for different private github repositories on the same computer without using ssh-agent

How to configure multiple deploy keys for different private github repositories on the same computer without using ssh-agent

Let's say alice is a github.com user, with 2 or more private repositories repoN. For this example we'll work with just two repositories named repo1 and repo2

https://github.com/alice/repo1

https://github.com/alice/repo2

You need to be to pull from these repositories without entering a passwords probably on a server, or on multiple servers.

@miguelramos
miguelramos / nginx.conf
Last active January 21, 2017 04:40
Nginx Grav
server {
listen 80;
server_name *.grav.dev;
root /home/www/grav.dev;
index index.html index.htm index.php;
charset utf-8;
location /user {
rewrite ^/user/accounts/(.*)$ /error redirect;
@zoni
zoni / iptables
Created November 26, 2013 09:20
Ansible module to manage iptables rules
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Ansible module to manage iptables rules
Written by Nick Groenen <[email protected]>. If you get your hands on a
copy of this code, please feel free to do with it whatever you like.
"""
@z3cka
z3cka / gist:6601887
Last active December 23, 2015 07:39
sample ansible playbook evocation to a vagrant vm
ansible-playbook ~/Development/playbooks/apt-drupal8.yml -u vagrant -s -k