Skip to content

Instantly share code, notes, and snippets.

View sudogem's full-sized avatar

r_man sudogem

View GitHub Profile
This CA certificate is for verifying HTTPS connection to;
- https://rubygems.org/ (obtained by RubyGems team)
Certificate:
Data:
Version: 3 (0x2)
Serial Number: 1 (0x1)
Signature Algorithm: sha1WithRSAEncryption
Issuer: C=SE, O=AddTrust AB, OU=AddTrust External TTP Network, CN=AddTrust External CA Root
Validity
@sudogem
sudogem / export_repo_issues_to_csv.py
Created December 5, 2016 17:06 — forked from unbracketed/export_repo_issues_to_csv.py
Export Issues from Github repo to CSV (API v3)
"""
Exports Issues from a specified repository to a CSV file
Uses basic authentication (Github username + password) to retrieve Issues
from a repository that username has access to. Supports Github API v3.
"""
import csv
import requests
$ echo $PATH | sed ‘s/\:/\n/g’ | sort
Output:
/bin
/home/artheman/.nvm/versions/node/v6.2.2/bin
/home/artheman/.pyenv/bin
/home/artheman/.pyenv/shims
/home/artheman/.rbenv/bin
/home/artheman/.rbenv/plugins/ruby-build/bin
/home/artheman/.rbenv/shims
/home/artheman/.rvm/bin
set -g buffer-limit 100
set -g history-limit 10000
#set -g status-utf8 on
set-option -g status-position top
set -g default-terminal "xterm"
set -g status-bg black
set -g status-fg blue
set -g status-attr dim
#!/bin/bash
MHOST="$1"
MUSER="$2"
MPASS="$3"
MDB="$4"
# Detect paths
MYSQL=$(which mysql)
AWK=$(which awk)
GREP=$(which grep)
{
"color_scheme": "Packages/Theme - Superflat Adventures/Adventure Time.tmTheme",
"color_scheme_r1": "Packages/Agila Theme/Agila Neon Monocyanide.tmTheme",
"color_scheme_r3": "Packages/Agila Theme/Agila Origin Oceanic Next.tmTheme",
"draw_white_space": "all",
"font_size": 11,
"ignored_packages":
[
"Vintage"
],
@sudogem
sudogem / es2015.js
Last active September 19, 2017 09:37
ES 2015(ES 6) Syntax
// Differences of ES5 and ES2015(formerly known as ES6)
//====================================================
// ES5
var braveNewWorld = function( world ) {
console.log( "Welcome to" + world )
};
// ES2015: Using Arrow Functions, let, template strings
let braveNewWorld = ( world ) => {
console.log(`Welcome to ${world}`);
@sudogem
sudogem / basic-reactjs.js
Last active September 13, 2017 02:42
hings to remember in ReactJS
const greeting = <h1>hello world!</h1>
// If you have JSX code that spans across multiple lines,
// you can wrap it in ( and ) brackets, as follows:
const greeting = (
<h1>
hello world!
</h1>
)
@sudogem
sudogem / .bashrc
Last active February 27, 2024 16:07
Create a .bashrc file(if not exist) using the command: $ vi ~/.bashrc then update it. Once updated we run this command: $ source ~/.bashrc
## Add git branch name in Terminal
force_color_prompt=yes
parse_git_branch() {
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/'
}
## export PS1="\u@\h \[\033[32m\]\w\[\033[33m\]\$(parse_git_branch)\[\033[00m\] >\n$ "
export PS1="${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\[\033[33m\]\$(parse_git_branch)\[\033[00m\] >\n$ "
## Git shortcuts
alias gitlogtree="git log -n 10 --graph --decorate -30 --all --date-order --date=format:'%Y-%m-%d %H:%M:%S' --pretty=format:'%C(cyan)%h%Creset %C(black bold)%ad%Creset%C(auto)%d %s'"
@sudogem
sudogem / tradingview.js
Last active September 20, 2023 14:07
This script will hide the TradingView logo or any custom logo
// ==UserScript==
// @name New Userscript
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author You
// @match https://www.investagrams.com/Chart/PSE:*
// @icon https://www.google.com/s2/favicons?domain=investagrams.com
// @grant none
// ==/UserScript==