I'm quite new at Node and Git, I've been working on this repository for a couple of days and I'm not sure how to make it work. It tells me to configure some vars but I don't quite understand how to. Which file should have the actual LOGIN, PASSWORD, SLACK, etc.(Or should I just type them in the terminal)? What should I be typing in the Node Terminal?
Neither am I sure how to run the github files since every time I call it in the terminal it types "No local config found" or "Cannot find module"
I have no clue how to go on, so any help would be REALLY appreciated.
https://github.com/nicolsc/slack-sigfox-last-message
Create a file config.local.js and store the parameters inside. each existing parameter will override the defaults.
the files named config.*.local are also added to .gitignore which self-explain that those kind of files are configuration files.
Related
I recently pushed my entire bot to a hosting service called "Vultr" and tried running my bot but I was encountered with the error: Error: Cannot find module './commands/banner.js' and I don't know why this is happening as it works perfectly fine locally on my pc. If anyone knows why this is happening and the solution please provide how to fix it. I have provided images below to help.
Thanks, Gianni.
In my ubuntu terminal:
The code:
FileZilla directory: (Both commands folders have the javascript files)
Looking at Filezilla the folder name at Mythra is Commands, not commands (as written in your code). If that is a Linux server, folders are case sensitive unlike Windows machines which ignore case.
I would fix the folder names on your local machine and repush the site. If I remember right you can't simply change the name only by case, it doesn't keep. You need to change the folder to a different name then to what you want. For example:
Commands -> cCommands -> commands
I'm trying go make an application able to run a file type, I want to get the path to the file which the user opened the app with.
You can use NL_CWD to get the current working directory. See more information about Neutralinojs global variables here.
I created a Discord bot i want to share with others but the community i want to share it with got a bad habbit of removing credits and so on.
What i am trying to do is compile my bot script in to native code i have tryed nexe, and that works fine, but i dont want it to encode the settings file, where the users need to add there bot token, and channels that the bot should work with.
I Tryed looking in to PKG to but i can't find a clear answer on how to do this, is there anyone out there that can lead me in the right direction?
A couple ways around this:
Have the user pass in the settings file location as the first argument to the binary: ./binary ./settings.json
Have the user set an environment variable with the settings file location: BINARY_SETTINGS=/home/user/settings.json ./binary
Expect the settings file location to be the current directory of the binary
For example, to do 3 with pkg, you can use the suggestion in the docs:
On the other hand, in order to access real file system at run time (pick up a user's external javascript plugin, json configuration or even get a list of user's directory) you should take process.cwd() or path.dirname(process.execPath).
Good day!
There are PHP scripts, classes, configs. All this stuff is interconnected, I need to give a person access to the server so that he works (started under the root) with these scripts, while changing only the config files, and in order to not be able to view the source code.
I've researched various free obsfukators which converting code into something:
<?php include(base64_decode('Li4vY29uZmlnLnBocA=='));include(base64_decode('cHJpdmF0ZS92ZW5kb3IvYXV0b2xvYWQucGhw'));$krc_5bf7f45b=[];foreach($bhi_6f9322e1as $xol_e8b7be43){$xol_e8b7be43=explode(base64_decode('Og=='),$xol_e8b7be43);try{$uic_c59361f8=new \xee_d9cb1642\cko_659fc60();$uic_c59361f8->ldc_aa08cb10($xol_e8b7be43[0],$xol_e8b7be43[1]);$krc_5bf7f45b[]=$uic_c59361f8;}catch(Exception $wky_efda7a5a)
What if the files of configs have variable names and it turns out that when obfuscating the main working code, the variables have different names? Not to force the user to run through the obsfukation corrected config every time? So far, this option seems the only one.
Is it possible inside the server under Ubuntu to somehow limit the ability to copy or view or download certain files or make some other methods of protection-hiding, but at the same time with the ability to run this code. It was thought to hide the code somewhere in the depths of the file system folders, calling them random names, and run them somehow through the symlinks by the file name or something like that. Is it possible to?
Option not to provide root access to the server, but to launch via the browser, to give access only to FTP to upload the config to a separate folder. But there are a number of points - all scripts run up to a week, and must be executed as root. How to solve it?
I created a new Meteor project in WebStorm and it generated hello.html file which is the default page of the app, and hello.js file.
Now the thing is that I don't want these files to be named "Hello". How can I change the default/initial files of Meteor?
I searched references for these files in the project but I didn't find anyone, meaning that they are not defined hard coded.
Any help will be profoundly appreciated!
Edit: I just found out that I can name the initial file when I create a new Meteor project in WebStorm. I'd rather change it in the current project than creating a new one though. Is this possible?
if you create new project in command line then running meteor create appName will generate files appName.js, appName.html and appName.css
in general, it does not matter what are the file names in meteor. Naming starts to matter a bit more once you start organising files into folders, but for a start you can ignore that.