Skip to content

Instantly share code, notes, and snippets.

View SyNeto's full-sized avatar

Ernesto Jiménez Villaseñor SyNeto

  • Bedu
  • CDMX, México
View GitHub Profile
@SyNeto
SyNeto / vserver.conf
Created August 16, 2018 16:56
nginx.conf
server{
listen 80;
server_name server_ip1 server_ip2 domain.com1 domain.com2;
root /path/to/root;
index index.html;
location = /favicon.ico { access_log off; log_not_found off; }
location / {
try_files $uri /index.html =404;
@SyNeto
SyNeto / minimal-theme.sh
Created November 5, 2018 18:12
Minimal theme bash-it
#!/usr/bin/env bash
SCM_THEME_PROMPT_PREFIX="${cyan}(${green}"
SCM_THEME_PROMPT_SUFFIX="${cyan})"
SCM_THEME_PROMPT_DIRTY=" ${red}✗"
SCM_THEME_PROMPT_CLEAN=" ${green}✓"
# Get Virtual Env
prompt() {
import React, { Component } from 'react'
import { connect } from 'react-redux'
import { bindActionCreators } from 'redux';
import {
questionDetailAPICallRequestAsync,
questionDetailAPICallRequest
} from '../../actions';
export class QuestionDetail extends Component {
@SyNeto
SyNeto / Links.md
Created November 14, 2018 02:33
Articulos Clase JavaScript Fundamentos
#! /usr/bin/env python3
import csv
import ntpath
import pathlib
import shutil
from unicodedata import normalize
def clean_string(text):
@SyNeto
SyNeto / synetos.itermcolors
Created August 27, 2019 04:21
Iterm colors
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Ansi 0 Color</key>
<dict>
<key>Alpha Component</key>
<real>1</real>
<key>Blue Component</key>
<real>0.0</real>
<script>
import { onMount } from 'svelte';
import { posts } from './blogStore.js';
onMount(async () => {
const data = await fetchPosts();
posts.set(data);
})
const fetchPosts = async (url=null) => {
@SyNeto
SyNeto / keys.cfg
Last active April 4, 2021 16:18
Key numeric maping by position
Escape = 1
D1 = 2
D2 = 3
D3 = 4
D4 = 5
D5 = 6
D6 = 7
D7 = 8
D8 = 9
D9 = 10

Intructions to configure gunicorn with systemd

/etc/systemd/system/gunicorn.socket

[Unit]
Description=gunicorn socket

[Socket]
ListenStream=/run/gunicorn.sock
@SyNeto
SyNeto / foo.bas
Created July 21, 2021 07:10
ALPA (Assembly Language Programming Aid)
0 rem
100 rem ************ alpa ***********
101 rem * *
110 rem * p.rosham, 12/4/1984 *
111 rem * and danny davis *
112 rem * *
115 rem * assembly language *
116 rem * programming aid *
118 rem * *
119 rem * typed by syneto *