Skip to content

Instantly share code, notes, and snippets.

@smorad
smorad / setup.sh
Last active April 28, 2024 14:34
Cambridge eduroam on Ubuntu Server 20.04 (on a raspberry pi)
# First setup Ubuntu 20.04 on your SD card if you haven't already
# I assume by this point you have the Ubuntu SD card still in your laptop/pc
# We need to copy the cat tool to the SD card
# Download the installer here: https://cat.eduroam.org/
# Add the cat installer to the pi SD card; run these commands on your laptop
mkdir /mnt/rpi
# Find the block device for your SD card. Be careful here -- you can mess up your OS if you choose the wrong device!
lsblk # You should see something like
# mmcblk0 259:0 0 15.4G 0 disk
@aamiaa
aamiaa / CompleteDiscordQuest.md
Last active April 28, 2024 14:33
Complete Recent Discord Quest

Complete Recent Discord Quest

Note

This no longer works in browser!

Note

This no longer works if you're alone in vc! Somebody else has to join you!

How to use this script:

  1. Accept the quest under User Settings -> Gift Inventory
@eloypnd
eloypnd / dnsmasq_setup_osx.md
Last active April 28, 2024 14:32
wildcard DNS record on OS X in localhost development with dnsmasq

wildcard DNS in localhost development

$ brew install dnsmasq
   ...
$ cp /usr/local/opt/dnsmasq/dnsmasq.conf.example /usr/local/etc/dnsmasq.conf
  • edit /usr/local/etc/dnsmasq.conf
address=/local/127.0.0.1
@boaglio
boaglio / atalhos-ij.md
Last active April 28, 2024 14:31
Atalhos do IntelliJ - para quem veio do Eclipse

Atalhos do IntelliJ

Principais

Caiu no IntelliJ agora?

Aprenda só esses:

Tipo de Atalho IntelliJ IDEA
@h3po
h3po / snmp.yml
Last active April 28, 2024 14:30
snmp.yml for monitoring pfsense (BEGEMOT-PF-MIB) with prometheus' snmp_exporter
pfsense:
version: 2
auth:
community: public
walk:
- 1.3.6.1.4.1.12325.1.200.1.1 #SNMPv2-SMI::enterprises::BEGEMOT-PF-MIB::pfStatus
- 1.3.6.1.4.1.12325.1.200.1.2 #SNMPv2-SMI::enterprises::BEGEMOT-PF-MIB::pfCounter
- 1.3.6.1.4.1.12325.1.200.1.3 #SNMPv2-SMI::enterprises::BEGEMOT-PF-MIB::pfStateTable
#not interesting
#- 1.3.6.1.4.1.12325.1.200.1.4 #SNMPv2-SMI::enterprises::BEGEMOT-PF-MIB::pfSrcNodes
@ArcRanges
ArcRanges / gist.md
Last active April 28, 2024 14:30
aws-ec2-nextjs

Instructions to properly set up a production-ready NextJS App with AWS

This is a summary of how to start your own NextJS app, create the repo on Github, upload later in an AWS EC2 Instance and automate the process with AWS Codebuild, CodeDeploy, & CodePipeline.

After following these instructions you should be able to:

  • Create a NextJS App
  • Create an AWS EC2 instance
  • Be able to SSH to an EC2 instance
  • Prepare the instance as a Node environment
  • Configure Nginx service for proper routing
  • Configure domain and add SSL
@noghartt
noghartt / cc.md
Last active April 28, 2024 14:26
Resources to learn more about Computer Science and related stuffs
@Resinchem
Resinchem / virtual_switch_examples.yaml
Last active April 28, 2024 14:26
Example Home Assistant Virtual Switch Examples as shown in YouTube Video
# ==========================================================
# DASHBOARD YAML
# All examples will need to be edited to use your entity
# names and particular installation.
#
# This dashboard example includes a toggle with conditional
# cards to switch between custom button card and standard
# entities display as shown in the video:
# https://youtu.be/mj2CIKqrQlc
# ==========================================================