Skip to content

Instantly share code, notes, and snippets.

💭
Programming

Interchained shopglobal

💭
Programming
Block or report user

Report or block shopglobal

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@shopglobal
shopglobal / Copile C# Linux
Created Aug 26, 2018 — forked from lzomedia/Copile C# Linux
How to compile c# on ubuntu
View Copile C# Linux
==
Visual Studio
http://stackoverflow.com/questions/8264323/how-to-compile-a-visual-studio-c-sharp-project-with-mono
apt-get install mono-complete
and run from the command line :
xbuild mysolution.sln
xbuild myproject.csproj
@shopglobal
shopglobal / SHA_256_hak.cpp
Created Jun 27, 2018 — forked from hak8or/SHA_256_hak.cpp
SHA-256 basic implementation in C++ with a test.
View SHA_256_hak.cpp
#include <iostream>
#include <sstream>
#include <bitset>
#include <vector>
#include <iomanip>
#include <cstring>
// By: hak8or
// To compile: g++ -std=c++0x SHA_256_hak.cpp -o SHA_256_hak
// To run self test just run the following: SHA_256_hak
@shopglobal
shopglobal / LAMP.md
Last active Mar 24, 2018
LAMP stack on ubuntu 16.04
View LAMP.md

LAMP STACK Ubuntu 16.04

sudo apt-get update
sudo apt-get dist-update
sudo apt-get full-upgrade
sudo apt-get upgrade
sudo apt-get install mysql-server phpmyadmin php libapache2-mod-php php-mcrypt php-mysql php-cli vim build-essential libnet-libidn-perl php-all-dev php-common php-dev php-gd apache2

During the installation, your server will ask you to select and confirm a password for the MySQL "root" user. This is an administrative account in MySQL that has increased privileges. Think of it as being similar to the root account for the server itself (the one you are configuring now is a MySQL-specific account, however). Make sure this is a strong, unique password, and do not leave it blank.

@shopglobal
shopglobal / explanation.md
Created Mar 20, 2018 — forked from masak/explanation.md
How is git commit sha1 formed
View explanation.md

Ok, I geeked out, and this is probably more information than you need. But it completely answers the question. Sorry. ☺

Locally, I'm at this commit:

$ git show
commit d6cd1e2bd19e03a81132a23b2025920577f84e37
Author: jnthn <jnthn@jnthn.net>
Date:   Sun Apr 15 16:35:03 2012 +0200

    When I added FIRST/NEXT/LAST, it was idiomatic but not quite so fast. This makes it faster. Another little bit of masak++'s program.
@shopglobal
shopglobal / Dependancies_Windows.md
Last active Mar 7, 2018
Windows dependencies helper
View Dependancies_Windows.md

Windows: Binaries for Windows are built on Windows using the MinGW toolchain within MSYS2 environment. The MSYS2 environment emulates a POSIX system. The toolchain runs within the environment and cross-compiles binaries that can run outside of the environment as a regular Windows application.

Preparing the build environment

Pre-Install

Download and Install MSYS2

http://msys2.github.io/

Download and install the MSYS2 installer, either the 64-bit or the 32-bit package, depending on your system.

@shopglobal
shopglobal / Ethereum_private_network.md
Created Mar 1, 2018 — forked from 0mkara/Ethereum_private_network.md
Ethereum private network configuration guide.
View Ethereum_private_network.md

Create your own Ethereum private network

Introduction

Used nodes:

Linux raspberrypi 4.9.41-v7+ #1023 SMP Tue Aug 8 16:00:15 BST 2017 armv7l GNU/Linux
Linux localhost.localdomain 4.14.5-200.fc26.x86_64 #1 SMP Mon Dec 11 16:29:08 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
@shopglobal
shopglobal / gist:6e6f642e5cd7833832e404ff650f6bf4
Created Feb 17, 2018 — forked from lttlrck/gist:9628955
rename git branch locally and remotely
View gist:6e6f642e5cd7833832e404ff650f6bf4
git branch -m old_branch new_branch # Rename branch locally
git push origin :old_branch # Delete the old branch
git push --set-upstream origin new_branch # Push the new branch, set local branch to track the new remote
View ExportSlackHistory.php
<?
/////////////////////
// slack2html
// by @levelsio
/////////////////////
//
/////////////////////
// WHAT DOES THIS DO?
/////////////////////
//
@shopglobal
shopglobal / selenium
Created Dec 21, 2017 — forked from adeubank/selenium
Set up selenium on Ubuntu 16.04 as a service
View selenium
#!/bin/bash
case "${1:-''}" in
'start')
if test -f /tmp/selenium.pid
then
echo "Selenium is already running."
else
export DISPLAY=localhost:99.0
java -Dwebdriver.gecko.driver="/usr/lib/geckodriver/geckodriver" -jar /usr/lib/selenium/selenium-server-standalone.jar -port 4444 > /var/log/selenium/output.log 2> /var/log/selenium/error.log & echo $! > /tmp/selenium.pid
@shopglobal
shopglobal / get-current-crypto-prices.js
Created Dec 15, 2017 — forked from gmcdev/get-current-crypto-prices.js
Map current cryptocurrency prices into Google Sheets
View get-current-crypto-prices.js
/* USAGE:
* Sheet -> Tools -> Script Editor...
* Paste this script
* Update the map (below) to your preferences
* Create a button in your Sheet and Assign Script: `test`
* et voila profit
*/
function test() {
// maps currencies.tokens to sheet ranges
getPrices({
You can’t perform that action at this time.