This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const express = require("express"); | |
const https = require("https"); | |
const fs = require("fs"); | |
const path = require("path"); | |
const axios = require("axios"); | |
// environment variables | |
const IP_ADDRESS = process.env.IP_ADDRESS; | |
/** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Mentenanță</title> | |
<meta charset="utf-8" /> | |
<meta name="robots" content="noindex" /> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | |
<style> | |
html { | |
width: 100%; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const { spawn } = require('child_process'); | |
const ls = spawn("C:\\path\\to\\electron\\binary.exe"); | |
ls.stdout.on('data', (data) => { | |
console.log(`stdout: ${data}`); | |
}); | |
ls.stderr.on('data', (data) => { | |
console.error(`stderr: ${data}`); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"crypto/aes" | |
"crypto/cipher" | |
"crypto/rand" | |
"crypto/sha256" | |
"encoding/base64" | |
"fmt" | |
"io" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
import string, random, sys, os | |
# requires xclip to be installed | |
# copy to clipboard | |
def copy2clip(text): | |
os.system(f'echo -n "{text}" | xclip -sel clip') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/python3 | |
import requests as req | |
from lxml import html | |
from time import gmtime, strftime | |
import json | |
OUTPUT_FILE_USD = '/home/icebox/.config/conky/exchange/usd.txt' | |
OUTPUT_FILE_EURO = '/home/icebox/.config/conky/exchange/euro.txt' | |
OUTPUT_FILE_BTC = '/home/icebox/.config/conky/exchange/btc.txt' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
upstream mysite { | |
ip_hash; | |
server localhost:8080; | |
} | |
// HTTP server for redirecting to HTTPs | |
server { | |
listen 80; | |
listen [::]:80; | |
server_name mysite.com; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- Conky config | |
-- adapted by 3dprogramin | |
-- original from Mr Green, ArchBang | |
conky.config = { | |
background = true, | |
use_xft = true, | |
font = 'monospace:size=10', | |
xftalpha = 1, | |
update_interval = 1.0, |