Skip to content

Instantly share code, notes, and snippets.

View g0rdan's full-sized avatar
🎯
Focusing

Denis Gordin g0rdan

🎯
Focusing
View GitHub Profile
@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 "your_email@youremail.com"
@sgergely
sgergely / gist:3793166
Created September 27, 2012 09:43
Midnight Commander Keyboard Shortcuts for Mac OSX
----- Esc -----
Quick change directory: Esc + c
Quick change directory history: Esc + c and then Esc + h
Quick change directory previous entry: Esc + c and then Esc + p
Command line history: Esc + h
Command line previous command: Esc + p
View change: Esc + t (each time you do this shortcut a new directory view will appear)
Print current working directory in command line: Esc + a
Switch between background command line and MC: Ctrl + o
Search/Go to directory in active panel: Esc + s / Ctrl + s then start typing directory name
@zmilojko
zmilojko / UDPer.cs
Last active December 15, 2021 14:59
C# sends and receives UDP broadcasts
using System;
using System.Net.Sockets;
using System.Net;
using System.Text;
using System.Threading;
namespace UDPer
{
class UDPer
{
@bryanbarnard
bryanbarnard / SimpleHttpClient.cs
Created December 23, 2013 19:15
Simple C# .NET 4.5 HTTPClient Request Using Basic Auth and Proxy
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Net.Http;
using System.Net;
namespace HTTP_Test
@justasm
justasm / VideoPlaybackActivity2.java
Last active September 26, 2023 09:14
Android video playback - using MediaPlayer and SurfaceView to play file from res/raw/.
package com.example.videotest;
import android.app.Activity;
import android.media.MediaPlayer;
import android.os.Bundle;
import android.view.SurfaceHolder;
import android.view.SurfaceHolder.Callback;
import android.view.SurfaceView;
public class VideoPlaybackActivity2 extends Activity {
@ZevEisenberg
ZevEisenberg / resetAllSimulators.sh
Last active June 20, 2024 17:13
Reset all iOS simulators with this one weird trick
osascript -e 'tell application "iOS Simulator" to quit'
osascript -e 'tell application "Simulator" to quit'
xcrun simctl erase all
@nicolasembleton
nicolasembleton / restart_bluetooth.sh
Last active May 11, 2024 17:43
Restart Bluetooth Daemon on Mac OS X without restarting
#!/bin/bash
sudo kextunload -b com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport
sudo kextload -b com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport
@hdo
hdo / dahua_event_notification.txt
Created December 4, 2014 07:21
Event notification on Dahua Security Cams
Wichtig ist die Authentifizierung, sonst wird die Session sofort wieder abgebrochen!
TELNET:
GET /cgi-bin/eventManager.cgi?action=attach&codes=[VideoMotion,AlarmLocal] HTTP/1.0
User-Agent: Synology Surveillance Station
Authorization: Basic YWRtaW46YWRtaW4=
HTTP/1.0 200 OK
@lukehedger
lukehedger / ffmpeg-compress-mp4
Last active July 12, 2024 14:34
Compress mp4 using FFMPEG
$ ffmpeg -i input.mp4 -vcodec h264 -acodec mp2 output.mp4
@erkanyildiz
erkanyildiz / iOSDevices
Last active October 1, 2022 22:18
List of iOS devices with names and cpu models
{
"iPhone1,1":
{
"name": "iPhone",
"cpu": "RISC ARM 11"
},
"iPhone1,2":
{
"name": "iPhone 3G",