Skip to content

Instantly share code, notes, and snippets.

View paulera's full-sized avatar

Paulo Amaral paulera

View GitHub Profile
@lucasmezencio
lucasmezencio / problema_c.cpp
Last active May 22, 2019 11:58
Problema C
/**
* Make this program to print 13 making changes ONLY the body of the "function" function
* You are NOT ALLOWED to change NOTHING in the "main" function
*/
void function() {
/* EDIT ONLY HERE */
}
int main() {
@itraveso
itraveso / Nexus Guide Summary.md
Last active September 10, 2020 12:39
A Summary of the Nexus Guide in preparation for SPS exam

Nexus Guide summary

Notes and summary of the Nexus Guide by Ken Schwaber made in preparation for the SPS™ certification exam.

Useful links and resources for SPS™ exam preparation

@dhrrgn
dhrrgn / profiling.md
Last active February 4, 2021 21:28
Profiling your PHP Application

XDebug Profiling

XDebug Config

xdebug.profiler_enable = 1
xdebug.profiler_output_dir = "/path/to/folder/for/cachegrind/files"
xdebug.profiler_output_name = "callgrind.out.%t.%p"

Install QCacheGrind (for OSX Mavericks)

@dmitryd
dmitryd / Library_LaunchDaemons_com.noatime.root.plist
Created June 29, 2015 14:38
"noatime" for OS X on SSD. Place this file to /Library/LaunchDaemons/com.noatime.root.plist and do `sudo launchctl load -w /Library/LaunchDaemons/com.noatime.root.plist`
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>com.noatime.root</string>
<key>ProgramArguments</key>
<array>
<string>/sbin/mount</string>
<string>-vuwo</string>
@samdenty
samdenty / README.MD
Last active November 11, 2021 04:57
VS Code CSS addition to increase readability on file tree.

How to install

Custom CSS plugin

Install the custom CSS plugin, then make a file on your computer that will hold your custom CSS, I like to make one in my home directory called ~/.vscodestyles.css and then add the CSS into it.

Once done, open your command palette and select enable custom CSS and JS

@amcgregor
amcgregor / _laws.md
Last active February 3, 2022 22:42
Alice's Laws

Alice's Laws

  1. You can only count on yourself.
  2. Never reveal more than you have to.
  3. Execution is nine-tenths of the job.
  4. Give credit where credit is due.
  5. When all else fails, do it yourself.
  6. 90% of a project takes 90% of the time.
  7. The remaining 10% takes an additional 90% of the time.
  8. Never date a co-worker.
@maurizi
maurizi / ansible-galaxy.bat
Last active December 16, 2022 11:34
Running Ansible on Windows
@echo off
cygwin-shim.bat /bin/ansible-galaxy %*
@lucasmezencio
lucasmezencio / commit_message.md
Last active April 14, 2023 16:50
Como escrever a mensagem de um commit / How to write a commit message

As mensagens dos commits devem servir para três importantes coisas:

  • Para acelerar o processo de revisão.
  • Para ajudar a escrever uma boa nota de lançamento.
  • Para ajudar os futuros mantenedores (que pode ser você), ou ajudar a descobrir porque uma mudança foi feita no código ou porque uma funcionalidade foi adicionada.

Escreva sua mensagem de commit desta forma:

@willbush
willbush / xubuntu-on-macbook-pro-setup.md
Last active May 31, 2023 20:46
Sane Xubuntu Setup Guide for Mackbook Pro

Sane Xubuntu Setup Guide for Mackbook Pro

I am mostly writing this for myself because I tend to like to start fresh by reformatting and reinstalling everything every few months and forget the solutions to problems I have solved before. This guide was performed on a late 2011 macbook pro with xubuntu 16.04.

One misconception I have noticed that's quite prevalent in many guides is that we must dual boot osx and linux for the fear of having no easy path to getting osx back and installed. Even my old macbook pro has the ability to completely

@greenkey
greenkey / urlencode.vbs
Created April 29, 2015 08:31
vbscript: URLEncode
' Encode special characters of a string
' this is useful when you want to put a string in the URL
' inspired by http://stackoverflow.com/questions/218181/how-can-i-url-encode-a-string-in-excel-vba
Public Function URLEncode( StringVal )
Dim i, CharCode, Char, Space
Dim StringLen
StringLen = Len(StringVal)
ReDim result(StringLen)