Skip to content

Instantly share code, notes, and snippets.

@Techcable
Techcable / LICENSE
Last active May 15, 2025 13:33
All rights reserved License
All Rights Reserved
Copyright (c) ${project.inceptionYear} ${owner}
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
@zeroseis
zeroseis / disable-auto-android-file-transfer.md
Created September 14, 2015 17:28
Disable auto start for Android File Transfer
  • Close Android File Transfer
  • Open Activity Monitor and kill “Android File Transfer Agent”
  • Go to where you installed “Android File Transfer.app” (I have it under /Applications)
  • Ctrl+click –> “Show package contents”
  • Go to Contents/Resources
  • Rename “Android File Transfer Agent” to e.g. “Android File Transfer Agent_DISABLED”
  • Then go to “/Users/username/Library/Application Support/Google/Android File Transfer” and again rename the Agent app.
@eddie-chinbat
eddie-chinbat / twitterstreaming.cpp
Last active October 18, 2019 00:43
Twitter streaming API example on c++
#include <iostream>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <oauth.h>
#include <curl/curl.h>
#include <ncurses.h>
#include <boost/date_time/posix_time/posix_time.hpp>
#include <boost/property_tree/ptree.hpp>
@obiwankennedy
obiwankennedy / qmlhighlighter.cpp
Last active September 26, 2018 16:03
QSyntaxHighlight for QML
/***************************************************************************
* Copyright (C) 2014 by Renaud Guezennec *
* http://www.rolisteam.org/ *
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
* This program is distributed in the hope that it will be useful, *
@lopspower
lopspower / README.md
Last active May 21, 2025 13:14
Hexadecimal color code for transparency

Hexadecimal color code for transparency

Twitter

How to set transparency with hex value ?

For example, you want to set 40% alpha transparence to #000000 (black color), you need to add 66 like this #66000000.

Download This sample on Google Play Store

@higebu
higebu / connect_with_specific_source_port.go
Created May 16, 2016 03:48
Golang: Connect with specific source port
package main
import (
"bufio"
"fmt"
"log"
"net"
)
func main() {
@sagivo
sagivo / gist:3a4b2f2c7ac6e1b5267c2f1f59ac6c6b
Last active May 22, 2025 18:18
webRTC stun / turn server list
to check if the server works - https://webrtc.github.io/samples/src/content/peerconnection/trickle-ice
stun:
stun.l.google.com:19302,
stun1.l.google.com:19302,
stun2.l.google.com:19302,
stun3.l.google.com:19302,
stun4.l.google.com:19302,
stun.ekiga.net,
stun.ideasip.com,
@vitan
vitan / PriorityQueue_Multiple_producers_consumers.go
Last active January 23, 2022 08:51
PriorityQueue in golang, to support multiple producers and multiple consumers. with example how to use it
package main
import (
"errors"
"fmt"
"math"
"reflect"
"sync"
)
@teknoraver
teknoraver / unixhttpc.go
Last active May 16, 2025 19:35
HTTP over Unix domain sockets in golang
package main
import (
"context"
"flag"
"fmt"
"io"
"net"
"net/http"
"os"
@etenzy
etenzy / mvc.md
Last active May 17, 2021 18:52
MVC View Model Naming Conventions
  • Model: Singular
  • View: Plural
  • Controller:
    • Plural: If your controller contains at least one action method that handles multiple entities at a single transaction. (resourceful)
    • Singular: example the AccountController is singular because it represents actions (action method) pertaining to a single account only.
  • Route: Plural