Skip to content

Instantly share code, notes, and snippets.

View g1ll's full-sized avatar
🇧🇷
💻☕

Prof. Gill g1ll

🇧🇷
💻☕
View GitHub Profile
@jshaw
jshaw / byobuCommands
Last active April 23, 2024 14:23
Byobu Commands
Byobu Commands
==============
byobu Screen manager
Level 0 Commands (Quick Start)
------------------------------
<F2> Create a new window
@jesperorb
jesperorb / php_form_submit.md
Last active April 4, 2024 07:28
PHP form submitting with fetch + async/await

PHP Form submitting

If we have the following structure in our application:

  • 📁 application_folder_name
    • 📄 index.php
    • 📄 handle_form.php
    • 📄 main.js

And we fill our index.php with the following content just to get a basic website with a form working. You should be able to run this through a php-server of your choice.

@justsml
justsml / fetch-api-examples.md
Last active February 24, 2024 18:05
JavaScript Fetch API Examples
@jdsimcoe
jdsimcoe / base64.md
Created October 16, 2015 23:03
A guide to how to embed Base64 stuff in your web stuff.

HTML

Here is some code on how to embed Base64 in HTML:

JPEG

<img src="data:image/jpeg;base64,BASE64_STRING"/>

PNG

@shkiefer
shkiefer / pyAnsys_MAPDL_example_1.py
Last active April 20, 2022 04:43
pyAnsys MAPDL notebook example, part 1 geometry, materials, & meshing
# %%
import pandas as pd
from ansys.mapdl.core import launch_mapdl
mapdl = launch_mapdl(override=True, license_type="ansys", cleanup_on_exit=True)
mapdl.clear()
mapdl.prep7()
mapdl.units("BIN")
mapdl.csys(kcn=0)
@precise-simulation
precise-simulation / parrun.sh
Last active March 22, 2022 21:26
Bash xargs script to run parallel MATLAB and Octave jobs
#!/bin/bash
#
# Bash script using xargs to run Matlab and Octave jobs in parallel.
#
n_parruns=16 # Total number of runs.
n_parproc=3 # Number of simultaneous parallel processes.
# Define Matlab/Octave executable and main m-scipt file to run.
export runcmd='/mnt/c/Octave/Octave-4.2.1/bin/octave-cli.exe'
@qrkourier
qrkourier / miner.sh
Last active October 21, 2021 16:01
configure and launch coin miners on Linux
#!/bin/bash -u
#
_help(){
cat >&2 <<-EOF
Usage: $1 [OPTION] ...
-g use Nvidia GPU(s)
-a ALGORITHM mining algorithm (e.g., scrypt, equihash)
-u BITCOIN_ADDRESS your Nicehash wallet address