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 / Chromium-at-startup.md
Last active April 26, 2024 11:56
How to open Chromium in full screen at startup on the Raspberry Pi

First, it seems that ~/.config/lxsession/LXDE-pi/autostart does not exist by default.

  1. copy the autostart
cp /etc/xdg/lxsession/LXDE-pi/autostart ~/.config/lxsession/LXDE-pi/
@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 / 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 / TNT’s certificate.md
Last active April 21, 2024 12:26
If Crashes when opening Mac Cracked Apps

Apple removed TNT’s certificate, so the app will crash after July 12th. The current solution is to sign it yourself.

Run in Terminal

codesign --force --deep --sign - /Applications/name.app

if Permission denied don't forget to add sudo

example:

@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 / 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 / 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 / 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 / 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