Skip to content

Instantly share code, notes, and snippets.

@vraravam
vraravam / osx-defaults.sh
Last active May 13, 2024 18:19
OSX Defaults to setup a brand new machine
#!/usr/bin/env bash
# TODO: Need to figure out the settings for the following:
# 1) Dock: Items with order (not capturing binary data - since that is dependent on installed apps)
# 2) Security & Privacy Preferences: Full Disk Access, Camera, Microphone
# 3) Login items for my user (i.e. apps started when I login)
# 4) Retina displays scaling
# 5) Finder sidebar with order
##
@ruvnet
ruvnet / ruv-final.ipynb
Last active May 13, 2024 18:19
ruv-final.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@willhackett
willhackett / op-remove-duplicates.js
Last active May 13, 2024 18:17
1Password Duplicate Remover
/**
* 1Password Duplicate Remover
*
* Usage: node 1password-duplicate.js
*
* Author: Will Hackett
*
* License: MIT
*
* Requirements:
@aburjg
aburjg / homoiconic-python-post.md
Last active May 13, 2024 18:16
Homoiconic Python Post
@billyshub
billyshub / README.md
Last active May 13, 2024 18:16
DIY Ambilight - HyperBian + Android Grabber

HyperBian + Android Grabber Ambilight Setup Guide

Intro

@mohanpedala
mohanpedala / bash_strict_mode.md
Last active May 13, 2024 18:15
set -e, -u, -o, -x pipefail explanation
@bmarkons
bmarkons / gist:5bf80b97ac4f5860f903c60cbbe3540d
Created October 5, 2021 19:38 — forked from jampajeen/gist:d19f36a7309d0ead0e1f9735a26d66f3
Disable/Enable Mac OSX sleep on lid closed
# disable sleep
sudo pmset -b sleep 0; sudo pmset -b disablesleep 1
# re-enable sleep
sudo pmset -b sleep 5; sudo pmset -b disablesleep 0
@uixcrazy
uixcrazy / Happy Women's Day.markdown
Last active May 13, 2024 18:13
Happy Women's Day

Happy Women's Day

Women in particular need to keep an eye on their physical and mental health, because if we’re scurrying to and from appointments and errands, we don’t have a lot of time to take care of ourselves. We need to do a better job of putting ourselves higher on our own “to do” list. Michelle Obama

A Pen by uixcrazy.com on CodePen.

License.

@roqbez
roqbez / import_excel.js
Created April 30, 2021 00:00
Node.js + Nest.js code to import Excel file to a database
import { HttpService, Injectable, Logger } from '@nestjs/common';
import { InjectModel } from '@nestjs/sequelize';
import { ReadStream } from 'fs';
import { Sequelize } from 'sequelize-typescript';
import * as xlsx from 'xlsx';
import { WorkBook, WorkSheet } from 'xlsx';
import { ArquivoImportacao } from './dto/arquivo-importacao.dto';
@Injectable()
export class ImportacaoProcessosService {
@surfer77
surfer77 / fpAbi.json
Last active May 13, 2024 18:12
FrenPet ABI
[
{
"type": "function",
"name": "diamondCut",
"inputs": [
{
"name": "_diamondCut",
"type": "tuple[]",
"internalType": "struct IDiamond.FacetCut[]",
"components": [