Skip to content

Instantly share code, notes, and snippets.

<!DOCTYPE html>
<html>
<head></head>
<body>
<!-- HEADLINE -->
<!-- <h1>Hello Quera</h1>
<h2>Hello Quera</h2>
<h3>Hello Quera</h3>
<h4>Hello Quera</h4>
<h5>Hello Quera</h5>
@Meldiron
Meldiron / backup.sh
Last active April 18, 2024 13:24
Backup and Restore Appwrite, the lazy way 🐌
# Make sure to stop Appwrite before this backup,
# and make sure you have enough space on the machine.
# After backing up, make sure there is a file in 'backups/backup-___.tar.gz'.
# Also please check size of this file, it should be at least 5kb, even for small instances.
docker run --rm \
-v appwrite_appwrite-mariadb:/backup/appwrite-mariadb \
-v appwrite_appwrite-redis:/backup/appwrite-redis \
-v appwrite_appwrite-cache:/backup/appwrite-cache \
@m1nicrusher
m1nicrusher / ConfigHowdy.sh
Created November 9, 2022 14:23
Config Howdy for Fedora 36 using GNOME
# !/bin/bash
# Reference: https://copr.fedorainfracloud.org/coprs/principis/howdy/
# sudo required
if ! [ $(id -u) = 0 ]; then
echo "Root privilege is needed. Please rerun the script as root." >&2
exit 1
fi
SUDO_CFG="/etc/pam.d/sudo"
@lolzballs
lolzballs / HelloWorld.java
Created March 22, 2015 00:21
Hello World Enterprise Edition
import java.io.FileDescriptor;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.OutputStream;
import java.io.PrintStream;
public class HelloWorld{
private static HelloWorld instance;
public static void main(String[] args){
instantiateHelloWorldMainClassAndRun();
@vasanthk
vasanthk / System Design.md
Last active April 18, 2024 13:23
System Design Cheatsheet

System Design Cheatsheet

Picking the right architecture = Picking the right battles + Managing trade-offs

Basic Steps

  1. Clarify and agree on the scope of the system
  • User cases (description of sequences of events that, taken together, lead to a system doing something useful)
    • Who is going to use it?
    • How are they going to use it?
@mhwh-dev
mhwh-dev / Database.php
Created April 18, 2024 13:23 — forked from Sentinel17/Database.php
Π”ΠΎΠΌΠ°ΡˆΠ½Π΅Π΅ Π·Π°Π΄Π°Π½ΠΈΠ΅ β„–11
<?php
class Database{
public $isConn;
protected $data;
public function __construct($username = "root", $password = "", $host = "127.0.0.1", $dbname = "test", $options = []){
$this->isConn = TRUE;
$this->data = new PDO("mysql:host=$host;dbname=$dbname;charset=utf8", $username, $password, $options);
$this->data->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
$this->data->setAttribute(PDO::ATTR_DEFAULT_FETCH_MODE, PDO::FETCH_ASSOC);
@willianfalbo
willianfalbo / README.md
Last active April 18, 2024 13:22
Expanding disk inside Hyper-V using Linux Virtual Machine (Ubuntu)

Expanding disk inside Hyper-V using Linux Virtual Machine (Ubuntu)

  1. Turn off your virtual machine

  2. Go to Settings > SCSI Controller > Hard Drive. In the Media section, edit the Virtual Hard Disk and expand to desired space

  3. Start the virtual machine and connect to it

  4. Install the GParted by running the command sudo apt install gparted

@rxaviers
rxaviers / gist:7360908
Last active April 18, 2024 13:19
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: πŸ˜„ :smile: πŸ˜† :laughing:
😊 :blush: πŸ˜ƒ :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
πŸ˜† :satisfied: 😁 :grin: πŸ˜‰ :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: πŸ˜€ :grinning:
πŸ˜— :kissing: πŸ˜™ :kissing_smiling_eyes: πŸ˜› :stuck_out_tongue:
@z11i
z11i / upload.sh
Last active April 18, 2024 13:18
Use curl to upload a file in a multipart/form-data request, with custom content-type for the file (not the request)
filename='yourfilename'
filetype='text/csv'
token='my oauth token'
url='http://localhost/upload'
curl "$url" \
--form "data=@$filename;type=$filetype" \
--form "name=somename" \
-H "Authorization: Bearer $token"
@bmaupin
bmaupin / free-database-hosting.md
Last active April 18, 2024 13:16
Free database hosting