Skip to content

Instantly share code, notes, and snippets.

View AmilcarArmmand's full-sized avatar

AArmmand AmilcarArmmand

View GitHub Profile
AmilcarArmmand /
Last active May 2, 2024 06:14
Project planning

China's prosperity is built on:

  • Industrial foundation during Mao era, with Soviet help, which was the biggest organized industry transfer in history.
  • Reform & opening up, building up the biggest foreign-exchange reserve.
  • The most direct increase in wealth among Chinese families are actually the property value.
  • Housing in its essence is just a wooden or concrete box, its real value exists in the location and services near it (schools, healthcare, transport and job opportunities).
  • These property wealth were all backed by China's massive industries, exports and foreign echange reserves.
  • China's exports, was because of the industrial foundation and social reforms of the Mao era
  • Imports
AmilcarArmmand /
Created April 7, 2024 21:33 — forked from ungoldman/
post a JSON file with curl

How do you POST a JSON file with curl??

You can post a json file with curl like so:

curl -X POST -H "Content-Type: application/json" -d @FILENAME DESTINATION

so for example:

AmilcarArmmand /
Created March 17, 2024 03:29 — forked from pvik/
A Cheatsheet for Emacs Smarparens example configuration

An animated cheatsheet for smartparens using the example configuration specified here by the smartparens author. Inspired by this tutorial for paredit.


C-M-f sp-forward-sexp
C-M-b sp-backward-sexp
AmilcarArmmand / dsc205-activity-6.ipynb
Last active March 7, 2024 02:47
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
AmilcarArmmand / gist:4802752d7f9a21afa0534bd81d89bc47
Created September 9, 2020 18:51 — forked from rxaviers/gist:7360908
Complete list of github markdown emoji markup


:bowtie: :bowtie: 😄 :smile: 😆 :laughing:
😊 :blush: 😃 :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
😆 :satisfied: 😁 :grin: 😉 :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: 😀 :grinning:
😗 :kissing: 😙 :kissing_smiling_eyes: 😛 :stuck_out_tongue:
AmilcarArmmand /
Created June 24, 2020 04:10 — forked from quickshiftin/
Running GNU coreutils via Homebrew on your Mac? Here's a one-liner to get the manpages working!
# Short of learning how to actually configure OSX, here's a hacky way to use
# GNU manpages for programs that are GNU ones, and fallback to OSX manpages otherwise
alias man='_() { echo $1; man -M $(brew --prefix)/opt/coreutils/libexec/gnuman $1 1>/dev/null 2>&1; if [ "$?" -eq 0 ]; then man -M $(brew --prefix)/opt/coreutils/libexec/gnuman $1; else man $1; fi }; _'
# see
# core
brew install coreutils
# key commands
brew install binutils
brew install diffutils
brew install ed --default-names
brew install findutils --with-default-names

Typing vagrant from the command line will display a list of all available commands.

Be sure that you are in the same directory as the Vagrantfile when running these commands!

Creating a VM

  • vagrant init -- Initialize Vagrant with a Vagrantfile and ./.vagrant directory, using no specified base image. Before you can do vagrant up, you'll need to specify a base image in the Vagrantfile.
  • vagrant init <boxpath> -- Initialize Vagrant with a specific box. To find a box, go to the public Vagrant box catalog. When you find one you like, just replace it's name with boxpath. For example, vagrant init ubuntu/trusty64.

Starting a VM

  • vagrant up -- starts vagrant environment (also provisions only on the FIRST vagrant up)
AmilcarArmmand / cheat_sheet.txt
Created April 20, 2020 21:48
GDB cheat sheet
GDB commands by function - simple guide
More important commands have a (*) by them.
% gdb -help print startup help, show switches
*% gdb object normal debug
*% gdb object core core debug (must specify core file)
%% gdb object pid attach to running process
% gdb use file command to load object