In iTerm2, in the menu bar go to Scripts > Manage > New Python Script
Select Basic. Select Long-Running Daemon
Give the script a decent name (I chose auto_dark_mode.py
)
Save and open the script in your editor of choice.
1)Get the packages required for converting the rpm package. | |
sudo apt-get install alien dpkg-dev debhelper build-essential zlib1g-dev | |
2)Get and install libXp6. | |
sudo add-apt-repository ppa:zeehio/libxp | |
sudo apt-get update | |
sudo apt-get install libxp6 | |
3) Extract the contents of the Maya installation package and change directory to its install/Packages directory. |
""" | |
Simple implementation of a finite state machine. | |
Author: Tang U-Liang | |
Date: 2 Oct 2020 | |
""" | |
import attr | |
from enum import Enum | |
import inspect |
brew install pandoc | |
brew tap homebrew/cask | |
brew install --cask basictex | |
eval "$(/usr/libexec/path_helper)" | |
# Update $PATH to include `/usr/local/texlive/2022basic/bin/universal-darwin` | |
sudo tlmgr update --self | |
sudo tlmgr install texliveonfly | |
sudo tlmgr install xelatex | |
sudo tlmgr install adjustbox | |
sudo tlmgr install tcolorbox |
#!/bin/bash | |
# This script rotates the screen and touchscreen | |
# by Ruben Barkow-Kuder: https://gist.github.com/rubo77/daa262e0229f6e398766 | |
#### configuration | |
# find your Touchscreen device with `xinput` | |
TouchscreenDevice="$(xrandr |grep eDP|cut -d" " -f1)" | |
if [ "$1" = "--help" ] || [ "$1" = "-h" ] ; then |
#!/bin/bash | |
gource \ | |
-s .03 \ | |
-1280x720 \ | |
--auto-skip-seconds .1 \ | |
--multi-sampling \ | |
--stop-at-end \ | |
--key \ | |
--highlight-users \ |
// Fill out your copyright notice in the Description page of Project Settings. | |
#include "LoaderBPFunctionLibrary.h" | |
#include "RuntimeMeshLoader.h" | |
#include <assimp/Importer.hpp> // C++ importer interface | |
#include <assimp/scene.h> // Output data structure | |
#include <assimp/postprocess.h> // Post processing flags | |
void FindMeshInfo(const aiScene* scene, aiNode* node, FReturnedData& result) | |
{ |
You have to do 2 things in order to allow your container to access your host's postgresql database
Obs: By "Host" here I mean "the server where docker is running on".
Find your postgresql.conf (in case you don't know where it is)
$ sudo find / -type f -name postgresql.conf
wget https://cli-assets.heroku.com/branches/stable/heroku-linux-arm.tar.gz | |
mkdir -p /usr/local/lib /usr/local/bin | |
sudo tar -xvzf heroku-linux-arm.tar.gz -C /usr/local/lib | |
sudo ln -s /usr/local/lib/heroku/bin/heroku /usr/local/bin/heroku |