Skip to content

Instantly share code, notes, and snippets.

@sebsto
sebsto / gist:6af5bf3acaf25c00dd938c3bbe722cc1
Last active February 27, 2024 14:01
Start VNCServer on Mac1 EC2 Instance
# YouTube (english) : https://www.youtube.com/watch?v=FtU2_bBfSgM
# YouTube (french) : https://www.youtube.com/watch?v=VjnaVBnERDU
#
# On your laptop, connect to the Mac instance with SSH (similar to Linux instances)
#
ssh -i <your private key.pem> ec2-user@<your public ip address>
#
# On the Mac
@ryjones
ryjones / headunit.md
Last active April 17, 2024 17:03
Honda info

How to do things with a 2018 Honda CR-V headunit.

This is written out of my frustration with a lot of wrong info on YouTube and the like.

Model:

  • MY16ADA

Rooted using root-honda.

Android Version:

@9bic
9bic / cloud-config.yaml
Created January 6, 2018 17:22
gcloud and gsutil for Google Container Optimized OS
#cloud-config
users:
- name: cloudservice
groups: docker
uid: 2000
write_files:
- path: /home/cloudservice/currentdir/gcloud-sdk-setup
permissions: '0644'
@devStepsize
devStepsize / slack_webhook_post.py
Last active August 7, 2023 09:28
POST a JSON payload to a Slack Incoming Webhook using Python requests
'''
This is an example of how to send data to Slack webhooks in Python with the
requests module.
Detailed documentation of Slack Incoming Webhooks:
https://api.slack.com/incoming-webhooks
'''
import json
import requests
@simeji
simeji / descrive_ec2_instances.go
Last active May 29, 2023 20:09
Get EC2 instance list filtered by NameTag
package main
import (
"fmt"
"github.com/awslabs/aws-sdk-go/aws"
"github.com/awslabs/aws-sdk-go/aws/credentials"
"github.com/awslabs/aws-sdk-go/service/ec2"
)
func main() {
@nickloewen
nickloewen / bret_victor-reading_list.md
Last active March 7, 2024 18:14
Bret Victor’s Reading List

This is a plain-text version of Bret Victor’s reading list. It was requested by hf on Hacker News.


Highly recommended things!

This is my five-star list. These are my favorite things in all the world.

A few of these works have had an extraordinary effect on my life or way of thinking. They get a sixth star. ★

@nstielau
nstielau / packer_fedora_bounty.md
Last active December 26, 2015 05:49
Packer for Fedora Vagrant box

WANTED: Automated Fedora Vagrant Box Creation

Deliverables

  • Public Github Repo with Packer VirtualBox templates for Fedora 19, 20
  • Script capable of creating box, testing, and uploading to S3 on success (to be run via CI)
  • Bare-bones Vagrantfile example

Box Requirements

@joemiller
joemiller / pantheon-check-ping-endpionts.rb
Created June 18, 2013 15:56
a meta-check for sensu that creates many other checks
#!/usr/bin/env ruby
#
# this is a special meta-check. It runs ping checks against all hosts in
# the /endpoints API and sends individual results directly to sensu-client via
# the udp/3030 client socket. this is different from the normal sensu check model
# where individual scripts run and their exit status and output is used to create
# a single event.
#
# the reason for this check is to be able to dynamically ping a list of hosts
# without the race conditions and timing issues involved with creating individual
#!/usr/bin/env python2
#
# Find and replace tracker urls in a Deluge torrents.state
import os
import sys
import platform
import shutil
import cPickle
@jespada
jespada / sensu-riemann
Created December 17, 2012 14:02
sensu + riemann
* Sensu
- As a nagios replacement basically, plus the extra goodies tha sensu has itself
(mutators, events filters , handlers, API, etc).
* Riemann
- When state tracking is needed, cause of the powerful stream processing language,
I'm planning to aggregate events from client agents running on riak nodes,
erlang queue size grow, cassandra, others, to track trends and report
on events, the idea is to report posible problems before they became critical.