Skip to content

Instantly share code, notes, and snippets.

View insign's full-sized avatar
🇧🇷
being open-sourcerer

Hélio insign

🇧🇷
being open-sourcerer
View GitHub Profile
@insign
insign / curl.sh
Last active November 2, 2021 18:30 — forked from exAspArk/curl.sh
Test CORS with cURL (case insensitive)
curl -I -X OPTIONS \
-H "Origin: http://EXAMPLE.COM" \
-H 'Access-Control-Request-Method: GET' \
http://EXAMPLE.COM/SOMETHING 2>&1 | grep -i 'Access-Control-Allow-Origin'
@insign
insign / select-copy-middle-paste.ahk
Last active June 9, 2021 15:05
Auto copy on select paste with middle (no obstrutive)
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn ; Enable warnings to assist with detecting common errors.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
#SingleInstance Force ; reloads if try to rerun
cos_mousedrag_treshold := 20 ; pixels
@FreddieOliveira
FreddieOliveira / docker.md
Last active April 19, 2024 16:36
This tutorial shows how to run docker natively on Android, without VMs and chroot.

Docker on Android 🐋📱

Edit 🎉

All packages, except for Tini have been added to termux-root. To install them, simply pkg install root-repo && pkg install docker. This will install the whole docker suite, left only Tini to be compiled manually.


Summary

@ceckoslab
ceckoslab / basic-rum-beacon-transfer-cloudflare-edge-worker.js
Last active December 14, 2021 21:18
A concept of Cloud Flare edge worker that is used for transferring beacons to beacon catcher server.
var beaconCatcherAddress = "https://rum.revampix.com/beacon/catcher.php"
addEventListener('fetch', event => {
event.respondWith(handle(event, event.request))
})
async function asyncFetch(request) {
let response = fetch(request)
.then(
function() {},
@manjurulhoque
manjurulhoque / Deployment Guide for Ubuntu Server from Scratch with Laravel.md
Last active March 13, 2020 04:01
Deployment Guide for Ubuntu Server from Scratch with Laravel

Setting Up Laravel in Ubuntu / DigitalOcean

Getting Started

  • Create droplet with Ubuntu 18.10
  • ssh root@[DROPLET IP ADDRESS]
  • Get password from your email
  • Change password on first login
  • adduser laravel
  • Enter password and other information
@jglathe
jglathe / fsnotifier-linux-aarch64.gist
Last active February 1, 2021 04:05
Modify PyCharm-CE to run with native fsnotifier on aarch64 (nVidia Jetson Nano)
This is my how-to on getting PyCharm-CE or IDEA to run on a Jetson Nano. Tested with PyCharm-CE 2019.1 Build 191.7479
The linux install package runs on a jetson nano, but with some performance impact:
1. There is no native fsnotifier for linux-aarch64 in the package, and it won't be selected by the application if it would
be there.
2. inotify configuration is missing/not sufficient for PyCharm. Install https://gist.github.com/bittner/c7d1d49fe0c9af907f24
To get a native fsnotifier, you need to compile it from source, and you need to convince the application to select and start it.
This is currently implemented in https://github.com/JetBrains/intellij-community/pull/1140. As long as it is not yet integrated
@vicgonvt
vicgonvt / deployment_guide.md
Last active March 17, 2024 06:51
Deployment Guide for Ubuntu Server from Scratch with Laravel
@rolandstarke
rolandstarke / laravel setup.sh
Last active April 2, 2024 20:42
Server setup bash script for Laravel
# Ubuntu 20 LTS Server Setup for Laravel
# Login as root user
sudo su -
# Update list of available packages
apt update
@ilhamarrouf
ilhamarrouf / setup.txt
Last active March 13, 2020 04:01
PHP NGINX MYSQL UBUNTU
#Steps to install latest Laravel, LEMP on AWS Ubuntu 14.4 version.
This tutorial is the improvised verision of this [tutorial on Digitalocean](https://www.digitalocean.com/community/tutorials/how-to-install-laravel-with-an-nginx-web-server-on-ubuntu-14-04) based on my experience.
## Install PHP 7 on Ubuntu
Run the following commands in sequence.
```
sudo apt-get install -y language-pack-en-base
sudo LC_ALL=en_US.UTF-8 add-apt-repository ppa:ondrej/php
sudo apt-get update
sudo apt-get install zip unzip
@delfer
delfer / bench.sh
Last active January 13, 2022 21:12
DNS benchmark to choose better server
#dig form bind-utils
while read DNS; do
echo $DNS
dig @$DNS getbootstrap.com | grep "Query time:"
done <dns.list