This file contains 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 | |
# remove exited containers: | |
docker ps --filter status=dead --filter status=exited -aq | xargs -r docker rm -v | |
# remove unused images: | |
docker images --no-trunc | grep '<none>' | awk '{ print $3 }' | xargs -r docker rmi | |
# remove unused volumes: | |
docker volume ls -qf dangling=true | xargs -r docker volume rm |
This file contains 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
# Maintainer: Maxime Poulin <maxpoulin64@gmail.com> | |
# Contributor: xpander <xpander0@gmail.com> | |
pkgname=lib32-glxosd-git | |
_gitname=GLXOSD | |
pkgver=r203.f5a515d | |
pkgrel=1 | |
pkgdesc="An OSD for OpenGL applications running under the X Window System. This allows you to monitor your framerate and hardware temperature in games on Linux!" | |
arch=('i686' 'x86_64') | |
url="https://github.com/Phitherek/GLXOSD" | |
license=('GPL') |
This file contains 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
#include <iostream> | |
#include <cstdlib> | |
using namespace std; | |
int main() { | |
int* tab; | |
tab = new int[10000000]; | |
for(int i = 0; i < 10000000; i++) { | |
tab[i] = 0; | |
} |
This file contains 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
Use algoprep.cpp, algoprep.h and Makefile from here: https://gist.github.com/3721876 |
This file contains 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
#include <iostream> | |
#include <cstdlib> | |
#include <sys/socket.h> // For sockets | |
#include <sys/types.h> // For getaddrinfo | |
#include <arpa/inet.h> // For inet addr conversion | |
#include <netdb.h> // For getaddrinfo | |
#include <cstring> // For memset | |
#include <cerrno> | |
#include <unistd.h> | |
#include <string> |
This file contains 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
#include <iostream> | |
#include <cstdlib> | |
#include <algorithm> | |
#include "algoprep.h" | |
using namespace std; | |
struct activity { | |
int s; | |
int f; | |
}; |
This file contains 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
// Minesweeper v. 0.1 (c) 2012 by Phitherek_ | |
#include <iostream> // Do streamów IO | |
#include <cstdlib> // EXIT_SUCCESS i inne przydatne rzeczy z C | |
#include <iomanip> // Do manipulacji streamem IO - ustawienie szerokości wierszy, aby zwiększyć czytelność planszy | |
using namespace std; // Odkrycie standardowej przestrzeni nazw - bo nic nam nie będzie kolidować z tą przestrzenią | |
struct field { // Struktura opisująca pole na planszy: | |
int bomb; // Czy jest bomba na tym polu? 1 - tak, 0 - nie | |
int checked; // Czy pole jest odkryte? 1 - tak, 0 - nie | |
int ba; // Ilość bomb wokół pola |
This file contains 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
#include <stdio.h> | |
#include <stdlib.h> | |
// Mamy robota, który ma przejść daną odległość, możliwe są ruchy o 1, 2 lub 3. Chcemy się dowiedzieć, ile jest kombinacji, w jakich nasz robot może przejść tą odległość. | |
struct wyniki { // Struktura przechowuje liczbę możliwości dla następnego kroku o | |
int o; // 1 | |
int t; // 2 | |
int th; // 3 | |
}; |
This file contains 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 | |
if [[ $# -ne 1 ]] | |
then | |
echo "Usage: $0 [server_number 03-40]" | |
else | |
if [ $1 != "03" ] && [ $1 != "04" ] && [ $1 != "05" ] && [ $1 != "06" ] && [ $1 != "07" ] && [ $1 != "08" ] && [ $1 != "09" ] && [[ $1 -lt 10 ]] || [[ $1 -gt 40 ]] | |
then | |
echo "Usage: $0 [server_number 03-40]" | |
else | |
mplayer http://radiozetmp3-$1.eurozet.pl:8400/ |
This file contains 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
Kompiluj przy użyciu/compile using: | |
g++ -o decider_gtk decider_gtk.cpp `pkg-config --cflags --libs gtk+-2.0` |
NewerOlder