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 "unistd.h" | |
int main(){ | |
char *s = "1234"; | |
printf("%p\n", s); | |
for (int i = 0; i < 4; i++) | |
printf("s[%d]: %c\n", i, *(s+i)); | |
write(STDOUT_FILENO, s, 2); | |
printf("\n"); |
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 <unistd.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
void print_bin_from_char(char *c, int bytes){ | |
char *bin = calloc(sizeof(char), 8 * bytes); | |
int i, j; | |
unsigned int num; | |
int bin_digit = 0; | |
unsigned char *unsigned_c = (unsigned char *)c; |
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
""" | |
copy music from a Rhythmbox playlist to a directory | |
""" | |
import os | |
import argparse | |
import re | |
import shutil | |
from xml.etree import ElementTree as ET | |
import urllib.parse |
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
# show all windows in workspace | |
gesture swipe up 3 xdotool key alt+control+Down | |
# show Desktop | |
gesture swipe down 3 xdotool key super+d | |
# move current workspace for left | |
gesture swipe left 4 xdotool key alt+control+Right | |
# move current workspace for right |