Sign Up Now!

Sign up and get personalized intelligence briefing delivered daily.


Sign Up

Articles related to "file"


Show HN: Simple realtime 2-way sync with SSH,fswatch and rsync

  • I often find myself editing quite a few files on remote hosts; for anything non-trivial I like to use local-running tools such as Sublime.
  • When things keep getting heavier, I've then used sshfs to mount a remote directory and fuse it to the local filesystem.
  • This usually works ok, but for some types of workflows such as sublime projects with a lot of files in subfolders (node_modules?
  • When launching duplexRsync you'll be prompted to either merge the folders (create these files in the local folder), or destroy all the extra files in the remote folder.
  • Latency for multiple remote edits to propagate to local folder is set by default to 3 seconds, this prevents infinite cycling of change detection.

save | comments | report | share on


Microsoft revives “Clippy” as a sticker for Microsoft Teams

  • Microsoft Office users in the 1990s likely have less-than-kind memories of "Clippit," also known as "Clippy," one of the assistants introduced in Microsoft Office 1997.
  • Now, the Microsoft Office team has revived Clippy as an app to provide animated Clippy stickers in chats in Microsoft Teams, the Slack competitor bundled with Microsoft Office 365.
  • Microsoft originally depended on Teams as value-add for Office 365 subscriptions, which initially caused problems, as organizations could not add individual users to Teams without purchasing a full Office 365 license for that user, complicating the addition of temporary and freelance workers.
  • Teams is well-positioned to go head-to-head against Slack, as organizations with an existing Office 365 subscription can use Teams at no additional cost, making the adoption of Slack a comparatively difficult budget item to justify.

save | comments | report | share on


macOS encrypted folder

  • I recently discovered how to make an encrypted password protected folder on macOS, I thought that this might not be a well known feature and that it would be useful to share with the DEV community.
  • This is a feature build-in to macOS already so no third-party tools are needed.
  • Apple first introduced this feature in macOS Mountain Lion.
  • So if you want to hide your "top secret files" or your cat pics from your colleagues/family read ahead because it is super easy.
  • This will give you a .dmg file that can be moved or shared between devices, just don't forget the password.
  • Opening the encrypted folder is even easier than making it!
  • The .dmg will work as a mounted disk image, so any changes that you do on there will stay in the encrypted folder without needing to make a new one.

save | comments | report | share on


The FBI tracked Michael Cohen's phones with this controversial and highly secretive device

  • Search warrant documents made public Tuesday show the FBI used highly secretive and controversial cellphone sweeping technology to zero-in on President Donald Trump's former personal lawyer when agents raided his New York City home, hotel room, and office last year.
  • The FBI said in its April 8, 2018 warrant application that it was only using the device to locate Cohen's phones, not to intercept his calls or text messages.
  • US Patent and Trademark Office via AP, File Separately, the agency obtained logs of the numbers Cohen was calling and texting, and reams of location data — including for the time period just before the 2016 presidential election, when he negotiated hush-money payments for women alleging they had sex with Trump.
  • But it was the agency's use of cell-site technology that stood out amid nearly 900 pages of documents from the Cohen raids.

save | comments | report | share on


Using Go Modules

  • The go.mod file defines the module’s module path, which is also the import path used for the root directory, and its dependency requirements, which are the other modules needed for a successful build.
  • Each dependency requirement is written as a module path and a specific semantic version.
  • The go command uses the go.sum file to ensure that future downloads of these modules retrieve the same bits as the first download, to ensure the modules your project depends on do not change unexpectedly, whether for malicious, accidental, or other reasons.
  • The go command allows a build to include at most one version of any particular module path, meaning at most one of each major version: one rsc.io/quote, one rsc.io/quote/v2, one rsc.io/quote/v3, and so on.
  • At the same time, allowing different major versions of a module (because they have different paths) gives module consumers the ability to upgrade to a new major version incrementally.

save | comments | report | share on


Why an unbuilt Moscow Trump tower caught Robert Mueller's attention

  • WASHINGTON (Reuters) — An intriguing area of focus in Special Counsel Robert Mueller's investigation into the Kremlin's role in the 2016 US election is a proposed Moscow real estate deal that Donald Trump pursued while running for president despite denying at the time any links to Russia.
  • Joshua Roberts, File Photo/Reuters The project is significant because it shows Trump was chasing a lucrative business deal in Russia at the same time that President Vladimir Putin's government, according to US intelligence agencies, was conducting a hacking and propaganda campaign to boost his candidacy.
  • In 2013, after visiting Russia and hosting his Miss Universe pageant there, he wrote on Twitter: "TRUMP TOWER-MOSCOW is next." The Trump Organization's longtime partner in the project was Felix Sater, a Russian-born, Brooklyn-raised real estate developer, according to company emails released to congressional investigators.

save | comments | report | share on


6 Ways to Deploy your Personal Websites / PHP+ MySQL Web Apps for Free

  • In this post, I'll share my experiences, instructions rather, in deploying your website/web apps in different free web hosts.
  • For your project that doesn't need any database, you can use static web hosts.
  • But if you want to deploy your PHP+MySQL web app, then you check out dynamic web hosts.
  • You can deploy your site by uploading your files or connecting it to your repository.
  • You may do so by clicking New site from Git. You can leave build command and publish directory blank if you're not using Hugo, Jekyll, Gulp and the like.
  • Surge is another static web host in which you can use to deploy your site.
  • In this part, we're going to use Heroku + Remote MySQL combo to deploy our Laravel web app.
  • It makes use of Git to deploy your apps and has its own Heroku CLI in which you can run bash.

save | comments | report | share on


Malware rises from the dead to take vengeance on cryptocurrency trading firms

  • A Trojan-style malware that did the rounds a couple of years ago has risen from the ashes, and is reportedly going after Israeli fintech and cryptocurrency trading software companies.
  • It used a novel technique to infect computers, using a downloader called Carp and malicious macros in Microsoft Excel documents to compile the source code into an executable which then deploys the malware.
  • The Cardinal RAT malware uses data embedded into a Bitmap (BMP) image file that is loaded on to the victim’s computer during installation.
  • According to Unit 42, both victims were fintech companies based in Israel that make software for forex and cryptocurrency trading.
  • Unit 42 believes that the malicious files find their way onto machines through lure documents attached to spam messages that were sent to individuals thought to operate as forex and cryptocurrency traders.

save | comments | report | share on


6 Ways to Deploy your Personal Websites / PHP+ MySQL Web Apps for Free

  • In this post, I'll share my experiences, instructions rather, in deploying your website/web apps in different free web hosts.
  • For your project that doesn't need any database, you can use static web hosts.
  • But if you want to deploy your PHP+MySQL web app, then you check out dynamic web hosts.
  • You can deploy your site by uploading your files or connecting it to your repository.
  • You may do so by clicking New site from Git. You can leave build command and publish directory blank if you're not using Hugo, Jekyll, Gulp and the like.
  • Surge is another static web host in which you can use to deploy your site.
  • In this part, we're going to use Heroku + Remote MySQL combo to deploy our Laravel web app.
  • It makes use of Git to deploy your apps and has its own Heroku CLI in which you can run bash.

save | comments | report | share on


Bundle a TypeScript library with Bili

  • Bili is a bundler built on the top of Rollup, it can be really convenient if you wanna bundle your library in multiple formats, nowadays it's pretty common to build a JavaScript library that works in CommonJS, UMD and ES Modules.
  • Bili also works with TypeScript seamlessly, this post will walk you through creating a simple TypeScript library.
  • We will use rollup-plugin-typescript2 instead of the official rollup-plugin-typescript because the latter does not perform type-checking during compilation.
  • Now Bili will automatically use rollup-plugin-typescript2 if you're building a .ts file.
  • It's recommended to add dist (generated by Bili) and .rpt2_cache (generated by rollup-plugin-typescript2) in .gitignore file.
  • Note that we didn't set include: ['src'] in tsconfig.json directly, because in most cases your editor like VS Code will use that file by default and you don't want other files like ./my-lib/test/index.test.ts to be excluded.
  • Check out https://github.com/egoist/objql for a simple real-world TypeScript library.

save | comments | report | share on