Skip to content

Instantly share code, notes, and snippets.

View ryolambert's full-sized avatar
👨‍💻
Focusing

Ryo Lambert ryolambert

👨‍💻
Focusing
View GitHub Profile
@ryolambert
ryolambert / gist:e3c5fd3f5bfa7c32082f9cad74de4fcb
Last active May 16, 2024 16:32
HAA DEV Tag Assistant Session Export
We couldn’t find that file to show.
@ryolambert
ryolambert / tidy_builds.sh
Last active November 17, 2020 22:58
Devv-Web Build CI Tidy_Builds.sh
#!/bin/bash
echo "_____________Tidy: rm old builds______________"
BRANCH_VER="task.WEB-61"
BRANCH_TAGS=('"${BRANCH_VER}"')
echo "branch: $BRANCH_VER"
echo "branch{}: ${BRANCH_VER}"
echo "branch_tags: $BRANCH_TAGS"
echo "branch_tags{}: ${BRANCH_TAGS[0]}"
tidy_branches() {
cd /mnt/efs/ci-user/Devv-Web
{
"Link": "<https://bast.test.devvio.com/core/block/info?page=2&perPage=3>; rel=\"next\", <https://bast.test.devvio.com/core/block/info?page=1&perPage=3>; rel=\"current\", <https://bast.test.devvio.com/core/block/info?page=141&perPage=3>; rel=\"last\", <https://bast.test.devvio.com/core/block/info?page=1&per_page=20>; rel=\"first\"",
"X-ITEM-TOTAL": "2820",
"act": "core/block/info",
"blockInfo": [
{
"blockHeight": "0",
"blockSize": "1078",
"blockTime": "1595435496832",
"blockVolume": "200",
@ryolambert
ryolambert / deleteAmazonSavedItems.js
Last active October 16, 2020 00:19 — forked from MichaelLawton/deleteAmazonSavedItems.js
Removes all Amazon saved for later items on the cart page. It will only remove visible items. You might want to scroll first to make more items visible. To use paste code in developer console (Ctrl+Shift+J or Cmd+Opt+J in Chrome) then press enter.
var elapsed = 0;
var seconds_to_wait = 8;
function sleep(seconds){
console.log('(Sleep) Elapsed Time : ' + elapsed);
if (elapsed < seconds){
setTimeout("sleep("+seconds+")",1000);//This is called again in 1 second
}
elapsed += 1;
}
# Ensure posh-git/get-childitemcolor are loaded
Import-Module Get-ChildItemColor
Import-Module PSReadLine
function Test-Administrator {
$user = [Security.Principal.WindowsIdentity]::GetCurrent();
(New-Object Security.Principal.WindowsPrincipal $user).IsInRole([Security.Principal.WindowsBuiltinRole]::Administrator)
}
function prompt {
@ryolambert
ryolambert / dark-icon.png
Last active August 18, 2020 18:37
Devv-Web Icon
dark-icon.png
@ryolambert
ryolambert / notify.yml
Created August 7, 2020 01:33 — forked from trung/notify.yml
Notify slack about Github Actions workflow and its jobs status. `notify` job must be the last job in the workflow and it must depend on all other jobs
notify:
if: always()
name: Notify
needs:
- job1
- job2
- job11
- job3
- job4
runs-on: ubuntu-latest
@ryolambert
ryolambert / package.json
Created May 21, 2020 16:07 — forked from kentcdodds/package.json
setup script for my workshops
{
"name": "workshop-setup",
"version": "1.0.0",
"description": "This is the common setup script for most of my workshops",
"bin": "./setup.js"
}
@ryolambert
ryolambert / gist:63d4050b1bbb9fd061945d3e478037cc
Created April 8, 2020 02:35 — forked from guilherme/gist:9604324
Git pre-commit hook that detects if the developer forget to remove all the javascript console.log before commit.
#!/bin/sh
# Redirect output to stderr.
exec 1>&2
# enable user input
exec < /dev/tty
consoleregexp='console.log'
# CHECK
if test $(git diff --cached | grep $consoleregexp | wc -l) != 0
then
@ryolambert
ryolambert / CmderZSH.md
Created August 8, 2019 21:39 — forked from dfontana/CmderZSH.md
My setup guide for installing Cgywin, Mintty, Cmder, and ZSH.

What's this?

Instructions to obtain ZSH on a windows environment, without the input funny business presented by some other attempted solutions.

The final result is ZSH running on a mintty terminal, emulated by cygwin, and being handled by the popular cmder.

Why is this here?

For the benefit of myself and others. I've already followed these instructions twice. It took me hours to figure all this out, maybe someone else can save a few.

What exactly is covered?

  • Installing and setting up cmder