Skip to content

Instantly share code, notes, and snippets.

View khurshid-alam's full-sized avatar

Khurshid Alam khurshid-alam

View GitHub Profile
@entrity
entrity / my-timer-2.desktop
Last active September 23, 2017 07:13
Python timer app with a GUI for time input and display of time remaining. When timer expires, it jiggles the icon in the unity launcher until the GUI window receives a focus-in event.
[Desktop Entry]
Name=My Timer
Exec=/home/markham/scripts/timer.py
Icon=/usr/share/icons/cute.jpg
Type=Application
Terminal=false
StartupNotify=true
Categories=GTK;GNOME;Utility;
@m1st0
m1st0 / php_build_ubuntu.sh
Last active April 18, 2025 08:55
Compiling PHP 8 on Ubuntu 22.10 with Various Supported Modules
#!/bin/bash
# PHP 8 Compile #
# Author: Maulik Mistry
# Please share support: https://www.paypal.com/paypalme/m1st0
# References:
# http://www.zimuel.it/install-php-7/
# http://www.hashbangcode.com/blog/compiling-and-installing-php7-ubuntu
# root-talis https://gist.github.com/root-talis/40c4936bf0287237839ccd3fdfdaec28
#
@franga2000
franga2000 / Ubuntu on Acer Aspire Switch 10.md
Last active March 11, 2025 14:30
Ubuntu on Acer Aspire Switch 10

Ubuntu on Acer Aspire Switch

The problem

What's the problem with this tablet? Why can't I just insert the USB and mash F12 until it boots? The tablet is made to run Windows 8.1 and Windows 8.1 only. Some absolute genius at Acer decided to put a 32-bit UEFI on a 64-bit system, which no reasonable Linux distro supports out-of-the-box.

NOTE: This guide focuses on installing Ubuntu alongside Windows. If you're trying to replace Windows, then I assume you know enough about Linux to know which parts to change.

What works:

  • Keyboard
@boTux
boTux / ubuntu-touch_owncloud-sync_contact-calendar.sh
Last active June 7, 2019 10:17
[Ubuntu-Phone] Owncloud Contact & Calendar Sync - Carddav & Caldav via syncevolution.
#!/bin/bash
# ---------------------------------------------------------------------------
# Ubuntu Phone - Sync Owncloud Contacts & Calendar Account
# Carddav & Caldav.
# Tested on : Ubuntu-touch vivid - ubuntu-touch/rc-proposed/bq-aquaris.en/vegetahd/
# Last edit : 2015/10/07.
# Author : Romain Fluttaz, boTux.fr, <[email protected]>
# ============= [ Configuration ] ============= #
@jsturgis
jsturgis / dropbox.service.md
Last active June 24, 2022 09:30
ubuntu 15.04 dropbox systemd

Install Dropbox and python script, symlink python script to /usr/local/bin/dropbox and add to your path.

/etc/systemd/system/dropbox.service contents

[Unit]
Description=Dropbox Service
After=network.target

[Service]
ExecStart=/bin/sh -c '/usr/local/bin/dropbox start'
@ivan-loh
ivan-loh / request.lua
Created November 16, 2015 04:21
sample lua http get
local http = require "socket.http"
local data = ""
local function collect(chunk)
if chunk ~= nil then
data = data .. chunk
end
return true
end
@theUncanny
theUncanny / ppainstall.sh
Created May 14, 2016 19:02 — forked from rrevanth/ppainstall.sh
Elementary OS PPA script
#!/bin/bash
# Fixes sudo issues
if (($EUID != 0)); then
if [[ -t 1 ]]; then
sudo "$0" "$@"
else
exec 1>output_file
gksu "$0 $@"
fi
@tcarrondo
tcarrondo / syncevolution_generic_caldav.sh
Last active July 30, 2020 08:28
Script simples para sincronizar um caledário caldav com o Ubuntu Touch. Adiciona a configuração do calendário de forma independente e adiciona uma tarefa automática para que ele sincronize periodicamente.
#!/bin/bash
# Simplified by me, Tiago Carrondo <[email protected]>
# Thanks to: Romain Fluttaz <[email protected]>
# Thanks to: Wayne Ward <[email protected]>
# Thanks to: Mitchell Reese <[email protected]>
# --------------- [ Server ] ---------------- #
CAL_URL=" " # add the caldav URL here
USERNAME=" " # you know this one
PASSWORD=" " # lots of ******
@JavadocMD
JavadocMD / chrome_open_bookmark.py
Created November 12, 2016 00:18
A script to open Chrome bookmarks or entire folders of bookmarks by name. (Windows)
#!/usr/bin/env python
import os, subprocess, json
# Get all bookmarks matching the given name(s)
def get_bookmarks(profile_dir, names):
with open(os.path.join(profile_dir, 'Bookmarks')) as f:
j = json.load(f)
results = []
# There are two root-level bookmark folders: one for the bookmark bar and one for all others.
@jasonnemesis
jasonnemesis / IIS_Cipher_Suites_and_TLS_Config.md
Last active June 29, 2023 04:12
IIS Cipher Suites and TLS Configuration

IIS Cipher Suites and TLS Configuration

Change SSL Cipher Suite Order

gpedit.msc

    Computer Configuration > Administrative Templates > Network > SSL Configuration Settings > SSL Cipher Suite Order
    Enable

Recommended (MS Equivalent syntax of Mozilla Intermediate from https://mozilla.github.io/server-side-tls/ssl-config-generator/):