Skip to content

Instantly share code, notes, and snippets.

View salif's full-sized avatar

Salif Mehmed salif

  • open to work
  • Bulgaria
  • 00:34 (UTC +03:00)
View GitHub Profile
@skilldeliver
skilldeliver / send_to_all.py
Created December 25, 2018 16:41
Send message to all facebook friends
# Special for the SoftUni python group
# Python 3.5 / 3.6 required
# fbchat required
from fbchat import Client
from fbchat.models import *
from getpass import getpass
client = Client('anyemail@gmail.com', getpass())
users = client.fetchAllUsers()
@dgellow
dgellow / evdev.xml
Created July 3, 2013 07:07
Custom /usr/share/X11/xkb/rules/evdev.xml to add my custom bepow layout to gnome 3 settings
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE xkbConfigRegistry SYSTEM "xkb.dtd">
<xkbConfigRegistry version="1.1">
<modelList>
<model>
<configItem>
<name>pc101</name>
<description>Generic 101-key PC</description>
<vendor>Generic</vendor>
</configItem>
# .config/i3/config
set $mod Mod4
set $alt Mod1
font pango:Segoe UI 8
# Use Mouse+$mod to drag floating windows to their wanted position
floating_modifier $mod
# class border backgr. text
@bert
bert / gtk_entry_insert_text_comment.c
Created December 19, 2009 14:48
GTK entry insert text comment snippet
/*!
* \file gtk_entry_insert_text_comment.c
* \brief
*
* The algorithms here will work as long as the text size (a
* multiple of 2), fits into a guint16. We specify a shorter
* maximum length so that if the user pastes a very long text, there
* is not a long hang from the slow X_LOCALE functions.
*/
@bert
bert / gist:267960
Created January 3, 2010 12:42
GTK expose event and handler example
/*!
* \file
* \brief
*/
#include <gtk/gtk.h>
/*!
Just setting up my twttr
@Narga
Narga / 51-noto-color-emoji.conf.xml
Last active February 17, 2020 14:10 — forked from hexchain/51-noto-color-emoji.conf.xml
Google Noto Color Emoji on Arch Linux desktop. Don't forget to remove Firefox's built-in EmojiOne font.
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<!-- /etc/fonts/conf.avail/51-noto-color-emoji.conf -->
<fontconfig>
<selectfont>
<acceptfont>
<pattern>
<patelt name="family"><string>Noto Color Emoji</string></patelt>
</pattern>
</acceptfont>
@tott
tott / gist:7125b5cfa1bd48d8da0e9ad89256c802
Created November 24, 2018 20:59
polybar popup calendar
polybar config
[module/date]
type = custom/script
exec = ~/scripts/popup-calendar.sh
interval = 5
click-left = ~/scripts/popup-calendar.sh --popup
format-background = ${colors.alt-background}
format-foreground = ${colors.alt-foreground}
label = %output:25%
@dangkhoasdc
dangkhoasdc / archlinux_install.sh
Last active March 18, 2021 09:20
Things to do after install Arch Linux
#!/usr/bin/env bash
# Things to do after install ArchLinux (2012.12.01)
pacman --noconfirm -S sudo
# Enabled archlinuxfr repo
arch=$(uname -m)
sudo cp /etc/pacman.conf /etc/pacman.conf.bak
echo "" >> /etc/pacman.conf
echo "[archlinuxfr]" >> /etc/pacman.conf
@mojavelinux
mojavelinux / Writing Tools Writeup.markdown
Created January 30, 2012 18:56 — forked from matthewmccullough/Writing Tools Writeup.md
How To Write A Technical Book (One Man's Modest Suggestions)