Skip to content

Instantly share code, notes, and snippets.

@davidnunez
davidnunez / gist:1404789
Created November 29, 2011 13:20
list all installed packages in android adb shell
pm list packages -f
@jexchan
jexchan / multiple_ssh_setting.md
Created April 10, 2012 15:00
Multiple SSH keys for different github accounts

Multiple SSH Keys settings for different github account

create different public key

create different ssh key according the article Mac Set-Up Git

$ ssh-keygen -t rsa -C "[email protected]"
@xdamman
xdamman / install_ffmpeg_ubuntu.sh
Created July 2, 2014 21:03
Install latest ffmpeg on ubuntu 12.04 or 14.04
#!/bin/bash
# Bash script to install latest version of ffmpeg and its dependencies on Ubuntu 12.04 or 14.04
# Inspired from https://gist.github.com/faleev/3435377
# Remove any existing packages:
sudo apt-get -y remove ffmpeg x264 libav-tools libvpx-dev libx264-dev
# Get the dependencies (Ubuntu Server or headless users):
sudo apt-get update
@twksos
twksos / CiscoVPNConnection.scpt
Last active July 31, 2023 20:50
Cisco VPN connection auto connect AppleScript
-- Please set your vpn connection name and password here
set VPNName to "VPN name"
set VPNpassword to "VPN password"
tell application "System Events"
tell current location of network preferences
set VPNService to service VPNName
end tell
set isConnected to connected of current configuration of VPNService
#!/usr/bin/env python
from __future__ import print_function
import rospy
from concurrent.futures import ThreadPoolExecutor
class AsyncServiceProxy(object):
"""Asynchronous ROS service proxy
@zulhfreelancer
zulhfreelancer / events.md
Last active January 16, 2023 03:55
How to trigger something ie container start/stop using docker events command?
#! /bin/bash
#! events.sh

docker events --filter 'event=start' --filter 'event=stop' | while read
do
    echo "YO!"
done
@direvus
direvus / Station-status.cs
Created June 20, 2017 08:15
Space Engineers station status script
static string panel1_name = "Text panel office 1";
static string panel2_name = "Text panel office 2";
static string panel3_name = "Text panel office 3";
static string panel4_name = "Text panel office 4";
static string reactors_name = "Reactors";
static string batteries_name = "Batteries";
static string ingot_type = "VRage.Game.MyObjectBuilder_Ingot";
static string ore_type = "VRage.Game.MyObjectBuilder_Ore";
public struct ItemType {
@ahmetozlu
ahmetozlu / face_recognizer.py
Last active June 11, 2023 14:03
Detect, Recognize, Crop Faces from Video and Save Them as Images
#----------------------------------------------
#--- Author : Ahmet Ozlu
#--- Mail : [email protected]
#--- Date : 21st September 2017
#----------------------------------------------
import face_recognition
import cv2
import os
import create_csv
@cnrd
cnrd / rclone-backup.sh
Last active October 8, 2024 10:59
Backup script that uses rclone and ZFS snapshots to create incremental backups
#!/usr/bin/env bash
## Configs ##
ZFSSNAPSHOTNAME="rclone"
RCLONECONFIGPATH="/root/.config/rclone/rclone.conf"
BWLIMIT="10M"
TRANSFERS=10
mountSnapshots () {
@TW1920
TW1920 / proxmox-debian-install-MegaCli.md
Last active October 23, 2024 19:47
Install MegaCli on Proxmox or Debian

Install MegaCli on Proxmox or Debian

  1. Install necessary tools apt-get install unzip apt-get install alien
  2. Install necessary lib apt install libncurses5
  3. Download wget https://docs.broadcom.com/docs-and-downloads/raid-controllers/raid-controllers-common-files/8-07-14_MegaCLI.zip
  4. Unzip