Skip to content

Instantly share code, notes, and snippets.

View weldyss's full-sized avatar
🏠
Working from home

Weldys Santos weldyss

🏠
Working from home
View GitHub Profile
@gbrow004
gbrow004 / ubuntu-MBP-16.md
Last active February 3, 2026 13:10
Ubuntu on Apple Macbook Pro 16-inch (2019)

Update!

This gist is out of date and I can no longer help much, as I got rid of my Mac.

Please visit T2 Linux website for more and better information:

https://t2linux.org/

Acknowledgements

This gist is just a compilation of the hard work that others have put in. I'm not a software developer, so if there are any mistakes or better ways of doing things, I'd appreciate any suggestions. Here's a list of the real heroes who made this possible:

@klzns
klzns / picture-in-picture.js
Last active July 2, 2018 15:11
Adicione esse script para abrir a transmissão da copa em picture in picture no Safari.
(function () {
var video = document.querySelector('video:not([title="Advertisement"])')
if (!video.webkitSupportsPresentationMode || typeof video.webkitSetPresentationMode !== 'function') {
console.error('Esse código só funciona no Safari!')
return
}
var scoreX = document.querySelector('.placar__equipes')
var button = document.createElement('button')
@prebenlm
prebenlm / .A how to display Irssi-hilights in OS X Notification Center.md
Last active October 26, 2025 18:47
Guide: how to make irc messages in a screen on a remote server appear in your Mac OS X Lion Notification Center with the help of terminal-notifier

Irssi in Mac OS X Notification Center

Mou icon

Overview

This guide will explain how you can make irc messages in a screen on a remote server appear in your Mac OS X Lion Notification Center with the help of terminal-notifier.

We will also explain how the process can be automatically started each time you log in to your Mac and ensure the connection to the server is kept alive.

<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title></title>
<style type="text/css">
div { height: 50px; width: 500px; }
.d1 { background: red; }
class apt-get::update {
exec { "apt-get update":
command => "apt-get update"
}
}
@fnando
fnando / helpers.rb
Created October 24, 2012 20:03
Running specs with all available locales
module RSpecHelpers
def _(*args, &block)
translation = I18n.t(*args, &block)
expect(translation).not_to include("translation missing")
translation
end
end
context "satanás" do
it "its you?" do
expect(satanas).to be_you
end
end
@mikhailov
mikhailov / 0. nginx_setup.sh
Last active August 29, 2025 05:48
NGINX+SPDY with Unicorn. True Zero-Downtime unless migrations. Best practices.
# Nginx+Unicorn best-practices congifuration guide. Heartbleed fixed.
# We use latest stable nginx with fresh **openssl**, **zlib** and **pcre** dependencies.
# Some extra handy modules to use: --with-http_stub_status_module --with-http_gzip_static_module
#
# Deployment structure
#
# SERVER:
# /etc/init.d/nginx (1. nginx)
# /home/app/public_html/app_production/current (Capistrano directory)
#
<!doctype html>
<!-- http://taylor.fausak.me/2015/01/27/ios-8-web-apps/ -->
<html>
<head>
<title>iOS 8 web app</title>
<!-- CONFIGURATION -->
Date: Thu, 16 Feb 2012 13:54:23 -0500
From: Kenneth Reitz <me@kennethreitz.com>
To: homebrew@librelist.com
Subject: [homebrew] Command Line Tools for XCode
Hey guys — I've been working with Apple since the release of my osx-gcc-installer.
I helped them come up with the requirements and command_line_tools_for_xcode is the result of that effort. Apple should be putting a link to it on their open source page soon.
I know there were some reservations about hombrew supporting osx-gcc-installer, but since this is a real Apple product now, made *specifically* with Hombrew users in mind, we need to do our best to support it. Apple's doing their best to support us.