Skip to content

Instantly share code, notes, and snippets.

View TheCrott's full-sized avatar
🎯
Focusing

Muhammad Aldo Firmansyah TheCrott

🎯
Focusing
  • Jakarta
View GitHub Profile
@TheCrott
TheCrott / install_symcc.sh
Created September 14, 2021 07:51
script to install symcc
BASE=$PWD
install_packages_12() {
echo "[+] installing packages"
sudo apt-get install wget
wget --no-check-certificate -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add -
sudo add-apt-repository 'deb http://apt.llvm.org/focal/ llvm-toolchain-focal-12 main'
echo "Updated repo "
sudo apt-get update && sudo apt-get upgrade -y
sudo apt-get install -y \
@TheCrott
TheCrott / imagemagick_symcc_log.sh
Created September 14, 2021 07:49
error when building imagemagick 7 with symcc
make all-am
make[1]: Entering directory '/home/aldo/magick_symcc/ImageMagick-7.1.0-7'
CC utilities/magick.o
CC MagickCore/libMagickCore_7_Q16HDRI_la-accelerate.lo
CC MagickCore/libMagickCore_7_Q16HDRI_la-animate.lo
CC MagickCore/libMagickCore_7_Q16HDRI_la-annotate.lo
In file included from utilities/magick.c:44:
In file included from ./MagickWand/studio.h:194:
In file included from ./MagickWand/MagickWand.h:77:
In file included from ./MagickCore/MagickCore.h:78:
@TheCrott
TheCrott / keybase.md
Created August 27, 2021 08:09
Keybase verification

Keybase proof

I hereby claim:

  • I am thecrott on github.
  • I am aldothecrott (https://keybase.io/aldothecrott) on keybase.
  • I have a public key ASB5sqGlLnRZ51lXXcOxLC5ujIQBWONOoqDI9PanLgBM5Ao

To claim this, I am signing this object:

=================================================
OptiMin build script
=================================================
[*] Performing basic sanity checks...
[+] All checks passed!
[*] Making sure EvalMaxSAT is checked out
[*] initializing EvalMaxSAT submodule
Submodule path 'EvalMaxSAT': checked out '440bf90edf88f6ab940934129e3c5b3b93764295'
[+] Got EvalMaxSAT.
@TheCrott
TheCrott / rails_activerecord_cheatsheet.md
Created February 3, 2016 19:09 — forked from amejiarosario/rails_activerecord_cheatsheet.md
Rails ActiveRecord (association) - Cheatsheet

Rails ActiveRecord (association) - Cheatsheet

http://guides.rubyonrails.org/association_basics.html

Types of associations

  • belongs_to : TABLE_NAME
  • has_one : TABLE_NAME [:through => :TABLE_NAME]
  • has_many : TABLE_NAME [:through => :TABLE_NAME]
  • has_and_belongs_to_many : TABLE_NAME [:join_table => :TABLE_NAME]
@TheCrott
TheCrott / index.md
Last active March 5, 2018 11:03 — forked from rstacruz/index.md
Rails models cheatsheet

ActiveRecord Cheatsheet Online

http://slash7.com/cheats/activerecord_cheatsheet.pdf
http://appletree.or.kr/quick_reference_cards/Ruby-Ruby_on_Rails/rails-migrations.pdf

Rails Models

Generating models

$ rails g model User