Skip to content

Instantly share code, notes, and snippets.

View nimbosa's full-sized avatar

nimbosa nimbosa

View GitHub Profile
@evanscottgray
evanscottgray / docker_kill.sh
Last active November 7, 2023 03:40
kill all docker containers at once...
docker ps | awk {' print $1 '} | tail -n+2 > tmp.txt; for line in $(cat tmp.txt); do docker kill $line; done; rm tmp.txt
@davidzchen
davidzchen / sample-google.c
Last active March 13, 2025 21:03
Sample C code using the Google C++ style guide
// Sample file using the Google C++ coding standard.
//
// http://google-styleguide.googlecode.com/svn/trunk/cppguide.xml
//
// General rules:
// - Indents are two spaces. No tabs should be used anywhere.
// - Each line must be at most 80 characters long.
// - Comments can be // or /* but // is most commonly used.
// - File names should be lower_case.c or lower-case.c
//

Keybase proof

I hereby claim:

  • I am taoeffect on github.
  • I am greg (https://keybase.io/greg) on keybase.
  • I have a public key whose fingerprint is C32D E666 4644 751C 9B80 D998 4B4D 4371 A884 B988

To claim this, I am signing this object:

__bionic_open_tzdata: couldn't find any tzdata when looking for localtime!
__bionic_open_tzdata: couldn't find any tzdata when looking for GMT!
__bionic_open_tzdata: couldn't find any tzdata when looking for posixrules!
Starting recovery on Wed Mar 26 13:37:51 2014
framebuffer: fd 4 (240 x 320)
CWM-based Recovery v6.0.4.7
Swipe up/down to change selections.
Swipe to the right for enter.
Swipe to the left for back.
@theUniC
theUniC / gist:9858373
Created March 29, 2014 17:18
Push output
$ git push --mirror [email protected]:atrapalo/framework.git
Counting objects: 812698, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (154287/154287), done.
remote: error: object bca5308fa04b1d43e47de77fc264a770ba9d2522:invalid author/committer line - bad email
remote: fatal: Error in object
Writing objects: 100% (812698/812698), 151.07 MiB | 100.00 KiB/s, done.
Total 812698 (delta 648291), reused 812698 (delta 648291)
error: unpack failed: index-pack abnormal exit
To [email protected]:atrapalo/framework.git
@vladimirtsyupko
vladimirtsyupko / gist:10964772
Created April 17, 2014 08:32
Git force pull to overwrite local files
git fetch --all
git reset --hard origin/master
git pull origin master
@psyke83
psyke83 / cm-11-20140429-EXPERIMENTAL-gerrit6881-2-galaxy5.zip.log
Created April 29, 2014 19:35
cm-11-20140429-EXPERIMENTAL-gerrit6881-2-galaxy5.zip
--------- beginning of /dev/log/main
E/logwrapper( 89): executing /system/bin/e2fsck failed: No such file or directory
I/cm ( 107): ____ _ _ ____ _ _ ____ ____ ____ _ _ _ _ ____ ___
I/cm ( 108): | \_/ |__| |\ | | | | __ |___ |\ | |\/| | | | \
I/cm ( 109): |___ | | | | \| |__| |__] |___ | \| | | |__| |__/
I/cm ( 112): Welcome to Android 4.4.2 / CyanogenMod-11-20140429-EXPERIMENTAL-gerrit6881-2-galaxy5
--------- beginning of /dev/log/system
I/auditd ( 117): Starting up
I/audit_log( 117): Previous audit logfile not detected
I/installd( 125): installd firing up
@tripleee
tripleee / git-wrapper
Last active October 24, 2024 13:45
git-wrapper to protect against accidental usage of a global user.email
#!/bin/sh
:<<'=cut'
=head1 NAME
git-wrapper - avoid committing as you@invalid
=head1 SYNOPSIS
@ruario
ruario / manual-install-of-opera.md
Last active September 7, 2018 11:49
How to install Opera developer for Linux on distributions other than Debian, Ubuntu or derivatives
@giladlotan
giladlotan / optimal_buzzfeed_listicle_length
Created June 27, 2014 20:32
Optimal Length of a BuzzFeed Listicle
{
"metadata": {
"name": "",
"signature": "sha256:431c3398715661ec2ce4c2f300849944ee2c04ebf05ac77e071fa65330170e14"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [