Skip to content

Instantly share code, notes, and snippets.

View yacafx's full-sized avatar
💭
Coding... 👽👾💻🕹

Sergio Brito yacafx

💭
Coding... 👽👾💻🕹
View GitHub Profile
@yacafx
yacafx / obsidian-links-today-keeper.js
Last active October 16, 2023 01:00
Obsidian Links Today Keeper
@yacafx
yacafx / obsidian-web-clipper.js
Created October 15, 2023 12:18 — forked from kepano/obsidian-web-clipper.js
Obsidian Web Clipper Bookmarklet to save articles and pages from the web (for Safari, Chrome, Firefox, and mobile browsers)
javascript: Promise.all([import('https://unpkg.com/turndown@6.0.0?module'), import('https://unpkg.com/@tehshrike/readability@0.2.0'), ]).then(async ([{
default: Turndown
}, {
default: Readability
}]) => {
/* Optional vault name */
const vault = "";
/* Optional folder name such as "Clippings/" */
...
[alias]
rb = !sh -c 'node ~/bin/recbranch.js'
...
@yacafx
yacafx / settings.json
Last active March 27, 2023 23:47
Configuration for VS Code
{
"workbench.iconTheme": "vscode-icons",
"workbench.colorTheme": "Cobalt2",
"workbench.startupEditor": "none",
"editor.minimap.enabled": false,
"editor.formatOnSave": true,
"editor.fontSize": 18,
"editor.fontLigatures": true,
"editor.lineHeight": 25,
"editor.letterSpacing": 0.5,
@yacafx
yacafx / default
Last active February 9, 2023 20:07
NGNIX configuration for run node app and php app at the same same time - This configuration made Node and Wordpress working at the same time on two different routes.
### /etc/nginx/sites-available/default
server {
listen 80 default_server;
listen [::]:80 default_server;
root /var/www/html;
index index.html index.htm index.php;
@yacafx
yacafx / vscode_extensions.sh
Last active January 22, 2022 08:24
Basic extensions for VS Code
code --install-extension 2gua.rainbow-brackets
code --install-extension aaron-bond.better-comments
code --install-extension abusaidm.html-snippets
code --install-extension Angular.ng-template
code --install-extension anseki.vscode-color
code --install-extension BriteSnow.vscode-toggle-quotes
code --install-extension christian-kohler.npm-intellisense
code --install-extension christian-kohler.path-intellisense
code --install-extension cmstead.jsrefactor
code --install-extension CoenraadS.bracket-pair-colorizer
@yacafx
yacafx / git-mv-with-history
Created April 16, 2021 14:45 — forked from emiller/git-mv-with-history
git utility to move/rename file or folder and retain history with it.
#!/bin/bash
#
# git-mv-with-history -- move/rename file or folder, with history.
#
# Moving a file in git doesn't track history, so the purpose of this
# utility is best explained from the kernel wiki:
#
# Git has a rename command git mv, but that is just for convenience.
# The effect is indistinguishable from removing the file and adding another
# with different name and the same content.
@yacafx
yacafx / gulpfile.js
Created June 17, 2016 17:52
Gulp configuration with local web server, livereload, browser-sync and sass compilation
/*****
*
* Install first this modules as devDependencies
*
* npm install browser-sync gulp gulp-autoprefixer gulp-connect gulp-load-plugins gulp-sass --save-dev
*
******/
var gulp = require('gulp'),
$ = require('gulp-load-plugins')(),
@yacafx
yacafx / Instructions.sh
Created August 27, 2018 19:12 — forked from GhazanfarMir/Instructions.sh
Install PHP7.2 NGINX and PHP7.2-FPM on Ubuntu 16.04
########## Install NGINX ##############
# Install software-properties-common package to give us add-apt-repository package
sudo apt-get install -y software-properties-common
# Install latest nginx version from community maintained ppa
sudo add-apt-repository ppa:nginx/stable
# Update packages after adding ppa
@yacafx
yacafx / testng.fish
Last active March 15, 2018 14:59
Fish function for test angular app with appshell
function testng
ng build --prod
http-server -c-1 -p 4200 ./dist
end