This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pycurl | |
import json | |
from StringIO import StringIO | |
from pprint import pprint | |
buffer = StringIO() | |
c = pycurl.Curl() | |
c.setopt(c.URL, 'https://api.github.com/users/fpersson/gists') | |
c.setopt(c.WRITEFUNCTION, buffer.write) | |
c.perform() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
TMPFILE="/tmp/gitstat.txt" | |
FILENAME="/tmp/gitstat_files.txt" | |
if [ -d $1 ] ; then | |
if [ -f $2 ] ; then | |
rm $2 | |
fi | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
############################################ | |
# Name: create.sh | |
# Usage: ./create.sh app-name | |
############################################ | |
PROJECTNAME=$1 | |
WORKINGDIR=$HOME/development/$PROJECTNAME | |
SRCDIR=$WORKINGDIR/src |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE language SYSTEM "language.dtd"> | |
<!-- | |
This file is part of KDE's kate project. | |
copyright : (C) 2015 by Fredrik Persson | |
email : [email protected] | |
This file is free software; you can redistribute it and/or modify | |
it under the terms of the GNU General Public License as published by |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SUBSYSTEM=="usb", ATTR{idVendor}=="18d1", MODE="0666", GROUP="plugdev" | |
SUBSYSTEM=="usb", ATTR{idVendor}=="0x15a2", MODE="0666", GROUP="plugdev" | |
SUBSYSTEM=="usb", ATTR{idVendor}=="2207", MODE="0666", GROUP="plugdev" | |
#Acer | |
SUBSYSTEM=="usb", ATTRS{idVendor}=="0502", MODE="0660", GROUP="plugdev" | |
##ASUS | |
SUBSYSTEM=="usb", ATTRS{idVendor}=="0b05", MODE="0660", GROUP="plugdev" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# coding: utf-8 | |
import argparse | |
import os | |
import sys | |
import time | |
import atexit | |
import logging | |
import signal |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#put in $HOME/bin/ | |
OIFS=$IFS | |
NOW=$(date +"%y%m%d") | |
IFS='.' read -r -a array <<< $1 | |
for result in "${array[@]}"; do | |
echo $result | |
done |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#ifndef UNIX_COLOR_H | |
#define UNIX_COLOR_H | |
/* | |
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, | |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cmake_minimum_required(VERSION 3.6) | |
project(testd) | |
set(CMAKE_CXX_STANDARD 11) | |
find_package(PkgConfig) | |
pkg_check_modules(SYSTEMD libsystemd REQUIRED) | |
IF(NOT SYSTEMD_FOUND) | |
message(FATAL_ERROR "ERROR: Systemd not found") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
USERNAME="" | |
APPID="306130" #ESO | |
DEST="" | |
steamcmd +@sSteamCmdForcePlatformType windows +login $USERNAME +force_install_dir $DEST +app_update $APPID validate +quit |