Skip to content

Instantly share code, notes, and snippets.

View carterpeel's full-sized avatar
📈
O(logn) enthusiast

Carter carterpeel

📈
O(logn) enthusiast
  • Grand Rapids, Michigan
  • 23:28 (UTC -04:00)
View GitHub Profile
@0x00009b
0x00009b / .bashrc
Last active March 12, 2021 13:02
a super nice .bashrc
#!/bin/bash
#enp's epic .bashrc
#feel free to copy and edit just pls keep this and the above comments :p
#If not running interactively, don't do anything
case $- in
*i*) ;;
*) return;;
esac
@idear1203
idear1203 / Video.java
Last active May 12, 2022 15:34
Play .mp4 video using Java MediaPlayer for 5 seconds. After that, the video will be closed.
import javafx.application.Application;
import javafx.beans.binding.Bindings;
import javafx.beans.property.DoubleProperty;
import javafx.scene.Scene;
import javafx.scene.layout.StackPane;
import javafx.scene.media.Media;
import javafx.scene.media.MediaView;
import javafx.scene.paint.Color;
import javafx.stage.Stage;
import javafx.util.Duration;
@developius
developius / README.md
Last active April 25, 2024 22:15
Setup SSH keys for use with GitHub/GitLab/BitBucket etc

Create a new repository, or reuse an existing one.

Generate a new SSH key:

ssh-keygen -t rsa -C "your_email@example.com"

Copy the contents of the file ~/.ssh/id_rsa.pub to your SSH keys in your GitHub account settings (https://github.com/settings/keys).

Test SSH key: