Skip to content

Instantly share code, notes, and snippets.

View Adron's full-sized avatar
🤘
GSD. Just ping me, I'll get back at ya.

Adron Hall Adron

🤘
GSD. Just ping me, I'll get back at ya.
View GitHub Profile
@Adron
Adron / install-python-essentials.sh
Created July 11, 2017 15:10
Ubuntu Linux - Install Python Essentials
sudo apt-get update
sudo apt-get -y upgrade
sudo apt-get install build-essential checkinstall libffi-dev python-dev
sudo apt-get install libreadline-gplv2-dev libncursesw5-dev libssl-dev libsqlite3-dev tk-dev libgdbm-dev libc6-dev libbz2-dev
// https://pip.pypa.io/en/stable/installing/#installing-with-get-pip-py
// https://pip.pypa.io/en/stable/installing/#using-linux-package-managers

First find packages.

dpkg -l linux-image*

Identify the kernal version in use.

uname -r
uname -a
lsb_release -a
package cmd
import (
"fmt"
"github.com/spf13/cobra"
"github.com/spf13/viper"
)
// configCmd represents the config command
var configCmd = &cobra.Command{
@Adron
Adron / parse.go
Created December 7, 2018 21:40
The core code of the parse feature implementation on the Go Twitz CLI App.
var parseCmd = &cobra.Command{
Use: "parse",
Short: "This command will extract the Twitter Accounts form a text file.",
Long: `This command will extract the Twitter Accounts and clean up or disregard other characters
or text around the twitter accounts to create a simple, clean, Twitter Accounts only list.`,
Run: func(cmd *cobra.Command, args []string) {
completedTwittererList := buildTwitterList()
fmt.Println(completedTwittererList)
if viper.Get("fileExport") != nil {
exportParsedTwitterList(viper.GetString("fileExport"), viper.GetString("fileFormat"), completedTwittererList)
@Adron
Adron / findem.go
Created December 7, 2018 21:47
This is the core findem implementation that goes out, grabs some basic information about a Twitter user and displays it to the screen.
Run: func(cmd *cobra.Command, args []string) {
fmt.Println("Starting Twitter Information Retrieval.")
completedTwitterList := buildTwitterList()
fmt.Printf("Getting Twitter details for: \n%s", completedTwitterList)
accessToken, err := getBearerToken(viper.GetString("consumer_api_key"), viper.GetString("consumer_api_secret"))
check(err)
@Adron
Adron / StandardDatatable.html
Created December 27, 2018 06:32
A standard vuetiful datatable.
<datatable>
<datatable-column id="datatable-column-1" label="Column 1"></datatable-column>
<datatable-column id="datatable-column-2" label="Column 2"></datatable-column>
<datatable-column id="datatable-column-3" label="Column 3"></datatable-column>
</datatable>
@Adron
Adron / vuehello.js
Created December 27, 2018 06:34
The vue datatable is vuetiful.
new Vue({
el: "#app",
data: function() {
return {
columns: [
{ id: "datatable-column-1", label: "Column 1" },
{ id: "datatable-column-2", label: "Column 2" },
{ id: "datatable-column-3", label: "Column 3" }
@Adron
Adron / TheDataTablePerBindedCode.html
Created December 27, 2018 06:34
The datatable the javascript binds/populates!
<datatable>
<datatable-column v-for="column in columns" :id="column.id" :label="column.label"></datatable-column>
</datatable>
@Adron
Adron / DatHello.vue
Created December 27, 2018 06:41
Hello world for Vue.js!
<script src="https://unpkg.com/vue"></script>
<div id="app">
<p id="hello">{{ message }} hi!</p>
</div>
<script>
new Vue({
el: '#app',
data: {