Skip to content

Instantly share code, notes, and snippets.

View dej10's full-sized avatar
🚀
Learning

Ayodeji Alarape dej10

🚀
Learning
View GitHub Profile
@bdsqqq
bdsqqq / vesper-dark.json
Last active August 20, 2024 22:07
Vesper theme for zed.dev
{
"$schema": "https://zed.dev/schema/themes/v0.1.0.json",
"name": "Vesper",
"author": "Rauno Freiberg",
"themes": [
{
"name": "Vesper",
"appearance": "dark",
"style": {
"border": "#101010",
@balupton
balupton / README.md
Last active August 4, 2024 16:04
Upload a File to Cloudflare R2 Instructions
@InToSSH
InToSSH / Autocomplete.vue
Last active July 3, 2024 17:20
PrimeVue AutoComplete wrapper to accept array of objects for items with 'label' and 'value' props and return only the 'value' prop value in the v-model. It now also supports the multiple version - return an array of values (IDs) and also accepts array of values as v-model and converts them back to objects for the OG Autocomplete
<template>
<div class="field">
<label :for="id" :class="{'p-error':(v && v.$invalid && v.$dirty)}">{{ label }} {{ v && 'required' in v ? '*' : ''}}</label>
<AutoComplete
:model-value="modelItem"
@update:modelValue="(selected) => valueUpdated(selected)"
:suggestions="filteredItems"
@complete="searchItems($event)"
:dropdown="true"
@jclosure
jclosure / supervisord.conf
Created March 28, 2021 19:00
Supervisord config for running multiple processes in a single container.
## service.conf
# skel ref: https://github.com/Supervisor/supervisor/blob/master/supervisor/skel/sample.conf
# requires:
# pip install supervisor
# pip install supervisord-dependent-startup
[supervisord]
@arter97
arter97 / firewall.sh
Last active October 14, 2024 12:39
ipset firewall for crontab
#!/bin/bash
export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
exec > /dev/kmsg 2>&1
TMP=/tmp/ipsum.txt
until wget --spider https://raw.githubusercontent.com/stamparm/ipsum/master/ipsum.txt > /dev/null 2>&1; do
echo "Waiting for GitHub to be accessible"
@daltonrooney
daltonrooney / modal-video.vue
Last active April 26, 2024 08:41
Modal video player component for Vue.js
/* Based on https://github.com/appleple/react-modal-video/ */
<template>
<div v-if="isOpen">
<div
:class="classNames.modalVideo"
tabIndex='-1'
role='dialog'
:aria-label="aria.openMessage"
@click="$emit('update:isOpen', false)"
@mykeels
mykeels / states-and-cities.json
Created April 8, 2018 12:43
Nigerian States and Cities in JSON
[
{
"name": "Abia",
"cities": [
"Aba South",
"Arochukwu",
"Bende",
"Ikwuano",
"Isiala Ngwa North",
"Isiala Ngwa South",
@chranderson
chranderson / nvmCommands.js
Last active November 13, 2024 16:18
Useful NVM commands
// check version
node -v || node --version
// list locally installed versions of node
nvm ls
// list remove available versions of node
nvm ls-remote
// install specific version of node