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 / increase SWAP size in Raspberry Pi.md
Created June 24, 2022 02:40
tutorial How increase SWAP memory size in Raspberry Pi

increase SWAP size in Raspberry Pi

What is SWAP memory?

SWAP memory is basically parts of memory from the RAM (Random Access Memory) that enables an operating system to provide more memory to a running application or process than is available in physical random access memory (RAM). So if the physical memory (RAM) is full, we can use SWAP partition for extra memory resources. It is useful if we have low memory on our machine.

Step 1: Stop the SWAP

sudo dphys-swapfile swapoff
@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 / Sideloadly-Error.md
Last active April 3, 2023 07:34
Sideloadly Error windows 10, Guru Meditation [Errno 22]

Sideloadly Error windows 10

Guru Meditation [Errno 22]

the error showed in screen

ERROR: Guru Meditation 8d61e2@1069:2d389a [Errno 22] Invalid argument