Skip to content

Instantly share code, notes, and snippets.

View egeexyz's full-sized avatar

Brian egeexyz

View GitHub Profile
# This is the complete source code to Flappy Dragon:
# https://dragonruby.itch.io/flappydragon
#
# You can tinker with this by getting a copy of DragonRuby Game Toolkit:
# https://dragonruby.org/
#
# Amir Rajan wrote this game, catch him at https://twitter.com/amirrajan !
class FlappyDragon
attr_accessor :grid, :inputs, :game, :outputs
@aalbertson
aalbertson / gist:e2f3a63ff92800a16c6251de0a0a1f85
Created February 5, 2019 19:52
example disable audio - vagrant mac virtualbox v2 config
$ cat Vagrantfile
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
config.vm.box = "bento/ubuntu-16.04"
config.vm.define "LogsParsing"
config.vm.network "forwarded_port", guest: 8080, host: 8080, auto_correct: true
config.vm.provision :file, source: './provision.sh', destination: '~/provision.sh'
config.vm.provision "shell", run: 'always', path: "./provision.sh", privileged: false
@carlessanagustin
carlessanagustin / home.ssh_config
Created June 4, 2018 13:34
SSH disable strict host Key checking - $HOME/.ssh/config
Host *
StrictHostKeyChecking no
UserKnownHostsFile /dev/null
@grenade
grenade / 01-generate-ed25519-ssh-key.sh
Last active April 11, 2025 19:59
generate ed25519 ssh and gpg/pgp keys and set file permissions for ssh keys and config
#!/bin/bash
mkdir -p ~/.ssh
# generate new personal ed25519 ssh keys
ssh-keygen -o -a 100 -t ed25519 -f ~/.ssh/id_ed25519 -C "rob thijssen <[email protected]>"
ssh-keygen -o -a 100 -t ed25519 -f ~/.ssh/id_robtn -C "rob thijssen <[email protected]>"
# generate new host cert authority (host_ca) ed25519 ssh key
# used for signing host keys and creating host certs
@ceme
ceme / bash_curl_loop
Last active January 9, 2025 09:46
bash curl loop
while true; do sleep 1; curl http://www.google.com; echo -e '\n\n\n\n'$(date);done
@s4y
s4y / gist:1215700
Created September 14, 2011 02:12
child_process.execFile example
var child_process = require('child_process');
// exec: spawns a shell.
child_process.exec('ls -lah /tmp', function(error, stdout, stderr){
console.log(stdout);
});
// execFile: executes a file with the specified arguments
child_process.execFile('ls', ['-lah', '/tmp'], function(error, stdout, stderr){
console.log(stdout);