Skip to content

Instantly share code, notes, and snippets.

View chumaumenze's full-sized avatar
Working from home


Working from home
View GitHub Profile
chumaumenze /
Created December 24, 2022 21:38 — forked from 0xjac/
Create a private fork of a public repository

The repository for the assignment is public and Github does not allow the creation of private forks for public repositories.

The correct way of creating a private frok by duplicating the repo is documented here.

For this assignment the commands are:

  1. Create a bare clone of the repository. (This is temporary and will be removed so just do it wherever.)

git clone --bare

chumaumenze / envoy-schema.json
Created February 5, 2022 20:22 — forked from linux-china/envoy-schema.json
Envoy configuration json schema for Json and Yaml
"$schema": "",
"title": "Envoy Proxy config schema",
"description": "JSON Schema for Envoy Proxy config",
"type": "object",
"properties": {
"admin": {
"type": "object",
"description": "Configuration for the local administration HTTP server",
"properties": {
#server side:
#server live directory: /var/www/
#server repository: /var/repo/site.git
1. clone project from git/bitbucket into /var/www/ or init the folder by "git init".
2. go to /var/repo/site.git and init the folder as git bare
$git init --bare
--bare means that our folder will have no source files, just the version control.
chumaumenze / defauts.duti
Created September 13, 2021 12:18 — forked from apfelchips/defaults.duti
set file-associations on macOS: ~ 🥖.config 🥖duti 🥖defauts.duti
# duti settings file
# src:
# mkdir -p "${XDG_CONFIG_HOME:-$HOME/.config}/duti/" && curl -L "" -o "${XDG_CONFIG_HOME:-$HOME/.config}/duti/default.duti"
# duti-apply wrapper: alias duti-apply='duti -v "${XDG_CONFIG_HOME:-$HOME/.config}/duti"'
## duti documentation
## see also:
# List of MIME Types:
chumaumenze / vmware.txt
Created January 7, 2021 10:06 — forked from rkennesson/vmware.txt
VMWare - hide the fact that you are running in a VM
# | smbios.reflecthost - Google Search
# | How to install an HP branded Windows OS as a virtual server | BITCON - IT consultants
# | This system is not supported platform |VMware Communities
# | How to edit BIOS information for a virtual machine in VMWare? - Super User
# | How to spoof real Mac in VMware - Multi-booting and Virtualisation - InsanelyMac Forum
Method 1: edit VMX file for the specific VM
#add this line
SMBIOS.reflectHost = TRUE
chumaumenze / .vimrc
Created June 9, 2020 15:13 — forked from miguelgrinberg/.vimrc
My .vimrc configuration for working in Python with vim
" plugins
let need_to_install_plugins = 0
if empty(glob('~/.vim/autoload/plug.vim'))
silent !curl -fLo ~/.vim/autoload/plug.vim --create-dirs
"autocmd VimEnter * PlugInstall --sync | source $MYVIMRC
let need_to_install_plugins = 1
call plug#begin()
chumaumenze /
Created June 7, 2020 23:37 — forked from rain1024/
Install pdflatex ubuntu

PdfLatex is a tool that converts Latex sources into PDF. This is specifically very important for researchers, as they use it to publish their findings. It could be installed very easily using Linux terminal, though this seems an annoying task on Windows. Installation commands are given below.

  • Install the TexLive base
sudo apt-get install texlive-latex-base
  • Also install the recommended and extra fonts to avoid running into the error [1], when trying to use pdflatex on latex files with more fonts.
chumaumenze /
Created May 29, 2020 12:40 — forked from tliron/
Simple and functional REST server for Python (2.7) using no dependencies beyond the Python standard library.
#!/usr/bin/env python
Simple and functional REST server for Python (2.7) using no dependencies beyond the Python standard library.
* Map URI patterns using regular expressions
* Map any/all the HTTP VERBS (GET, PUT, DELETE, POST)
* All responses and payloads are converted to/from JSON for you
chumaumenze / knight-moves.js
Created January 18, 2019 08:38
Toptal Codility Problem: Can Knight reach square?
'use strict';
function getNextPositions(start) {
var moves = [
{ x: -2, y: -1 },
{ x: -2, y: +1 },
{ x: -1, y: -2 },
{ x: -1, y: +2 },
{ x: +1, y: -2 },
{ x: +1, y: +2 },
chumaumenze /
Created July 17, 2018 18:34 — forked from Suor/
Jinja2 template loader for django