Skip to content

Instantly share code, notes, and snippets.

View Yuri-M-Dias's full-sized avatar
🛰️
Off to space

Yuri Dias Yuri-M-Dias

🛰️
Off to space
  • Brazil
View GitHub Profile
@mikeshardmind
mikeshardmind / dofus-setup-2.48.sh
Last active April 15, 2020 23:05
Because Ankama still can't actually properly package for linux. (Ubuntu 18.04 Bionic tested)
#!/bin/bash
# This is a shitty workaround to Ankama not providing everything required in an actual package
# or even a proper dependency list.
# License: Unlicense, see bottom of file
if [ $# -ne 2 ]; then
echo "Usage: $0 path/to/dofus.tar.gz path/to/place/game/folder"
exit 0
@mvernacc
mvernacc / iaf-iac.cls
Created September 25, 2018 04:05
LaTeX class for International Astronautical Congress manuscripts
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% iaf-iac.cls, v0.0, 2018-09-24
% Developed by Matt Vernacchia, [email protected]
%
% This class file enables authors to prepare papers
% according to the manuscript style requested by the
% International Astronautical Federation (IAF) for
% submissions to the International Astronautical
% Congress (IAC)
%
@brentthorne
brentthorne / ipak_dev.R
Last active September 19, 2021 16:13
Install and load multiple R packages at once using devtools:install_x() options
# ipak_dev function: install and load multiple R packages using 'devtools::install_' options.
# check to see if packages are installed. Install them if they are not, then load them into the R session.
#
# install_method = "github" is the default which creates "devtools::install_github('examplerepo/examplepackage')".
# "github" can be replaced with any of the default install options for devtools, such at c("git","bitbucket","cran","local" etc..
# NOTE not all of the options have been tested as I created this for my own personal use which is mainly through github.
#
# install_method = "base" is if you have a list of packages that are to be installed using the base install.packaes() function
#
# This script was adapted from the ipak function created by @stevenworthington
@silentHoo
silentHoo / publish_to_private_npm_from_ci.md
Last active September 21, 2022 06:49
Push and pull into and from your private npm registry via CI pipeline

Publish to private npm registry from your CI pipeline

If you want to publish packages to your private registry, e.g. to jfrog.io/Verdaccio/... you should note some important things:

1) Authenticate on your local machine

To authenticate against the private repository, you've to use the npm cli tool. But first you should get your API access token. That's safer than using your password.

npm adduser --registry https://<registry_url>/<api_path>/ --always-auth
@ElToro1966
ElToro1966 / r_ubuntu_18_04.sh
Last active October 1, 2023 18:29 — forked from pachadotdev/r_ubuntu_17_10.sh
Install R and RStudio on Ubuntu 18.04 with essential libraries for data science. Based on pachamaltese/r_ubuntu_17_10.sh (for Ubuntu 17.10). Note: You need to make sure the default library location - /usr/local/lib/R/site-packages - is writable .
# Install R
sudo apt update
sudo apt install gdebi libxml2-dev libssl-dev libcurl4-openssl-dev libopenblas-dev r-base r-base-dev
# Install RStudio
cd ~/Downloads
wget https://download1.rstudio.org/desktop/bionic/amd64/rstudio-1.2.5001-amd64.deb
sudo gdebi rstudio-1.2.5001-amd64.deb
printf '\nexport QT_STYLE_OVERRIDE=gtk\n' | sudo tee -a ~/.profile
@aleksik
aleksik / getUsers.js
Created February 8, 2018 17:06
jest mock node-fetch
const fetch = require('node-fetch')
const getUsers = () => fetch('https://reqres.in/api/users')
.then(res => res.json())
module.exports = getUsers
@ObserverOfTime
ObserverOfTime / BDLinux.md
Last active March 7, 2025 10:49
Install BetterDiscord on Linux

Install BetterDiscord on Linux

This Gist contains simple instructions on how to install, update, and uninstall BetterDiscord on Linux.

For more thorough documentation, take a look at betterdiscordctl's README.

Do NOT submit issues here as I don't check the comments. You should submit them here instead.

@htruong
htruong / chroot-to-pi.sh
Last active March 24, 2025 06:06
Chroot to pi sd card
#!/bin/bash
# This script allows you to chroot ("work on")
# the raspbian sd card as if it's the raspberry pi
# on your Ubuntu desktop/laptop
# just much faster and more convenient
# credits: https://gist.github.com/jkullick/9b02c2061fbdf4a6c4e8a78f1312a689
# make sure you have issued
@saidsef
saidsef / lambda_cpu_cores.md
Last active December 12, 2024 12:21
AWS Lambda CPU Cores