Copy from a Protected Google Sheet/Doc


How to “secure” your Doc/Sheet Google Docs/Sheets give users ability to “lock” their content. This makes files viewable but no editing or copying will work. To secure your doc/sheet, click on the share button: In the new popup click on the gear icon: In this settings page, uncheck the “Viewers and commenters can see the option to download, print, and copy” If you don’t want people to change the content in a spreadsheet, you can protect it.…
Read more ⟶

macOS hidden unix folders and files


Hidden folders and files not visible in Finder If after an upgrade or update certain functions are no longer working like Crontab tasks, most likely it is because of new security features or existing permissions were reset. To provide permission for binaries to be ran like anything under /usr/sbin/, it can be done through System Preferences -> Security & Privacy -> Privacy -> Full Disk Access. To get /usr/sbin/ folder to show up, press CMD+SHIFT+G.…
Read more ⟶

Setting up custom email on a Google domain


This is a guide on setting up custom email address using a Google domain. First thing is to register a domain through Google domains. Once domain has been registered, set up email forwarding in Google domains email setup page. This will allow any emails sent to your custom email to be forwarded to your existing address. Last thing to set up would be to add your new email as an address you can reply from.…
Read more ⟶

Billions of Other Earths!


Based on a statistical analysis of all the Kepler observations, astronomers at UC Berkeley and University of Hawaii, Manoa now estimate that one in five stars like the sun have planets about the size of Earth and a surface temperature conducive to life. “When you look up at the thousands of stars in the night sky, the nearest sun-like star with an Earth-size planet in its habitable zone is probably only 12 light years away and can be seen with the naked eye.…
Read more ⟶

Add a new host to known_hosts


When you ssh into a machine, you get prompted for a confirmation of the key fingerprint. This happens only the first time a machine is sshed into. After that, there will be an entry added in the ~/.ssh/known_hosts file which will be used. There are two simple ways (both leaves you open to man in the middle attacks) this prompt can be bypassed. Pass extra parameters to ssh command By setting the StrictHostKeyChecking to no via -o, we can bypass the prompt by not checking ~/.…
Read more ⟶

Delete a commit in git


It is possible that you make a commit without verifying the changes you are committing and don’t notice your error in time. Once you review the commit and notice that there is something in the commit that doesn’t belong there, how do you remove that specific commit? To easily remove all the changes from a local git repository, use git reset --hard HEAD~ In this short post I will explain how to delete a commit in your repository and push the changes remotely.…
Read more ⟶

Delete all commits from git branch


Create a new blank branch (NEW_BRANCH) git checkout --orphan NEW_BRANCH git rm -rf . Add a single file (need to have a commit) touch README.md git add README.md git commit -m "initial" Delete the branch you want to remove (OLD_BRANCH) git branch -D OLD_BRANCH Rename the current branch (NEW_BRANCH) to the deleted branch (OLD_BRANCH) git branch -m OLD_BRANCH Push your changes git push -f origin OLD_BRANCH …
Read more ⟶

Update a github fork


Github forked repositories can be updated from Github or terminal. To update from Github, you can create a “Pull Request” from the original repository to yours. For updating using the terminal, add the original repo as a remote upstream to sync from. # check that there is no remote upstream repo and add one git remote -v git remote add upstream https://github.com/Original/OriginalRepo.git # verify that upstream has been added and fetch branches and commits into upstream/master git remote -v git fetch upstream # checkout fork's master branch and do a merge of upstream/master into it git checkout master git merge upstream/master # push the changes to have your master branch git push …
Read more ⟶

Chinese, a Damn Hard Language


Those who undertake to study the language for any other reason than the sheer joy of it will always be frustrated. Whatever the reason they started, every single person who has undertaken to study Chinese sooner or later asks themselves “Why in the world am I doing this?” Those who can still remember their original goals will wisely abandon the attempt then and there, since nothing could be worth all that tedious struggle.…
Read more ⟶

Difference between a star and a planet


Stars and Planets are two different but very similar objects. Some of the properties that differentiate them are: Stars undergo nuclear reactions that burn hydrogen in their cores. For an object to have high enough temperature in its core to burn hydrogen, it needs to have a mass of at least 75 times of Jupiter. Anything smaller than that would be considered a planet. Stars form when a cloud of gas collapses under the influence of gravity.…
Read more ⟶