Skip to content

Instantly share code, notes, and snippets.

View rampfox's full-sized avatar
🏠
Working from home

rampfox

🏠
Working from home
View GitHub Profile
@rampfox
rampfox / damagedapp.md
Created January 4, 2020 08:30
Fix damaged app message on macOS sierra or later

Fix damaged app message on macOS sierra or later

you might have to completely disable Gatekeeper checks, and to do that open your terminal and type:

sudo spctl --master-disable

Enter your password and you’re done. Note that there are two (2) dashes before master. You might miss that while copy/pasting.

To verify that your operation was successful you need to open System Preferences and verify that the Anywhere option is now visible. system preferences > security & privacy

@rampfox
rampfox / multiDimensionalArray.js
Created May 6, 2021 14:09
Pretest 6 May 2021 -- multidimensional array
let activities = [
['Work', 9],
['Eat', 1],
['Commute', 2],
['Play Game', 1],
['Sleep', 7]
];
@rampfox
rampfox / oneDimensionArray.js
Created May 6, 2021 14:15
Pretest 6 May 2021 -- one dimension of array
let activities = ['Makan', 'Kerja', 'Main game', 'Tidur];
@rampfox
rampfox / Install ZeroTier on Raspberri Pi.md
Last active December 15, 2021 00:54
Accessing your Raspberry Pi securely from the Internet using ZeroTier

How-to Install ZeroTier on Raspberry Pi

Tested with RPi 3B+, Raspberry Pi OS Buster

  1. Run the shell command under their download page (the more secure, GPG option is recommended).
  2. To ensure ZeroTier starts on system boot, run sudo systemctl enable zerotier-one
  3. Check if everything is working by running sudo zerotier-cli status; > it should return 200 info [ID] [version] ONLINE if all is fine
@rampfox
rampfox / setting-network-headless.md
Last active June 16, 2022 13:16
Setting up preferred network a Raspberry Pi headless

Setting up preferred network a Raspberry Pi headless

This method is suitable if you don't have access to the graphical user interface normally used to set up WiFi on the Raspberry Pi.

Note also that no additional software is required; everything you need is already included on the Raspberry Pi.

Setting up wireless networking

You will need to define a wpa_supplicant.conf
Put this file in the boot Volumes

@rampfox
rampfox / prevent-chromium-extension-to-auto-update.md
Last active November 7, 2022 07:56
How to prevent / stop Chromium Extension to Auto Update on raspberry pi

How to prevent / stop Chromium Extension to auto update

Im Using Raspberry Pi 3B+ with Raspbian Buster (Debian version: 10)

You can do this by editing chromium profile preferences file:
  1. On Terminal: ${HOME}/.config/chromium/Profile 3/Preferences
cd ~/.config/chromium/Profile\ 3/
@rampfox
rampfox / FaceTime Camera.md
Last active November 23, 2022 04:13
Fixing Error with a Mac FaceTime Camera

Fixing Error with a Mac FaceTime Camera

“There is no connected camera” problem

No Connected Camera???


Solution 1

@rampfox
rampfox / xdotool.md
Created December 24, 2021 13:44
xdotool - A macro mouse and keyboard for raspberry pi

xdotool - command-line X11 automation tool


A macro mouse and keyboard for raspberry pi

xdotool lets you programatically (or manually) simulate keyboard input and mouse activity, move and resize windows, etc. It does this using X11's XTEST extension and other Xlib functions.

how to install

in terminal:

@rampfox
rampfox / my personal Cronjob.md
Last active July 15, 2023 01:16
Cronjob for my raspberry pi

What is a Cron Job?

Cron is a utility program for repeating tasks at a later time. Giving a command that schedules a task, at a specific time, repeatedly is a cron job.


to edit a crontab file of the current user, type the following command in the terminal:

crontab -e

to remove the current crontab file of the current user, type the following command:

@rampfox
rampfox / FortiClient-vpn-no-updates-found-error.md
Last active August 31, 2023 07:31
FortiClient no updates found error while try to reinstall from scratch | MacOS

FortiClient "No updates found" error

I tried to reinstall FortiClient VPN for MacOS from beginning using FortiClientVPNOnlineInstaller_7.0 but the system said No updates found

dmallam5


Remove the following directories on your Mac:

sudo rm -rf /Library/Application Support/Fortinet