Skip to content

Instantly share code, notes, and snippets.

View j1cs's full-sized avatar
😺
Im on #cat-v mostly

Juan Cuzmar j1cs

😺
Im on #cat-v mostly
View GitHub Profile
{
"git.confirmSync": false,
"window.zoomLevel": 0,
"workbench.editor.enablePreview": false,
"explorer.openEditors.visible": 0,
"workbench.startupEditor": "newUntitledFile",
"files.exclude": {
"**/.git": true,
"**/.DS_Store": true,
"**/.history": true,
#!/bin/bash
# generated vscodium --list-extensions | xargs -L 1 echo code --install-extension
PLUGINS=(formulahendry.code-runner
octref.vetur
PKief.material-icon-theme
will-stone.plastic)
for i in "${PLUGINS[@]}"
do
vscodium --install-extension "$i"
@j1cs
j1cs / 99-libinput-mouse.conf
Created June 23, 2019 04:47
from my asus rog
# /usr/share/X11/xorg.conf.d/99-libinput.conf
Section "InputClass"
Identifier "libinput touchpad catchall"
Driver "libinput"
MatchProduct "ELAN1200:00 04F3:3045 Touchpad"
MatchIsTouchpad "on"
Option "Tapping" "True"
Option "DisableWhileTyping" "True"
Option "NaturalScrolling" "True"
Option "AccelProfile" "adaptive"
git submodule foreach git pull origin develop
export $(dbus-launch)
# could be in /etc/profile.d/dbus.sh
# this with lxdm and i3wm in artix linux.
# if there another way i will see
gdbus call --session --dest org.freedesktop.DBus --object-path /org/freedesktop/Dbus --method org.freedesktop.DBus.ListNames
# Fist install the last version nodejs
$ apt install -y nodejs # Debian/Ubuntu
$ pacman -S nodejs npm # Archlinux
$ yum install nodejs # RHEL/Defora
$ xbps-install -Sy nodejs # Voidlinux
# then install some pkgs from npm repo/manager
# more info: https://docs.npmjs.com/downloading-and-installing-packages-globally
$ sudo npm i -g @amgular/cli # to install angular cli https://cli.angular.io/
'use strict';
const HttpsProxyAgent = require('https-proxy-agent');
/*
* API proxy configuration.
* This allows you to proxy HTTP request like `http.get('/api/stuff')` to another server/port.
* This is especially useful during app development to avoid CORS issues while running a local server.
* For more details and options, see https://github.com/angular/angular-cli#proxy-to-backend
*/
@j1cs
j1cs / package.json
Last active February 25, 2019 13:28
{
"name": "angular-workshop",
"version": "0.0.0",
"scripts": {
"ng": "ng",
"start": "ng serve --aot --proxy-config proxy.conf.js",
"serve:sw": "npm run build:prod && npx http-server ./dist -p 4200",
"build": "ng build --prod",
"test": "ng test",
"lint": "ng lint",
SSH_ENV=$HOME/.ssh/environment
function start_agent {
/usr/bin/ssh-agent | sed 's/^echo/#echo/' > "${SSH_ENV}";
chmod 600 "${SSH_ENV}"
. "${SSH_ENV}" > /dev/null
adding_keys
}
function adding_keys {
for possiblekey in ${HOME}/.ssh/*; do