Skip to content

Instantly share code, notes, and snippets.

View wayanjimmy's full-sized avatar
🏠
Working from home

Wayan jimmy wayanjimmy

🏠
Working from home
View GitHub Profile
@wayanjimmy
wayanjimmy / cli-apps-dev.md
Last active February 4, 2024 11:23
I curate a list of interesting CLI tools, below are some command line tools that I personally love and use

I curate a list of interesting CLI tools, below are some command line tools that I personally love and use

  • tmux - Terminal multiplexer.
  • ripgrep - Search text for patterns fast.
  • fzf - Command-line fuzzy finder.
  • exa - Replacement for ls written in rust.
  • git - Version control.
  • create-react-app - Create React apps with no build configuration.
  • npx - Execute npm package binaries.
  • wifi-password - Get the password of the WiFi you're on.
@wayanjimmy
wayanjimmy / settings.json
Last active January 21, 2024 04:54
Vscode Settings
{
"workbench.colorTheme": "Default Light Modern",
"remote.SSH.remotePlatform": {
"ser4": "linux"
},
"vim.normalModeKeyBindingsNonRecursive": [
{
"before": [
"<C-p>"
],
@wayanjimmy
wayanjimmy / AuthServiceProvider.php
Last active January 4, 2024 09:32
Extend Laravel SessionGuard
<?php
namespace App\Providers;
use App\Extensions\SessionAnonymousGuard;
use Illuminate\Auth\SessionGuard;
use Illuminate\Contracts\Auth\Access\Gate as GateContract;
use Illuminate\Foundation\Support\Providers\AuthServiceProvider as ServiceProvider;
class AuthServiceProvider extends ServiceProvider
@wayanjimmy
wayanjimmy / Dockerfile
Created November 13, 2023 03:24
Temporalite Docker Image
FROM curlimages/curl as builder
WORKDIR /
RUN curl -sSf https://temporal.download/cli.sh | sh
FROM gcr.io/distroless/base-debian11
COPY --from=builder /home/curl_user/.temporalio/bin/temporal /bin/temporal
EXPOSE 7233
EXPOSE 8233
@wayanjimmy
wayanjimmy / Dockerfile
Created September 2, 2023 02:00
Laravel Unit Docker Example
FROM unit:1.31.0-php8.2
EXPOSE 8080
WORKDIR /var/www/html
COPY . .
COPY config.json /docker-entrypoint.d/config.json
@wayanjimmy
wayanjimmy / cat_breeds.json
Last active January 15, 2023 12:00
Cat Breeds
[
{
"id": "1",
"name": "Garfield",
"breed": "Balinese",
"age": 7,
"description": "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec eget. "
},
{
"id": "2",
@wayanjimmy
wayanjimmy / gist:a853ad89fc1fd46652ba4b6d283e3195
Last active December 10, 2022 01:34
install-nuc-server-1.sh
nix-env -iA \
nixpkgs.ansible \
nixpkgs.direnv \
nixpkgs.ripgrep \
nixpkgs.bat \
nixpkgs.tmux
@wayanjimmy
wayanjimmy / soFetch.js
Created November 30, 2018 02:41
Reusable fetch function from wesbos
// https://twitter.com/wesbos/status/1063515277911052290/photo/1
async function soFetch(input, settings = {}) {
const response = await fetch(input, {
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json'
},
...settings
});
@wayanjimmy
wayanjimmy / Dockerfile
Created June 7, 2018 01:51
Laravel Docker php7.2, mail testing, adminer and s3 mock using minio
FROM php:7.2-fpm
RUN apt-get update && apt-get install -y libpng-dev libjpeg-dev libpq-dev git\
&& rm -rf /var/lib/apt/lists/* \
&& docker-php-ext-configure gd --with-png-dir=/usr --with-jpeg-dir=/usr \
&& docker-php-ext-install gd mbstring pdo pdo_mysql pdo_pgsql zip
#Get Composer
RUN curl -o /tmp/composer-setup.php https://getcomposer.org/installer \
@wayanjimmy
wayanjimmy / 📊 Weekly development breakdown
Last active October 29, 2020 13:40
Weekly development breakdown
Go 19 hrs 59 mins ██████████████████▏░░ 86.7%
TypeScript 1 hr 19 mins █▏░░░░░░░░░░░░░░░░░░░ 5.7%
JSON 42 mins ▋░░░░░░░░░░░░░░░░░░░░ 3.1%
JavaScript 28 mins ▍░░░░░░░░░░░░░░░░░░░░ 2.0%
Vue.js 12 mins ▏░░░░░░░░░░░░░░░░░░░░ 0.9%