Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
for lib in lib{gmp,mpfr,mpc}.la; do
echo $lib: $(if find /usr/lib* -name $lib|
grep -q $lib;then :;else echo not;fi) found
done
unset lib
/*
Dead simple com.apple.companion_proxy client.
This allows you to forward ports bound to your Watch's 127.0.0.1 to a random port on your iPhone.
-- qwertyoruiop, 2016
*/
#include <stdio.h>
SDK=iPhoneOS9.0.sdk
export SDKROOT=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk
#XCODE_DEVELOPER_USR_PATH=/Developer # don't really need this..
gcc -arch armv7 # or -arch arm64
-framework IOKit -framework CoreFoundation \
-F /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/$SDK/System/Library/Frameworks \
-I /Developer/Platforms/iPhoneOS.platform/DeviceSupport/Latest/Symbols/usr/include \
-L /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/$SDK/usr/lib
#!/bin/bash
# Script: my-pi-temp.sh
# Purpose: Display the ARM CPU and GPU temperature of Raspberry Pi 2/3
# Author: Vivek Gite <www.cyberciti.biz> under GPL v2.x+
# -------------------------------------------------------
cpu=$(</sys/class/thermal/thermal_zone0/temp)
echo "$(date) @ $(hostname)"
echo "-------------------------------------------"
echo "GPU => $(/opt/vc/bin/vcgencmd measure_temp)"
echo "CPU => $((cpu/1000))'C"
#!/bin/bash
if [[ $(uname) != 'Linux' ]]; then
echo "This script is only for Linux Distros"
exit 1
fi
sudo apt-get install -y libusb-1.0-0 libusb-1.0-0-dev \
libreadline6-dev readline-common libreadline6 \
libreadline-dev texinfo cmake git-core build-essential \
texinfo libreadline-dev libssl-dev libusb-1.0-0-dev libpng12-dev \
libusb-dev autoconf automake libnewlib-dev git
// (C)2009 Willem Hengeveld [email protected]
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <stdint.h>
#include <string.h>
#include <algorithm>
// streaming version of the lzss algorithm, as defined in BootX-75/bootx.tproj/sl.subproj/lzss.c
// you can use lzssdec in a filter, like:
@matteyeux
matteyeux / jinstall
Created October 27, 2016 10:28
Script to install or update some tools made by J Levin
#!/bin/bash
#######################################################################
#
# Project......: jinstall
# Creator......: matteyeux
# Description..: Script to install or update some tools made by J Levin
# (Too lazy to download and extract myself)
# Type.........: Public
#
######################################################################
@matteyeux
matteyeux / Credits.md
Last active November 10, 2016 20:27
TermHere 1.2

Remerciements:

Terminal toolbar icon est sous license SIL Open Font License, version 1.1.

Si cette app vous est utile, s'il vous plait pensez à faire un don au developpeur pour le remercier. Faire un don

/*gcc get_netmask_suffix.c -o get_netmask_suffix*/
#include <stdlib.h>
#include <stdio.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netdb.h>
int main(int argc, char *argv[]){
int n, i=0;
#!/bin/bash
cd ~
git clone https://github.com/tihmstar/libfragmentzip.git
git clone --recursive https://github.com/tihmstar/futurerestore.git
cd libfragmentzip
./autogen.sh && make && sudo make install
cd ../futurerestore
./autogen.sh && make && sudo make install