Skip to content

Instantly share code, notes, and snippets.

View ikbelkirasan's full-sized avatar

Ikbel ikbelkirasan

View GitHub Profile
@ikbelkirasan
ikbelkirasan / delete_github_repos.sh
Created January 15, 2019 04:19
Delete multiple Github repositories
#!/bin/bash
user='github_username'
password_or_oauth_token='pass'
# Delete a bunch of GitHub repos
nukem="repo1 repo2 repo3"
for repo in $nukem; do
echo "Deleting repo: https://github.com/$user/$repo"
VBoxManage modifyvm "MacOS" -- cpuidset 00000001 000106e5 00100800 0098e3fd bfebfbff
VBoxManage setextradata "MacOS" "VBoxInternal/Devices/efi/0/Config/DmiSystemProduct" "iMac11,3"
VBoxManage setextradata "MacOS" "VBoxInternal/Devices/efi/0/Config/DmiSystemVersion" "1.0"
VBoxManage setextradata "MacOS" "VBoxInternal/Devices/efi/0/Config/DmiBoardProduct" "Iloveapple"
VBoxManage setextradata "MacOS" "VBoxInternal/Devices/smc/0/Config/DeviceKey" "ourhardworkbythesewordsguardedpleasedontsteal(c)AppleComputerInc"
VBoxManage setextradata "MacOS" "VBoxInternal/Devices/smc/0/Config/GetKeyFromRealSMC" 1
VBoxManage setextradata "MacOS" VBoxInternal2/EfiGopMode 4
@ikbelkirasan
ikbelkirasan / gemfury_setup.md
Last active January 14, 2019 21:39
Setup gemfury-cli

Setup gemfury-cli

  1. Run this command:
$ sudo nano /etc/apt/sources.list.d/fury-cli.list
  1. Add this line:
@ikbelkirasan
ikbelkirasan / create_gksudo.sh
Created January 13, 2019 16:32
Create gksudo in Ubuntu 18.04
#!/bin/bash
mkdir -p ~/.local/bin
echo -e '#!/bin/sh\n/usr/bin/pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY HOME=$HOME "$@"' > ~/.local/bin/gksudo
chmod u+x ~/.local/bin/gksudo
@ikbelkirasan
ikbelkirasan / host_apt_repo_on_github.md
Last active May 10, 2024 05:57
Host an APT repository on Github

Host an APT repository on Github

This guide will help you host an APT repository on Github.

Prerequisites

You need to install the following packages.

  • reprepro
@ikbelkirasan
ikbelkirasan / script.sh
Last active November 27, 2018 20:10
Run a GUI app in a docker container using X11
docker run --rm -it -e DISPLAY=$DISPLAY -v /tmp/.X11-unix:/tmp/.X11-unix:ro -v $PWD/app:/app vscode
@ikbelkirasan
ikbelkirasan / setup.md
Created November 12, 2018 18:48
Headless Raspbian SSH + WIFI setup

Headless Raspbian SSH + WIFI setup

  1. In the BOOT partition on the SD card, create an empty file called ssh

  2. In the same partition, create another file called wpa_supplicant.conf with the following content.

ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
country=DZ
@ikbelkirasan
ikbelkirasan / readme.md
Created November 2, 2018 11:18
Install Canon LBP6030b drivers on Ubuntu 18.04 (64bit)
@ikbelkirasan
ikbelkirasan / writing-a-state-of-the-art-section.md
Created November 1, 2018 19:28
Writing the "Related Work" Section of a Paper/thesis

Writing the "Related Work" Section of a Paper/thesis

By: Chamin Morikawa (https://www.linkedin.com/pulse/writing-related-work-section-paperthesis-chamin-morikawa/)

For most students, writing about what they did on their own is not hard. But writing about others' work - which is what you have to do in the "State of the Art" or "Related Work" section - is quite hard for them. Here are a few guidelines to make this task a bit easier.

The Basics

Let's lay down our assumptions before continuing. I assume that you want to write a "Related Work" section for a research paper or a thesis that describes your approach to solve some problem. Let's also assume that there are other publications that attempt to solve the same problem, but the solutions in them are not perfect. Finally, let's assume that your approach has some difference when compared to those by others, and some improvement (faster, more accurate, easier to afford, etc.).

@ikbelkirasan
ikbelkirasan / readme.md
Created November 1, 2018 14:00
Pandoc IEEE Template

Install pandoc dependencies

sudo aptitude install pandoc pandoc-citeproc texlive-full texlive-publishers

Usage

git clone https://github.com/stsewd/ieee-pandoc-template.git