Skip to content

Instantly share code, notes, and snippets.

View frytg's full-sized avatar
🏜️

Dan frytg

🏜️
View GitHub Profile
@frytg
frytg / __NOTE
Last active January 19, 2021 10:57
ARD Meta Exchange
#########################
#########################
#########################
Future discussions and schemas => https://github.com/swrlab/ard-eventhub/
#########################
#########################
#########################
@frytg
frytg / Certbot.md
Created April 10, 2020 13:48
Certbot
apt autoremove
apt-get clean
apt --fix-broken install
apt-get update
apt-get upgrade
apt-get dist-upgrade

apt-get install certbot python-certbot-nginx -t stretch-backports
@frytg
frytg / CLI.md
Created December 30, 2019 13:53

make random stuff

openssl rand -base64 17
@frytg
frytg / at.md
Created July 4, 2019 08:54
Unix At

UNIX AT Command

Schedule command in PHP

$job = "echo '/usr/bin/php5 /path/to/file.php " . $IdYouWantToGive . " false > /dev/null 2>&1' | at now + 1 minute 2>&1";
$exec = system($job);

Build queue by cycling through items

@frytg
frytg / GIT.md
Created February 24, 2019 15:58
GIT

GIT Tools

Store user.name globally

git config --global user.name "abc"

Enable credential storing

git config --global credential.helper store

Creating a Public Key

  1. Go to .ssh
cd ~/.ssh
  1. make key
ssh-keygen -t rsa
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;
@frytg
frytg / JS.md
Last active January 31, 2019 07:40

JS things

Get timestamp in secs

Math.floor(Date.now() / 1000)

or

moment().unix()
@frytg
frytg / Docker.md
Last active January 25, 2019 12:49

Docker things

List all Images:

docker images

Delete all Images (DANGERZONE):

docker rmi $(docker images -q)
@frytg
frytg / Expo.md
Last active January 21, 2019 11:18

EXPO CLI

Launching
exp start

Turning of dev mode to see prod errs
exp start --minify --no-dev