By restoring a recent commit, previous to the ones you want to delete, and then adding the ones you want to recover.
Based on here. Cherry Pick method.
Let's say these are our recent commits:
Number | Hash | Commit Message | Author
GM_addStyle ( ` | |
.element-thing { | |
display: none !important; | |
} | |
` ); |
// ==UserScript== | |
// @name Hide bar telegram | |
// @namespace Violentmonkey Scripts | |
// @include *.telegram.org/* | |
// @grant GM_addStyle | |
// @run-at document-start | |
// @author Null | |
// ==/UserScript== | |
GM_addStyle (` |
By restoring a recent commit, previous to the ones you want to delete, and then adding the ones you want to recover.
Based on here. Cherry Pick method.
Let's say these are our recent commits:
Number | Hash | Commit Message | Author
// ==UserScript== | |
// @name Hide bar telegram | |
// @namespace Violentmonkey Scripts | |
// @include *.telegram.org/* | |
// @grant GM_addStyle | |
// @run-at document-start | |
// @author r4v10l1 | |
// ==/UserScript== | |
GM_addStyle (` |
// ==UserScript== | |
// @name Remove autodownload shit from moodle | |
// @namespace Violentmonkey Scripts | |
// @match https://yoursite.org/* | |
// @grant none | |
// @version 1.0 | |
// @author Null / r4v10l1 | |
// @description 01/10/2021, 01:23:03 | |
// ==/UserScript== |
#!/bin/bash | |
# Check if sdl2 is installed | |
if [[ $(command -v sdl2-config) == "" ]]; then | |
echo "Cant' find sdl2. Exiting..." | |
exit 1; | |
fi | |
SDL_FLAGS=$(sdl2-config --cflags --libs) |
#!/bin/sh | |
############################## | |
# For linux only. Usage: | |
# ./compile.sh FILE.c [run] | |
############################## | |
# Check if sdl2 is installed | |
if [[ $(command -v sdl2-config) == "" ]]; then | |
echo "Cant' find sdl2. Exiting..." |
#include <stdio.h> | |
#define ARRAY_SIZE 10 | |
int test(int* array, int ys, int xs) { | |
int desiredx = 5; | |
int desiredy = 3; | |
array[desiredy * xs + desiredx] = 1; | |
array[desiredy * ys + desiredx] = 2; |
# Build image | |
docker build -d image_name . | |
# Run image in daemon and remove after exit | |
docker run --name container_name --rm -it -d image_name | |
# Clear images without tag | |
docker rmi $(docker images -f "dangling=true" -q) | |
# Clone an image's tag |
# Will backup the 'D:/Stuff' folder to 'E:/Stuff' (Will create the folder if does not exist) | |
rsync -av /cygdrive/d/Stuff /cygdrive/e | |
# Will ignore exising files | |
rsync -av --ignore-existing /cygdrive/d/Stuff /cygdrive/e | |
# Will delete files that no longer exist in 'D:/Stuff' | |
rsync -av --delete /cygdrive/d/Stuff /cygdrive/e |