This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
if [ "$(whoami)" != "root" ]; then | |
echo "Run script as ROOT please. (sudo !!)" | |
exit | |
fi | |
apt-get update -y | |
apt-get install -t stretch -y php7.0-soap | |
apt-get autoremove -y |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
EMSCRIPTEN_HOME = ~/Documents/inbox/emscripten | |
PROJECT = myproject | |
SOURCES = $(wildcard *.cc) $(wildcard *.c) | |
OBJECTS = $(patsubst %.cc,%.o,$(patsubst %.c,%.o,$(SOURCES))) | |
set-native: | |
$(eval CXX := clang -x c++) | |
$(eval CC := clang) | |
$(eval CPPFLAGS := -g -O2 -DHAS_TR1) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <fstream> | |
#include <string> | |
#ifdef EMSCRIPTEN | |
#include <emscripten/emscripten.h> | |
#endif | |
namespace | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <vector> | |
#include <type_traits> | |
#include <tuple> | |
namespace sfinae | |
{ | |
using success = std::true_type; | |
using fail = std::false_type; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
if [ "$EUID" -ne 0 ] | |
then echo "Must be root" | |
exit | |
fi | |
apt-get update -y | |
apt-get upgrade -y | |
apt-get dist-upgrade -y |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Thanks to https://gist.github.com/Lewiscowles1986/ce14296e3f5222082dbaa088ca1954f7 | |
if [ "$(whoami)" != "root" ]; then | |
echo "Run script as ROOT please. (sudo !!)" | |
exit | |
fi | |
echo "deb http://mirrordirector.raspbian.org/raspbian/ stretch main contrib non-free rpi" > /etc/apt/sources.list.d/stretch.list | |
echo "APT::Default-Release \"jessie\";" > /etc/apt/apt.conf.d/99-default-release |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <chrono> | |
#include <string> | |
#include <sstream> | |
#include <vector> | |
#include <iostream> | |
std::string to_string(const int i) | |
{ | |
std::stringstream ss; | |
ss << i; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Store } from "pullstate"; | |
import { LocalStorage } from "@gt/gt-frontend/build/localStorage/LocalStorage"; | |
import { get, pick, set } from "lodash"; | |
interface IStoreWithValues<S> { | |
key: string; | |
store: Store<S>; | |
values?: Array<keyof S>; | |
deepValues?: string[]; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* A type-safe high-order-component creator | |
* that injects a prop named a given string, | |
* with a type inferred by a given hook's | |
* return value. | |
* | |
* Ex: | |
* const Component = ({ name }) => { | |
* return <>Hello {name}</>; | |
* }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Script was produced by Dsetzer original can be found at https://gist.github.com/dsetzer | |
//In the script panel in Bustabit create a new script. Copy the script below and paste it in to the script window on bustabit. | |
//Please note this version will only give you past results and not future results. | |
//The script has a save to file option, but this has never worked for me. | |
var config = { | |
span: { label: 'Previous Games', type: 'number', value: '100' }, | |
outh: { label: 'Include Hashes', type: 'checkbox', value: false }, | |
ocsv: { label: 'Download CSV', type: 'checkbox', value: true} | |
}; |
OlderNewer