Skip to content

Instantly share code, notes, and snippets.

@sysang
sysang / sysctl.conf
Created March 31, 2022 08:36 — forked from yegorg/sysctl.conf
ubuntu sysctl performance tuning
# Kernel sysctl configuration file for Linux
#
# Version 1.12 - 2015-09-30
# Michiel Klaver - IT Professional
# http://klaver.it/linux/ for the latest version - http://klaver.it/bsd/ for a BSD variant
#
# This file should be saved as /etc/sysctl.conf and can be activated using the command:
# sysctl -e -p /etc/sysctl.conf
#
# For binary values, 0 is disabled, 1 is enabled. See sysctl(8) and sysctl.conf(5) for more details.
# How to echobot with XMPP, BOSH, and Strophe
1. Setup ejabberd(http://www.ejabberd.im/) server and setup account admin@localhost.local
NOTE: localhost should be enough. If you setup something else, make sure you add it at /etc/hosts like this
#/etc/hosts
127.0.0.1 localhost.local
NOTE: Also download Psi(http://psi-im.org/), and make sure you can connect to your ejabberd server.
2. Download strophe(http://code.stanziq.com/strophe/) and place it (eg: /Users/makoto/work/sample/strophejs-1.0)
@sysang
sysang / .htaccess
Created June 26, 2020 10:49 — forked from ScottPhillips/.htaccess
Common .htaccess Redirects
#301 Redirects for .htaccess
#Redirect a single page:
Redirect 301 /pagename.php http://www.domain.com/pagename.html
#Redirect an entire site:
Redirect 301 / http://www.domain.com/
#Redirect an entire site to a sub folder
Redirect 301 / http://www.domain.com/subfolder/
@sysang
sysang / onedark.vim
Created June 12, 2020 02:36 — forked from addoull/onedark.vim
Change cterm colors to get a better color shceme
" Vim Color File
" Name: onedark.vim
" Maintainer: https://github.com/joshdick/onedark.vim/
" License: The MIT License (MIT)
" Based On: https://github.com/MaxSt/FlatColor/
" A companion [vim-airline](https://github.com/bling/vim-airline) theme is available at: https://github.com/joshdick/airline-onedark.vim
" +-----------------+
" | Color Reference |

jupyter_execute

Execute nbconver of docker container to convert ipynb to html

Dockerfile

Jupyter notebook container base on https://hub.docker.com/r/nvidia/cuda/

run_jupyter_cuda_enabled.md

Step to manually create jupyter notebook with cuda enabled

main.min.js

To modify file to make Jupyter Notebook reload file without restart kernel

@sysang
sysang / 000_neovim.md
Last active August 27, 2020 03:33
memo for neovim usage
@sysang
sysang / 000_useful-scripts.md
Last active May 17, 2022 05:02
Useful Scripts

Useful Scripts

CSSCurlyBrace.html

dockerfile(PHP7.2 Deployment)

dockerfile(PHP5.6 Deployment)

docker-compose(sample).yml

my-xdebug.ini

vhost.conf

Apache2 virtual host config sample

start_kcpturn_client

To improve ssh connection

@sysang
sysang / README.md
Last active March 25, 2020 10:25
Very simple XDebug trace web GUI, forked from https://github.com/splitbrain/xdebug-trace-tree

XDebug Trace Tree

This is a simple PHP script to display XDebug traces in a tree like visualization. It can collapse parts that you're not interested in when analysing the trace, making it much easier to follow the program flow.

Installation is simple. Just clone this dierectory to somewhere in your webserver and it should automatically list all available trace files.

Important: this is meant a personal debugging - it should not be installed on a public webserver (Its passing full file paths).

@sysang
sysang / utilities.md
Last active October 4, 2021 17:29
Awesome Git repositories: dotfiles, jupyter, neovim, ssh, zsh, utility
@sysang
sysang / deep-learning.md
Last active August 9, 2023 01:43
Awesome Git Repositories: Deep Learning, NLP, Compute Vision, Model & Paper, Chatbot, Tensorflow, Julia Lang, Software Library, Reinforcement Learning