Skip to content

Instantly share code, notes, and snippets.

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

Michele Venturi dardo82

🏠
Working from home
View GitHub Profile
@christopheranderton
christopheranderton / homebrew-github-api-token.md
Last active January 2, 2024 13:07
Set your Github API Token If you hit a ”GitHub API rate limit exceeded” when searching with Homebrew (http://brew.sh/).

Description

PLEASE SCROLL DOWN AND READ THE COMMENTS FOR A MORE UP TO DATE WAY (AND EASIER) TO DO THIS
When using Homebrew (http://brew.sh) and searching formulas or pull requests you may get the dreaded error message: Github API Rate limit exceeded

Let's fix that! (yeah!)


Short version

PLEASE SCROLL DOWN AND READ THE COMMENTS FOR A MORE UP TO DATE WAY (AND EASIER) TO DO THIS

@XVilka
XVilka / TrueColour.md
Last active June 10, 2024 17:21
True Colour (16 million colours) support in various terminal applications and terminals

THIS GIST WAS MOVED TO TERMSTANDARD/COLORS REPOSITORY.

PLEASE ASK YOUR QUESTIONS OR ADD ANY SUGGESTIONS AS A REPOSITORY ISSUES OR PULL REQUESTS INSTEAD!

@nueh
nueh / plist2hashcat.py
Last active November 11, 2023 07:55
Convert Mac OS X 10.8 and later (SALTED-SHA512-PBKDF2) plist to password hash for hashcat. Slightly modified version of ml2john.py.
#!/usr/bin/env python
"""Utilities for writing code that runs on Python 2 and 3"""
import operator
import sys
import types
__author__ = "Benjamin Peterson <benjamin@python.org>"
__version__ = "1.2.0"
@fuacici
fuacici / cidya_deb.sh
Created December 28, 2013 05:49
The shell is to build & upload iOS deb package automaticly.Once used for update my own cydia source.
#!/usr/bin/bash
log=$(git log -1 --pretty=format:"%s")
cur=$(pwd)
target=ios_app_target
workpath=theworkdir
debdes=deb_path
if [ -e "$workpath/$target.app" ]; then
cp -rf $workpath/$target.app $debdes/Package/Applications/$target.app
else
echo "$workpath/$target.app" does not exist!
@rcolinray
rcolinray / gl_ffmpeg.cpp
Created November 19, 2013 20:54
OpenGL-FFMpeg integration
// Use OpenGL 3.0+, but don't use GLU
#define GLFW_INCLUDE_GL3
#define GLFW_NO_GLU
#include <GL/glfw.h>
#include <glm/glm.hpp>
#include <glm/gtc/matrix_transform.hpp>
#include <glm/gtc/type_ptr.hpp>
extern "C" {
@kopiro
kopiro / fb-scroll-messages.js
Last active February 26, 2021 11:04
Facebook: scroll in the messages to a particular date
javascript:
(function(){
function _(a) { return document.querySelectorAll(a); }
var to = new Date(prompt('Arrival date', '2013/04/18')).getTime()/1000;
if (!to) return alert('Invalid date');
var thetime = 0;
var sametimes = 0;
function thefoo(){
var time = parseInt(_('.webMessengerMessageGroup')[0].querySelector('[data-utime]').dataset.utime,10);
if (time==thetime) {
@danfinlay
danfinlay / How to download streaming video.md
Last active March 23, 2024 03:32
How to download a streaming video with Google Chrome

How to download streaming video

Streaming just means a download that they don't want you to keep. But Chrome's developer tools make it easy to access what's really going on under the hood.

Open Developer Tools

From the page where you want to download some things, go into your chrome menu to open the developer tools. You can either:

1.  (On a mac): Command-option-J
2. (On a PC): Control-alt-J
@FreeBirdLjj
FreeBirdLjj / switch.lua
Last active December 27, 2023 00:22
A way to write switch-case statements in lua.
print "Hello, switch"
-- Suppose we want to write the equivalent lua code of the following c code:
-- switch (a) {
-- case 1:
-- printf("Case 1.\n");
-- break;
-- case 2:
-- printf("Case 2.\n");
-- break;
@hofmannsven
hofmannsven / README.md
Last active June 14, 2018 05:25
Bookmarklets for Mobile Safari: Debugging within iOS devices (iPad, iPhone and iPod Touch).
@trinitronx
trinitronx / xcode-cli-tools.sh
Last active January 18, 2024 05:20
Script to download & install XCode Command Line tools on OSX 10.7 or 10.8. Lifted from jedi4ever/veewee template.
#!/bin/sh
# 2021-12-09:
# This script is no longer supported!
# Apple broke all direct downloads without logging with an Apple ID first.
# The number of hoops that a script would need to jump through to login,
# store cookies, and download is prohibitive.
# Now we all must manually download and mirror the files for this to work at all :'-(
OSX_VERS=$(sw_vers -productVersion | awk -F "." '{print $2}')