Giter Site home page Giter Site logo

nmly's Introduction

Welcome! ๐Ÿ‘‹

I'm Usbac ๐Ÿฆ„ I'm currently building new things for me and the world.

I work at different levels of abstraction, but at the end I just make a computer go beep boop ๐Ÿ’ป.

I believe in the power of open source software, you can join me in this adventure by contribuiting to my different projects.

In my free time I make educational Youtube videos about software development in my native language Spanish.

I focus on web development and everything related to the C programming language.

Unicorns are awesome.

nmly's People

Contributors

clove3am avatar kerouichareda avatar pratik32 avatar usbac avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

pratik32

nmly's Issues

macOS support?

Hi!

nmly does compile on macOS 10.11 and shows help but segfaults if run with no parameters (Segmentation fault: 11), and when run with parameters, doesn't really do anything (or am I missing something?):

test> dir
total 0
-rw-r--r-- 1 s 0 Sep 27 06:18 1.txt
-rw-r--r-- 1 s 0 Sep 27 06:18 2.txt
test> ../nmly after world -d ./
Apply the changes in the following directory './'? [Y/n]
test> dir
total 0
-rw-r--r-- 1 s 0 Sep 27 06:18 1.txt
-rw-r--r-- 1 s 0 Sep 27 06:18 2.txt
test> ../nmly replace txt text -d ./
Apply the changes in the following directory './'? [Y/n]
test> dir
total 0
-rw-r--r-- 1 s 0 Sep 27 06:18 1.txt
-rw-r--r-- 1 s 0 Sep 27 06:18 2.txt

Here's its build log:

gcc -v -c nmly.c
Apple LLVM version 8.0.0 (clang-800.0.42.1)
Target: x86_64-apple-darwin15.6.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin
 "/Library/Developer/CommandLineTools/usr/bin/clang" -cc1 -triple x86_64-apple-macosx10.11.0 -Wdeprecated-objc-isa-usage -Werror=deprecated-objc-isa-usage -emit-obj -mrelax-all -disable-free -disable-llvm-verifier -discard-value-names -main-file-name nmly.c -mrelocation-model pic -pic-level 2 -mthread-model posix -mdisable-fp-elim -masm-verbose -munwind-tables -target-cpu core2 -target-linker-version 274.2 -v -dwarf-column-info -debugger-tuning=lldb -coverage-file /Users/me/Desktop/nmly/nmly.c -resource-dir /Library/Developer/CommandLineTools/usr/bin/../lib/clang/8.0.0 -fdebug-compilation-dir /Users/s/Desktop/nmly -ferror-limit 19 -fmessage-length 181 -stack-protector 1 -fblocks -fobjc-runtime=macosx-10.11.0 -fencode-extended-block-signature -fmax-type-align=16 -fdiagnostics-show-option -fcolor-diagnostics -o nmly.o -x c nmly.c
clang -cc1 version 8.0.0 (clang-800.0.42.1) default target x86_64-apple-darwin15.6.0
#include "..." search starts here:
#include <...> search starts here:
 /usr/local/include
 /Library/Developer/CommandLineTools/usr/bin/../lib/clang/8.0.0/include
 /Library/Developer/CommandLineTools/usr/include
 /usr/include
 /System/Library/Frameworks (framework directory)
 /Library/Frameworks (framework directory)
End of search list.
gcc -v -c helper.c
Apple LLVM version 8.0.0 (clang-800.0.42.1)
Target: x86_64-apple-darwin15.6.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin
 "/Library/Developer/CommandLineTools/usr/bin/clang" -cc1 -triple x86_64-apple-macosx10.11.0 -Wdeprecated-objc-isa-usage -Werror=deprecated-objc-isa-usage -emit-obj -mrelax-all -disable-free -disable-llvm-verifier -discard-value-names -main-file-name helper.c -mrelocation-model pic -pic-level 2 -mthread-model posix -mdisable-fp-elim -masm-verbose -munwind-tables -target-cpu core2 -target-linker-version 274.2 -v -dwarf-column-info -debugger-tuning=lldb -coverage-file /Users/me/Desktop/nmly/helper.c -resource-dir /Library/Developer/CommandLineTools/usr/bin/../lib/clang/8.0.0 -fdebug-compilation-dir /Users/s/Desktop/nmly -ferror-limit 19 -fmessage-length 181 -stack-protector 1 -fblocks -fobjc-runtime=macosx-10.11.0 -fencode-extended-block-signature -fmax-type-align=16 -fdiagnostics-show-option -fcolor-diagnostics -o helper.o -x c helper.c
clang -cc1 version 8.0.0 (clang-800.0.42.1) default target x86_64-apple-darwin15.6.0
#include "..." search starts here:
#include <...> search starts here:
 /usr/local/include
 /Library/Developer/CommandLineTools/usr/bin/../lib/clang/8.0.0/include
 /Library/Developer/CommandLineTools/usr/include
 /usr/include
 /System/Library/Frameworks (framework directory)
 /Library/Frameworks (framework directory)
End of search list.
gcc -v -o nmly nmly.o helper.o
Apple LLVM version 8.0.0 (clang-800.0.42.1)
Target: x86_64-apple-darwin15.6.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin
 "/Library/Developer/CommandLineTools/usr/bin/ld" -demangle -dynamic -arch x86_64 -macosx_version_min 10.11.0 -o nmly nmly.o helper.o -lSystem /Library/Developer/CommandLineTools/usr/bin/../lib/clang/8.0.0/lib/darwin/libclang_rt.osx.a

Add file size based filter to utility.

I wish to add a new filter to the utility. The file size based filter.
i.e the command will only run on the files which satisfy given file size constraints.
e.g
$ nmly reverse -d test/ -s -6G
This will only reverse files with size less than 6GB size.
$ nmly replace jpeg jpg -d ./ -s +15M
This will only work on files with size greater than equal to 15MB

errors while building from source

$ gcc -o nmly nmly.o
giving following error

nmly.o: In function getChanges': nmly.c:(.text+0xe9): undefined reference to strBefore'
nmly.c:(.text+0xfe): undefined reference to strAfter' nmly.c:(.text+0x11b): undefined reference to strAfter'
nmly.c:(.text+0x1a8): undefined reference to before' nmly.c:(.text+0x1cf): undefined reference to after'
nmly.c:(.text+0x1eb): undefined reference to upper' nmly.c:(.text+0x207): undefined reference to lower'
nmly.c:(.text+0x234): undefined reference to switchSides' nmly.c:(.text+0x24d): undefined reference to reverse'
nmly.c:(.text+0x279): undefined reference to replace' nmly.c:(.text+0x2a1): undefined reference to replace'
collect2: error: ld returned 1 exit status

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.