Skip to content

Instantly share code, notes, and snippets.

View DarrylDias's full-sized avatar
🎯
Focusing

Darryl Dias DarrylDias

🎯
Focusing
View GitHub Profile
@sebsto
sebsto / gist:6af5bf3acaf25c00dd938c3bbe722cc1
Last active July 4, 2024 15:12
Start VNCServer on Mac1 EC2 Instance
# YouTube (english) : https://www.youtube.com/watch?v=FtU2_bBfSgM
# YouTube (french) : https://www.youtube.com/watch?v=VjnaVBnERDU
#
# On your laptop, connect to the Mac instance with SSH (similar to Linux instances)
#
ssh -i <your private key.pem> ec2-user@<your public ip address>
#
# On the Mac
@shubhamkumar13
shubhamkumar13 / WIFI-HELP.md
Last active October 31, 2022 01:20
Whenever I need help with wifi on pop os I do this here

https://www.reddit.com/r/archlinux/comments/exr82b/tried_55_from_testing_and_wifi_rtl8822be_stopped/

Answer from u/edu4rdshl

I have found a workaround for it issue. The issue is caused most times because this function fails trying to read the ASPM configuration from the PCI device. The current rtwpci module doesn't have an option to manage ASPM as well. So, digging a bit deeper I have found that setting ASPM using the Link Control Register fix the problem and rtwpci is able to read it properly. By default, RT8822BE cards enable L0s and L1 ASPM states but L0s states are shown as "Unknown" then rtwpci fails. I have made a little script that fix the issue, just be sure to follow:

Note: execute next commands as root.

Execute lspci | grep -i wifi | awk '{print $1}' and keep that result in mind.

Open up browser console, for Chrome, hit F12 and copy-paste and enter this
$("a").filter(function(index){return $(this).text()==="unsave"}).click();setTimeout(function(){location.reload();},500);
Repeat until all items are unsaved.
@svetlemodry
svetlemodry / .gemrc
Created February 28, 2016 17:49
Jekyll on Fedora
gem:
--bindir ~/.local/bin
--no-ri --no-rdoc
@sparrc
sparrc / phabricator_readme.md
Last active March 25, 2024 05:59
Phabricator Ubuntu Installation Guide

Phabricator Ubuntu Installation Guide

This is a supplement to the official Phabricator Installation Guide, because their guide will leave you with all kinds of permission and config errors and ~15,000 setup issues on startup.

Install bonus packages:

# apt-get install mercurial subversion python-pygments sendmail imagemagick

Create necessary users and add phd-user to sudoers:

@rumpelsepp
rumpelsepp / install-pacaur.sh
Last active November 20, 2022 13:04
A small script for arch linux which builds and installs "pacaur" automatically
#!/usr/bin/bash -l
#
# The MIT License (MIT)
#
# Copyright (c) 2015-2017 Stefan Tatschner
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
@emad-elsaid
emad-elsaid / markdown.rb
Created March 9, 2014 11:35
Everytime i write markdown and commit i find error, so i solved the problem ;)
#!/usr/bin/env ruby
# gem install sinatra --no-document
# gem install github-markdown --no-document
require 'sinatra'
require 'github/markdown'
set :port, 3000
get '/' do
<<-EOT
<!DOCTYPE html>
@dhcole
dhcole / profile.md
Last active January 19, 2016 10:07
Profiling the `jekyll new` site
posts seconds time
1 0.824 0:0.824
100 2.644 0:2.644
1000 25.071 0:25.071
5000 186.715 3:6.715
10000 536.904 8:56.904

chart