Skip to content

Instantly share code, notes, and snippets.

View coolaj86's full-sized avatar
😎
🐹 Go 🦎 Zig 📦 Node 🐧 POSIX 🪟 PowerShell

AJ ONeal coolaj86

😎
🐹 Go 🦎 Zig 📦 Node 🐧 POSIX 🪟 PowerShell
View GitHub Profile
@coolaj86
coolaj86 / markdown-emoji.md
Last active April 12, 2023 01:12 — forked from rxaviers/gist:7360908
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: 😄 :smile: 😆 :laughing:
😊 :blush: 😃 :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
😆 :satisfied: 😁 :grin: 😉 :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: 😀 :grinning:
😗 :kissing: 😙 :kissing_smiling_eyes: 😛 :stuck_out_tongue:
@coolaj86
coolaj86 / tabletest.go
Created May 27, 2020 03:54 — forked from mvndaai/tabletest.go
Go table test
package tabletest
import "errors"
//ForceError will return an error if the boolean is true
func ForceError(force bool) error {
if force {
return errors.New("forced error")
}
return nil
@coolaj86
coolaj86 / powershell.go
Created March 5, 2020 05:47 — forked from coolbrg/powershell.go
Playing PowerShell command via Golang
package main
import (
"bytes"
"fmt"
"os/exec"
"strings"
)
// PowerShell struct
var http = require('http');
var server = http.createServer();
server.on('request', function (req, res) {
// code here
res.end("Hello!");
});
server.listen(8080, function () {
console.log("Listening at http://localhost:", server.address().port);
####################
#
# SUPER IMPORTANT!!!
#
# Anywhere you see 192.168.2.0, you should replace that with your server's address
#
#####################
local 192.168.2.0
dev tun
#!/bin/bash
# Default Variable Declarations
DEFAULT="Default.txt"
FILEEXT=".ovpn"
CRT=".crt"
KEY=".3des.key"
NODES_KEY=".key"
CA="ca.crt"
TA="ta.key"
#!/bin/bash
#Found at http://askubuntu.com/a/193065/35729
#don't forget to 'chmod +x <thisFile>'
sudo add-apt-repository ppa:motumedia/mplayer-daily
sudo add-apt-repository ppa:videolan/stable-daily
sudo apt-get update
sudo apt-get upgrade
var exec = require('child_process').exec,
Futures = require('futures'),
pload = Futures.promise(),
pdisk = Futures.promise(),
pusage = Futures.promise();
function log() {
console.log("event happened");
console.dir(arguments);
}