Skip to content

Instantly share code, notes, and snippets.

View skecskes's full-sized avatar
📚
It's always gradually and then suddenly

Stefan Kecskes skecskes

📚
It's always gradually and then suddenly
View GitHub Profile
@skecskes
skecskes / Bootlint
Created June 2, 2015 22:55
How to run bootlint on any page from browser
###What's Bootlint?
Bootlint is a tool that checks for several common HTML mistakes in webpages that are using Bootstrap in a fairly "vanilla" way. Vanilla Bootstrap's components/widgets require their parts of the DOM to conform to certain structures. Bootlint checks that instances of Bootstrap components have correctly-structured HTML. Optimal usage of Bootstrap also requires that your pages include certain <meta> tags, an HTML5 doctype declaration, etc.; Bootlint checks that these are present.
### Run in the browser
Use the following bookmarklet that's powered by BootstrapCDN:
javascript:(function(){var s=document.createElement("script");s.onload=function(){bootlint.showLintReportForCurrentDocument([]);};s.src="https://maxcdn.bootstrapcdn.com/bootlint/latest/bootlint.min.js";document.body.appendChild(s)})();
@skecskes
skecskes / phpci.yml
Created May 9, 2015 22:49
phpci.yml Laravel 5 config
build_settings:
verbose: false
prefer_symlink: false
setup:
composer:
action: "install"
prefer_dist: false
test:
@skecskes
skecskes / latest-protobuf-ubuntu-18-04.md
Last active February 11, 2020 23:45
How to Install Latest Protobuf on Ubuntu 18.04
sudo apt-get install autoconf automake libtool curl make g++ unzip -y
git clone https://github.com/google/protobuf.git
cd protobuf
git submodule update --init --recursive
./autogen.sh
./configure
make
make check

sudo make install

#!/bin/bash
CONTAINER_NAME=stepfunctions
STATE_MACHINE_DEFINITION=/path/to/yourstatemachine.json
STATE_MACHINE_NAME="Name of your process"
ENV_FILE=path/to/your-stepfunctions-local-credentials.txt
INPUT="{ \"myInput\": \"hello world\"}"
function get_value_from_json(){
VALUE="$(jq .$1 temporary.json)"
@skecskes
skecskes / add-gcloud-auth-plugin-in-ubuntu.sh
Created January 17, 2023 17:01
Adds new gcloud auth plugin after removing previous installation of kubectl and gcloud-cloud-cli
#!/bin/bash
cd ~
echo "Delete google-cloud-cli google-cloud-cli-gke-gcloud-auth-plugin google-cloud-sdk-gke-gcloud-auth-plugin"
sudo apt-get remove google-cloud-cli google-cloud-cli-gke-gcloud-auth-plugin google-cloud-sdk-gke-gcloud-auth-plugin -y && \
sudo apt-get purge google-cloud-cli google-cloud-cli-gke-gcloud-auth-plugin google-cloud-sdk-gke-gcloud-auth-plugin && \
sudo apt-get autoremove
echo "Clean kubectl"