Skip to content

Instantly share code, notes, and snippets.

@MoisesTedeschi
MoisesTedeschi / Lista de comandos do Git
Last active September 10, 2024 17:48
Lista dos principais comandos do Git que vivo esqucendo - Lembrete.
Comandos do git
git commit -m"contaúdo da mensagem de commit": Gravação de arquivo no git. Esse comando serve para commitar os arquivos no git.
O "-m" é referete ao termo "mensseger". Ou seja, mensagem que será gravada no commit.
ctrl + l = É o comando que limpa a tela do terminal do git.
git log: Comando para visualizar os logs dos arquivos gravados no repositório.
git remote add origin + endereço da pasta no github: Esse comando permite apontar para o repositório no github.
#EXTM3U
#EXTINF:-0,Premonition
http://condor1726.dedicatedpanel.com/PELICULAS/2.22%20Premonition.mkv
#EXTINF:-0,HOMBRE EN LLAMAS
http://condor1726.dedicatedpanel.com/PELICULAS/2004%20-%20Hombre%20en%20Llamas%20%5bMan%20On%20Fire%5d.mkv
#EXTINF:-0,AVATAR
http://condor1726.dedicatedpanel.com/PELICULAS/Avatar%20-%20The%20Last%20Airbender.mkv
#EXTINF:-0,BABY DRIVER
http://condor1726.dedicatedpanel.com/PELICULAS/Baby%20Driver.mp4
#EXTINF:-0,BUSCO NOVIO PARA MI MUJER
@EvanLovely
EvanLovely / get_title_and_url.applescript
Created March 28, 2017 00:26 — forked from vitorgalvao/Get Title and URL.applescript
AppleScript and JavaScript for Automation to get frontmost tab’s url and title of various browsers.
-- AppleScript --
-- This example is meant as a simple starting point to show how to get the information in the simplest available way.
-- Keep in mind that when asking for a `return` after another, only the first one will be output.
-- This method is as good as its JXA counterpart.
-- Google Chrome
tell application "Google Chrome" to return title of active tab of front window
tell application "Google Chrome" to return URL of active tab of front window
-- Google Chrome Canary
@rise-worlds
rise-worlds / For Mac 4.2.6 unlimited trial.md
Last active September 10, 2024 17:41 — forked from satish-setty/trial.md
Beyond Compare 4 license for Windows, Mac, Linux

for 4.2.4 or higher, 4.2.5,4.2.6,4.3.7, it's works, this is the way which makes Always in evaluation mode.

  1. open Terminal, go to the dir : cd /Applications/Beyond Compare.app/Contents/MacOS
  2. change the name BCompare to BCompare.bak: mv BCompare BCompare.bak
  3. touch a file name BCompare , and chmod a+ux BCompare : touch BCompare && chmod a+ux BCompare
  4. open BCompare with text editor, insert the script :
#!/bin/bash
rm "/Users/$(whoami)/Library/Application Support/Beyond Compare/registry.dat"
"`dirname "$0"`"/BCompare.bak $@
@joshbuchea
joshbuchea / semantic-commit-messages.md
Last active September 10, 2024 17:40
Semantic Commit Messages

Semantic Commit Messages

See how a minor change to your commit message style can make you a better programmer.

Format: <type>(<scope>): <subject>

<scope> is optional

Example

@yogthos
yogthos / clojure-beginner.md
Last active September 10, 2024 17:37
Clojure beginner resources

Introductory resources

@denji
denji / nginx-tuning.md
Last active September 10, 2024 17:35
NGINX tuning for best performance

Moved to git repository: https://github.com/denji/nginx-tuning

NGINX Tuning For Best Performance

For this configuration you can use web server you like, i decided, because i work mostly with it to use nginx.

Generally, properly configured nginx can handle up to 400K to 500K requests per second (clustered), most what i saw is 50K to 80K (non-clustered) requests per second and 30% CPU load, course, this was 2 x Intel Xeon with HyperThreading enabled, but it can work without problem on slower machines.

You must understand that this config is used in testing environment and not in production so you will need to find a way to implement most of those features best possible for your servers.

@roachhd
roachhd / README.md
Last active September 10, 2024 17:31
Feed.xml RSS for Jekyll blog on GitHub pages.

Jekyll RSS Feed Templates.

A few Liquid templates to use for rendering RSS feeds for your Jekyll blog. Featuring four kinds of feeds:

  • feed.xml — Renders the 10 most recent posts.
  • feed.category.xml — Only renders posts for a specific category. This example renders posts for a "miscellaneous" category.
  • feed.links.xml — Only contains posts that link to external websites noted by a link variable in the YAML Front Matter. Not a common Jekyll convention, but a good way to generating a linked list.
  • feed.articles.xml — Only showing articles that don't link to external sites; The opposite of feed.links.xml.
@samsheffield
samsheffield / UnityCodingCheatSheet.txt
Last active September 10, 2024 17:30
Unity C# Cheat Sheet
// Unity C# Cheat Sheet
// I made these examples for students with prior exerience working with C# and Unity.
// Too much? Try Unity's very good tutorials to get up to speed: https://unity3d.com/learn/tutorials/topics/scripting
@marlosirapuan
marlosirapuan / gist:778d6beda5f8ab95695748011c864b19
Last active September 10, 2024 17:30
Download .m3u8 files on MacOS

Install ffmpeg

brew install ffmpeg

Download file through url, like this:

ffmpeg -protocol_whitelist file,http,https,tcp,tls,crypto -i "http://url-file.domain.m3u8" -c copy video.mp4