Skip to content

Instantly share code, notes, and snippets.

View AnwarShah's full-sized avatar

Anwar AnwarShah

View GitHub Profile
@AnwarShah
AnwarShah / generate_manifest_file.sh
Created January 30, 2016 10:03
Generate package list and version like in Ubuntu manifest
# Generate binary package list and there version in
# line like ubuntu manifest file
dpkg-query -W -f='${binary:Package}\t${Version}\n'
@AnwarShah
AnwarShah / convert.pe
Created March 26, 2016 04:46
Convert a bunch of fonts to ttf with fontforge
#!/usr/bin/fontforge
i=1
while( i<$args )
Open($1)
Generate($1:r + ".ttf")
i = i+1
endloop
@AnwarShah
AnwarShah / 99_mysettings
Created May 7, 2016 13:33
My Customized apt-config
APT::Get::List-Cleanup false;
Acquire::Languages "none";
Question link http://askubuntu.com/questions/805472/unity-desktop-x-windows-not-visible-after-upgrade-to-16-04-lts-from-14-04-lts
Comment to paste errors
@AnwarShah
AnwarShah / cdparanoia.patch
Created September 9, 2016 13:11
A modified patch of cdparanoia
Index: cdparanoia.1
===================================================================
--- cdparanoia.1 (revision 18965)
+++ cdparanoia.1 (working copy)
@@ -207,6 +207,11 @@
known user data area of the disc, probably causing read errors on most
drives and possibly even hard lockups on some buggy hardware.
+.TP
+.BI "\-x --force-overread
@AnwarShah
AnwarShah / gresource-extract
Created September 23, 2016 10:09
Gresource-extract. Original Credit goes to the author here http://projects.thecodergeek.com/scripts/gresource-extract
#!/bin/bash
##############################################################################
# Author: Peter Gordon <peter@thecodergeek.com>
# License: Public Domain
##############################################################################
# gresource-extract.sh
# Version: 1
#
# This Bash script is designed to extract all resource files in a given
# GResource file, with the given base folder. For example, if a GResource file
@AnwarShah
AnwarShah / usr.share.atom-beta.resources.app.apm.bin.apm
Created October 15, 2016 14:50
apparmor profile for apm of atom-beta
#include <tunables/global>
/usr/share/atom-beta/resources/app/apm/bin/apm {
#include <abstractions/base>
#include <abstractions/bash>
deny network inet dgram,
deny network inet stream,
deny network netlink raw,
@AnwarShah
AnwarShah / usr.bin.atom-beta
Created October 15, 2016 14:52
apparmor profile for atom-beta to restrict internet access
# Last Modified: Sat Oct 15 20:12:41 2016
#include <tunables/global>
/usr/bin/atom-beta flags=(complain) {
#include <abstractions/base>
#include <abstractions/bash>
deny network inet dgram,
deny network inet stream,
deny network netlink raw,
Elementary and Ubuntu are different distributions. The projects are different. The goals are different. There are lots of other differences between them. Elementary is based on Ubuntu, but it is _Ubuntu_. It's also not an **Ubuntu-flavor** (like Lubuntu, Xubuntu, Kubuntu, Ubuntu MATE, Ubuntu GNOME etc), but an **Ubuntu-based distribution**.
Ubuntu flavors dists are basically Ubuntu, featuring different desktop environment. If you want to know whether it is only the desktop environment that is different from Lubuntu to Ubuntu, then you may find answers to that part from this question
- http://askubuntu.com/questions/793886/how-does-ubuntu-flavor-iso-differ-from-a-desktop-package
> And lastly, if I have Elementary OS installed, is it possible to get updates from the latest Ubuntu repository?
That depends on how Elementary is set up. Elementary has lots of packages modified with their own patches. And a distribution will have its own repositories. So it's more likely that even if they use Ubuntu repository a