Skip to content

Instantly share code, notes, and snippets.

View RStrydom's full-sized avatar
😁

Ren Strydom RStrydom

😁
View GitHub Profile
@pilosus
pilosus / calculate.md
Last active February 9, 2025 17:20
Count projects with GitHub link on clojure-toolbox.com website with babashka

$ bb toolbox.clj

{:total 1001, :github 970}

(require
'[clojure.edn :as edn]
'[clojure.java.io :as io]
'[clojure.string :as str])
(defn read-workspace
([] (read-workspace "."))
([ws-dir]
(-> ws-dir
@borkdude
borkdude / new
Last active July 23, 2022 14:25
Create clojure project with babashka using deps-new
#!/usr/bin/env bb
(require '[babashka.classpath :as cp]
'[babashka.deps :as deps])
(deps/add-deps '{:deps {org.corfield/deps-new {:git/url "https://github.com/borkdude/deps-new"
:git/sha "76259a27c57dba4530671a3d18c610ed904297d7"}
org.babashka/cli {:mvn/version "0.3.31"}
org.babashka/spec.alpha {:git/url "https://github.com/babashka/spec.alpha"
:git/sha "1a841c4cc1d4f6dab7505a98ed2d532dd9d56b78"}}})
@tylerw
tylerw / update-clj-tools.bb
Created June 18, 2022 19:23
Quick-and-dirty script to update all Clojure -Ttools
#!/usr/bin/env bb
;;;
; A babashka script to update all clojure -Ttools to the latest versions
; author: Tyler Wardhaugh
;;;
(ns update-clj-tools
(:require [babashka.fs :as fs]
[babashka.process :refer [process]]))
@FruitieX
FruitieX / shell.nix
Created January 10, 2022 07:13
Fetches necessary dependencies for running Dioxus in desktop mode when using the Nix package manager
let
moz_overlay = import (builtins.fetchTarball https://github.com/mozilla/nixpkgs-mozilla/archive/8c007b60731c07dd7a052cce508de3bb1ae849b4.tar.gz);
nixpkgs = import <nixpkgs> { overlays = [ moz_overlay ]; };
rustStableChannel = (nixpkgs.rustChannels.stable).rust.override {
extensions = [
"rust-src"
"rust-analysis"
"rustfmt-preview"
"clippy-preview"
];
@oflannabhra
oflannabhra / SelfControlPomodoro
Created January 10, 2019 22:40
An AppleScript to initiate a pomodoro timer while blocking time-wasting sites
tell application "SelfControl" to activate
tell application "Usable Keychain Scripting"
tell current keychain
set myPass to (password of first generic item whose name contains "SelfControl")
end tell
end tell
tell application "System Events"
tell process "SelfControl"
@ServerlessBot
ServerlessBot / IAMCredentials.json
Last active February 24, 2025 15:51
Minimum credential set for Serverless Framework
{
"Statement": [
{
"Action": [
"apigateway:*",
"cloudformation:CancelUpdateStack",
"cloudformation:ContinueUpdateRollback",
"cloudformation:CreateChangeSet",
"cloudformation:CreateStack",
"cloudformation:CreateUploadBucket",
@JFossey
JFossey / ExampleFacade.php
Last active October 12, 2021 15:43
Application / DOMAIN Packages: How to separate code (PHP Composer + Laravel)
<?php
declare(strict_types=1);
namespace Example;
// Framework
use Illuminate\Support\Facades\Facade;
/**
body {
color: #212121;
font-family: "Helvetica Neue", "Calibri Light", Roboto, sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
letter-spacing: 0.02em;
}
@wileam
wileam / delete_merged_remote_branches.sh
Created August 23, 2016 10:51 — forked from Emuentes/delete_merged_remote_branches.sh
Delete remote git branches that have been merged into develop
# Breakdown of the process
# NOTE: I am searching for branches merged into Develop because I'm using GiT flow
# 1) git branch -r --merged develop
# Get remote branches that have been merged into develop
# 2) grep -v -E '(\*|master|develop)'
# From those branches returned by the above command,
# exclude: master, develop, & the currently selected branch (the branch name beggining with an asterisk)