Skip to content

Instantly share code, notes, and snippets.

View Demwunz's full-sized avatar
:octocat:
donuts

Fazal Demwunz

:octocat:
donuts
View GitHub Profile
@tyteen4a03
tyteen4a03 / field-example.ts
Created October 30, 2023 12:37
PayloadCMS ColoredSelectCell
{
name: "jobStatus",
type: "select",
required: true,
defaultValue: "toBeAssigned",
options: [
{
label: "To Be Assigned",
value: "toBeAssigned",
},
@Demwunz
Demwunz / liver_detox.md
Last active November 24, 2024 02:01
# Andreas Moritz Liver cleanse

Step 1: Preparation

  • Plan to do the gallbladder flush over a weekend or when you have a couple of days off work to allow for rest and relaxation.
  • During the week leading up to the flush, consume a diet consisting of mainly fresh fruits and vegetables, and avoid processed foods, animal fats, and dairy products.
  • It's recommended to perform a kidney cleanse before the gallbladder flush, as Moritz suggests that congested kidneys can hinder the effectiveness of the gallbladder flush.

Step 2: Apple Juice Intake

  • Starting from the sixth day before the flush, drink four glasses (32 ounces or 1 liter) of organic apple juice each day. Divide the juice into smaller servings and drink throughout the day.
  • The apple juice helps to soften gallstones and prepare the body for the flush.
" Specify a directory for plugins
call plug#begin('~/.vim/plugged')
Plug 'neoclide/coc.nvim', {'branch': 'release'}
Plug 'scrooloose/nerdtree'
"Plug 'tsony-tsonev/nerdtree-git-plugin'
Plug 'Xuyuanp/nerdtree-git-plugin'
Plug 'tiagofumo/vim-nerdtree-syntax-highlight'
Plug 'ryanoasis/vim-devicons'
Plug 'airblade/vim-gitgutter'
@thetrevorharmon
thetrevorharmon / example-query.js
Last active December 13, 2023 23:43
Query JSON with S3 Select in Node.js
// See tth.im/s3json for a full explanation of this code
const AWS = require('aws-sdk');
const S3 = new AWS.S3();
exports.handler = async (_, context) => {
try {
const query = 'SELECT * FROM s3object[*].results[*] r;';
// test query is against data from https://swapi.co/api/planets/?page=2
@chimmelb
chimmelb / chromiumpackages.config
Last active June 7, 2024 14:55
.ebextensions config file to load NodeJS EB instance with packages needed for Puppeteer/Chromium
# This is for ElasticBeanstalk with Amazon Linux 2023. For previous Linux 2 or Linux 1, see revisions for ideas
packages:
yum:
cups-libs: []
libdrm: []
libXdamage: []
libXfixes: []
libXrandr: []
mesa-libgbm: []
libxkbcommon: []
@nrollr
nrollr / Python.md
Last active June 6, 2023 23:16
Python environments in macOS

Python environments in macOS

The latest version of macOS 10.13.3 has Python 2.7.10 installed by default, yet Python has been available on macOS and previously OS X for quite a while now.

Consult the Apple's Open Source Reference Library, and browse through the various releases of the OS to find out which Python version was included). But what if you have a project which requires Python 3 ?

The following instructions will guide you through the process of:

  • installing Python 3 using Homebrew
  • running multiple Python verions as sandboxed environments
@agrcrobles
agrcrobles / android_instructions_29.md
Last active August 29, 2024 11:04 — forked from patrickhammond/android_instructions.md
Setup Android SDK on OSX with and without the android studio

Hi, I am a fork from https://gist.github.com/patrickhammond/4ddbe49a67e5eb1b9c03.

A high level overview for what I need to do to get most of an Android environment setup and maintained on OSX higher Catalina and Big Sur with and without Android Studio been installed.

Considering the SDK is installed under /Users/<your_user>/Library/Android/sdk folder which is the Android Studio preferred SDK location, but it works fine under /usr/local/share/android-sdk as well, which is a location pretty much used on CI mostly.

Prerequisites:

https://github.com/shyiko/jabba instead ?

Mining parts
Motherboard either: https://www.amazon.co.uk/ASRock-H81-PRO-BTC-R2-0/dp/B01M5FQZYE/ref=sr_1_1?ie=UTF8&qid=1498643442&sr=8-1&keywords=btc+pro+motherboard
or
https://www.amazon.co.uk/Biostar-TB85-Intel-Socket-Motherboard/dp/B06VS94ZSF
CPU
https://www.amazon.co.uk/Intel-Celeron-G1840-Processor-LGA1150/dp/B00K5OJ0TS/ref=pd_lpo_vtph_107_lp_t_4?_encoding=UTF8&psc=1&refRID=QMZTF1YX8CMTS643V6PQ
@desaiuditd
desaiuditd / git-squash.md
Last active August 20, 2021 10:31
Git Squash Commits and Change Timestamp

Let's say, 5 commits are made in develop branch.

  • Commit 4 => 2017/06/23
  • Commit 3 => 2017/06/22
  • Commit 2 => 2017/06/21
  • Commit 1 => 2017/06/20

Now we want to squash these commits into one commit (i.e., the latest commit on 2017/06/23).

git rebase -i HEAD~4

@pbeshai
pbeshai / .block
Last active July 17, 2023 09:40
Animate thousands of points with canvas and D3
license: mit
height: 620
border: no