Skip to content

Instantly share code, notes, and snippets.

@r4hul-in
r4hul-in / ansible_local_playbooks.md
Created January 15, 2020 03:06 — forked from alces/ansible_local_playbooks.md
How to run an Ansible playbook locally
  • using Ansible command line:
ansible-playbook --connection=local 127.0.0.1 playbook.yml
  • using inventory:
127.0.0.1 ansible_connection=local
--- TLP 1.3.0-beta.2 --------------------------------------------
+++ Configured Settings:
TLP_ENABLE="1"
TLP_PERSISTENT_DEFAULT="0"
DISK_IDLE_SECS_ON_AC="0"
DISK_IDLE_SECS_ON_BAT="2"
MAX_LOST_WORK_SECS_ON_AC="15"
MAX_LOST_WORK_SECS_ON_BAT="60"
CPU_ENERGY_PERF_POLICY_ON_AC="balance_performance"
@r4hul-in
r4hul-in / AC
Created January 12, 2020 21:55
--- TLP 1.3.0-beta.2 --------------------------------------------
+++ Configured Settings:
TLP_ENABLE="1"
TLP_PERSISTENT_DEFAULT="0"
DISK_IDLE_SECS_ON_AC="0"
DISK_IDLE_SECS_ON_BAT="2"
MAX_LOST_WORK_SECS_ON_AC="15"
MAX_LOST_WORK_SECS_ON_BAT="60"
CPU_ENERGY_PERF_POLICY_ON_AC="balance_performance"

Keybase proof

I hereby claim:

  • I am r4hul-in on github.

  • I am r4hul (https://keybase.io/r4hul) on keybase.

  • I have a public key ASA4Qn10QkPT56yscJ-imXZkvGZMxDMANrPfeHfZMVDb7go

@r4hul-in
r4hul-in / index.sh
Created November 20, 2016 11:13
follow everyone on gab
#!/bin/bash
# follow everyone on gab.ai easily
# this may or may not break at any time, as this api is unofficial/undocumented/whatever you want to call it.
# insert your cookies into /tmp/cookies
# you can extract them using EditThisCookie, in the Netscape HTTP cokie format.
# limited to first 10000 users on gab, change the number in $(seq if there are more users in the future
# of course, 200 = success, anything else = failure
for i in $(seq 10000)
do
curl -o /dev/null --silent --head --write-out '%{http_code} -' -X POST --cookie /tmp/cookie https://gab.ai/users/$i/follow
Section "Device"
Identifier "Generic Video Card"
VendorName "Silicon Integrated Systems [SiS]"
BoardName "771/671 PCIE VGA Display Adapter"
Busid "PCI:1:0:0"
Driver "vesa"
Screen 0
Option "UseFBDev" "true"
Option "DPMS"
Option "ShadowFB"
No mic controls in alsa mixer, nodes 0x1a and 0x08 are muted and powered down.
http://www.alsa-project.org/db/?f=26d6b1b1455a39cf16ccfa831a1308cf2d182199 -> Before change
http://www.alsa-project.org/db/?f=c58aa2881c1f3b8fe0090f995050428b5cf79239 -> before 8th line
mkdir kernel-4.6.3 && cd kernel-4.6.3
wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.6.3-yakkety/linux-image-4.6.3-040603-generic_4.6.3-040603.201606241434_amd64.deb
wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.6.3-yakkety/linux-image-4.6.3-040603-generic_4.6.3-040603.201606241434_amd64.deb
wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.6.3-yakkety/linux-headers-4.6.3-040603_4.6.3-040603.201606241434_all.deb
sudo dpkg -i linux*.deb
sudo reboot
echo "deb https://download.01.org/gfx/ubuntu/14.04/main trusty main #Intel Graphics drivers" | sudo tee /etc/apt/sources.list.d/intellinuxgraphics.list
wget --no-check-certificate https://download.01.org/gfx/RPM-GPG-KEY-ilg -O - | \
sudo apt-key add -
wget --no-check-certificate https://download.01.org/gfx/RPM-GPG-KEY-ilg-2 -O - | \
sudo apt-key add -
sudo apt-get update
[ 8318.175158] traps: hexchat[24009] general protection ip:558163a7ffe2 sp:7fff49b6bb50 error:0 in hexchat[558163a29000+ea000]
[11670.012083] traps: hexchat[9462] general protection ip:562a44240fe2 sp:7ffd79c9ad00 error:0 in hexchat[562a441ea000+ea000]
[23114.964372] traps: hexchat[25686] general protection ip:7f7dcb498990 sp:7ffdc511b2d0 error:0 in libgobject-2.0.so.0.4600.2[7f7dcb464000+52000]