Look at LSB init scripts for more information.
Copy to /etc/init.d
:
# replace "$YOUR_SERVICE_NAME" with your service's name
using System.Linq; | |
using UnityEngine; | |
/// <summary> | |
/// Abstract singleton class for Unity. Updated with possible errors: | |
/// - Doesn't create a new singleton if it is in scene. | |
/// - Singleton has an initialize method which is called on creation, finding one from scene, or awake. Which makes sure initialization always happen before using it. | |
/// - It doesn't create a new single if you try to access it OnDestroy (e.g. game quit). Returns null instead. | |
/// </summary> | |
/// <typeparam name="TSingleton">Type of singleton. (Same as class inheriting from it.)</typeparam> |
package com.chootadev.composetryout | |
import androidx.annotation.DrawableRes | |
import androidx.compose.animation.core.animateFloatAsState | |
import androidx.compose.animation.core.keyframes | |
import androidx.compose.animation.core.tween | |
import androidx.compose.foundation.Image | |
import androidx.compose.foundation.background | |
import androidx.compose.foundation.border | |
import androidx.compose.foundation.clickable |
# This script should be sourced from .zprofile to take advantage of the $ZSH_EXECUTION_STRING check | |
export NVM_DIR="$HOME/.nvm" | |
export NVM_SYMLINK_CURRENT=true | |
NODE_VERSION_DIR=$(readlink ~/.nvm/current) # Assumes ~/.nvm/current is linked | |
__NODE_GLOBALS=("${(@f)$(find "$NODE_VERSION_DIR"/bin -maxdepth 1 -mindepth 1 -type l -print0 | xargs --null -n1 basename | sort --unique)}") | |
__NODE_GLOBALS+=(node nvm) | |
found=false | |
for value in "${__NODE_GLOBALS[@]}"; do | |
# if zsh is trying to execute a command that matches one of the node globals in the current version |
// ==UserScript== | |
// @name Jigidi Magic Stripes | |
// @namespace me.danq.com.jigidi.magicstripes | |
// @match https://www.jigidi.com/solve/* | |
// @grant GM_getValue | |
// @grant GM_setValue | |
// @version 1.1 | |
// @author Dan Q <https://danq.me> | |
// @description 23/03/2023, 14:32:30 | |
// ==/UserScript== |
Look at LSB init scripts for more information.
Copy to /etc/init.d
:
# replace "$YOUR_SERVICE_NAME" with your service's name
// JS array equivalents to C# LINQ methods - by Dan B. | |
// First: This version using older JavaScript notation for universal browser support (scroll down for ES6 version): | |
// Here's a simple array of "person" objects | |
var people = [ | |
{ name: "John", age: 20 }, | |
{ name: "Mary", age: 35 }, | |
{ name: "Arthur", age: 78 }, | |
{ name: "Mike", age: 27 }, |
var net = require('net') | |
var sock = net.connect(1337) | |
process.stdin.pipe(sock) | |
sock.pipe(process.stdout) | |
sock.on('connect', function () { | |
process.stdin.resume(); | |
process.stdin.setRawMode(true) |
/** | |
* Requires node v0.7.7 or greater. | |
* | |
* To connect: $ curl -sSNT. localhost:8000 | |
*/ | |
var http = require('http') | |
, repl = require('repl') | |
, buf0 = new Buffer([0]) |
Source: https://wiki.archlinux.org/index.php/PostgreSQL
Install postgresql package
sudo pacman -S postgresql
Switch to the postgres user account and initialize the database cluster:
sudo -iu postgres